I think I bought this up way back when I first started testing the platform.
Will there ever be a way to know how many people are subscribing (watching) a particular topic?
I am being asked for this information more often these days.
I think I bought this up way back when I first started testing the platform.
Will there ever be a way to know how many people are subscribing (watching) a particular topic?
I am being asked for this information more often these days.
This seems unlikely to ever be added as visible to non-administrators.
The freedom of individual users to choose how they want to consume the forum is important, and giving special consideration to Watching a topic by making the number visible to everyone is likely to create bad behavior patterns. (Number Go Up Syndrome is very powerful.)
You should be able to take a Data Explorer query that gets this data and mark it as runnable by moderators or employees, if that’s who the requests are coming from.
We would never want this for non-admins. I will try this with the DE.
Was this ability ever added to Discourse reporting?
Gab es Updates dazu?
Hallo Tom,
Dies wurde nicht als Standard-DE-Bericht hinzugefügt. Ich habe jedoch ein Thema gefunden, das eine grundlegende DE-Abfrage zum Abrufen dieser Informationen bereitstellt, vielleicht ist das hilfreich:
Hallo Mark,
Danke. Sieht es also so aus, als könnte ich diese Funktion nicht auf Topic-Ebene ausführen? Ist das richtig?
Tom,
Nein, Sie können diese Informationen auf Topic-Ebene abrufen, indem Sie ‘topic’ durch ‘category’ ersetzen, wie hier gezeigt:
SELECT
COUNT(topic_id)
FROM
topic_users
WHERE
notification_level = 3
Auch dies ist eine sehr einfache Abfrage, die nur eine Gesamtzahl von Beobachtern aus… in diesem Fall… allen Topics zurückgibt. Wenn Sie ein bestimmtes Topic angeben möchten, können Sie die WHERE-Klausel erweitern, z. B.:
WHERE
notification_level = 3
AND topic_id = 29
Das ist großartig!
Danke!
Das ist sehr nützlich, danke @MarkDoerr. Ich habe die Abfrage modifiziert, um alle vier Benachrichtigungsstufen in einem Durchgang zu melden und bei Bedarf ein Array von topic_ids zu verwenden.
Die vollständige Grid-Ausgabetabelle ist nicht schön, aber sie enthält alle Informationen, die ich brauche.
Bearbeiten: Natürlich hat mich Discourse, sobald ich gepostet habe, freundlicherweise auf sechs Links mit anderen Lösungsansätzen hingewiesen! Weiter so mit der Abfrage!
SELECT
topic_id,
notification_level,
COUNT(CASE WHEN notification_level = 0 THEN topic_id END) AS Muted_0,
COUNT(CASE WHEN notification_level = 1 THEN topic_id END) AS Normal_1,
COUNT(CASE WHEN notification_level = 2 THEN topic_id END) AS Tracking_2,
COUNT(CASE WHEN notification_level = 3 THEN topic_id END) AS Watching_3
FROM
topic_users
WHERE
topic_id IN (9831, 9572, 9424, 7567) -- Füge hier deine topic_ids ein
GROUP BY
topic_id, notification_level