docs/advanced/metrics.md in decidim-0.21.0 vs docs/advanced/metrics.md in decidim-0.22.0

- old
+ new

@@ -35,10 +35,11 @@ - Use the command `decidim:metrics:list` to list all available metrics using the console: ```ruby bundle exec rake decidim:metrics:list ``` + Currently, available metrics are: - **users**, created `Users` - **proposals**, published, not withdrawn and not *hidden* `Proposals` - **accepted_proposals**, accepted `Proposals` @@ -76,23 +77,20 @@ persist metrics from all times and types. The `decidim_metrics` table has the following fields: - `day`: the day for which the metric has been computed. -- `metric_type`: the type of the metric. One of: users, proposals, -accepted_proposals, supports, assemblies. +- `metric_type`: the type of the metric. One of: users, proposals, accepted_proposals, supports, assemblies. - `cumulative`: quantity accumulated to day ”day”. - `quantity`: quantity for the current day, ”day”. -- `decidim_organization_id`: the FK to the organization to which this Metric -belongs to. -- `participatory_space_type` + `participatory_space_id`: the FK to the -participatory space to which this Metric belongs to, if any. -- `related_object_type` + `related_object_id`: the FK to the object to which -this Metric belongs to, if any. +- `decidim_organization_id`: the FK to the organization to which this Metric belongs to. +- `participatory_space_type` + `participatory_space_id`: the FK to the participatory space to which this Metric belongs to, if any. +- `related_object_type` + `related_object_id`: the FK to the object to which this Metric belongs to, if any. - `decidim_category_id`: the FK to the category for this Metric, if any. Relations around `decidim_metrics` table: -``` + +```ascii +------------------------+ +--------------+ | ParticipatoryProcesses | | Organization | +----+------------------------+ +------+-------+ | | +--------------------+ | +------------+