Describe the bug
On a participatory process landing page, the Statistics content block does not show the Followers metric when users only follow the process itself (via the process “Follow” button), and there are no follows on followable resources inside components (proposals, meetings, debates, budget projects).
Because statistics with value 0 are filtered out, the Followers field is omitted entirely instead of showing the process-level follower count.
This contradicts:
- The followers tooltip copy (“users who follow any part of this space”)
- The query class comment for
ParticipatoryProcessesStatsFollowersCount (“counts all Followers of a participatory process”)
- Process creation behavior that adds organization admins as followers of the process
To Reproduce
-
Create a participatory process (or use one with no followable component follows).
-
Ensure the Statistics content block is enabled on the process landing page.
-
Follow the process itself with one or more users (or rely on admins auto-added as followers on create).
-
Do not follow any proposals/meetings/debates/projects inside the process (or have no such published components).
-
Open the public process landing page and check the Statistics section.
Observe: Followers is missing (count resolves to 0 and is rejected).
-
On another process, follow at least one proposal (or other tagged followable resource).
-
Reload that process landing page.
Observe: Followers appears.
Expected behavior
Followers should include process-level follows (users following the participatory process), not only follows on component resources.
At minimum, a process that has process followers should show a non-zero Followers statistic and render the field.
Screenshots
No response
Stacktrace
No response
Extra data
Device: Desktop
Device OS: macOS
Browser: Chrome / Safari
Decidim Version: 0.31.6
Additional context
No response
Describe the bug
On a participatory process landing page, the Statistics content block does not show the Followers metric when users only follow the process itself (via the process “Follow” button), and there are no follows on followable resources inside components (proposals, meetings, debates, budget projects).
Because statistics with value 0 are filtered out, the Followers field is omitted entirely instead of showing the process-level follower count.
This contradicts:
ParticipatoryProcessesStatsFollowersCount(“counts all Followers of a participatory process”)To Reproduce
Create a participatory process (or use one with no followable component follows).
Ensure the Statistics content block is enabled on the process landing page.
Follow the process itself with one or more users (or rely on admins auto-added as followers on create).
Do not follow any proposals/meetings/debates/projects inside the process (or have no such published components).
Open the public process landing page and check the Statistics section.
Observe: Followers is missing (count resolves to 0 and is rejected).
On another process, follow at least one proposal (or other tagged followable resource).
Reload that process landing page.
Observe: Followers appears.
Expected behavior
Followers should include process-level follows (users following the participatory process), not only follows on component resources.
At minimum, a process that has process followers should show a non-zero Followers statistic and render the field.
Screenshots
No response
Stacktrace
No response
Extra data
Device: Desktop
Device OS: macOS
Browser: Chrome / Safari
Decidim Version: 0.31.6
Additional context
No response