Eu utilizo o Discourse em um ambiente corporativo como um sistema de pedidos e documentação. Uso tags para definir se um pedido (tópico) está em andamento ou concluído. No entanto, precisaria de uma maneira de identificar pedidos concluídos em março, por exemplo.
Não tenho interesse em usar uma tag para cada mês, como tag: March19.
Tenho um número limitado de tags visíveis nas respectivas categorias para facilitar a criação e a manutenção dos pedidos.
Pensei em usar hashtags: quando algo fosse finalizado, a pessoa que entregou o pedido poderia comentar #march19 no final do tópico, permitindo a busca por essa tag. Mas não parece que as hashtags funcionam como deveriam no meu Discourse? Será que a função foi removida em favor do sistema de tags?
Existem outros plugins ou maneiras de fazer isso?
Preciso de ideias
1 curtida
csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
2
If you have admin privileges you could use the data explorer plugin.
Thanks, good suggestion but I am not so familiar with database inquiries so do not know if I even know where to start with it. Can anyone use / view the results of a request through data explorer in any way? Would be good if everyone could sort out examples delivered things in March easily and not just administrators.
csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
4
Here is a starting point.
-- [params]
-- int :months_ago = 1
WITH query_period AS
(SELECT date_trunc('month', CURRENT_DATE) - INTERVAL ':months_ago months' AS period_start,
date_trunc('month', CURRENT_DATE) - INTERVAL ':months_ago months' + INTERVAL '1 month' - INTERVAL '1 second' AS period_end)
select posts.*
from posts
inner join (
select topic_id, value::int accepted_answer_post_id
from topic_custom_fields
where name = 'accepted_answer_post_id'
order by name
) solved_by_post
on posts.id = solved_by_post.accepted_answer_post_id
inner join query_period
on posts.created_at >= query_period.period_start
AND posts.created_at <= query_period.period_end
order by posts.created_at desc
csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
5
You could run a cron job at the start of each month to get the results and then create a new topic … ‘Orders Completed in March 2019’ with links to each result in the topic.