Skip to content

Metric is not shown when value is zero for blocked and reported users #8116

@roxanaopr

Description

@roxanaopr

Describe the bug
When a given metric has the value zero, then it’s not shown in the Dashboard Metrics section.When no users are blocked and the metric job has started, the "Blocked users" box is not displayed.

To Reproduce
Steps to reproduce the behavior:

  • Unblock all users
  • Check metrics from Dashboard
  • No metric displayed for blocked users

Screenshot from 2021-06-08 11-27-46

Expected behavior
Metric for "blocked users", "reported users" and "user reports" to be displayed even if the value is 0.

Screenshots
If applicable, add screenshots to help explain your problem.

Stacktrace
If applicable, add the error stacktrace to help explain your problem.

Extra data (please complete the following information):

  • Device: [e.g. iPhone6, Desktop]
  • Device OS: [e.g. iOS8.1, Windows 10]
  • Browser: [e.g. Chrome, Firefox, Safari]
  • Decidim Version: [e.g. 0.10]
  • Decidim installation: [e.g. MetaDecidim]

Additional context
Add any other context about the problem here. For instance, add Metadecidim link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions