Joshua Newton and GitHub
f6e40a600e
[Discourse] Update schema keys to use plural form (topic_count -> topics_count) ( #9778 )
...
* Discourse: Update schema to use plural keys
(e.g. topic_count -> topics_countN)
* Revert "Discourse: Update schema to use plural keys"
This reverts commit 4073a17aaa .
* `discourse.service.js`: Add `Joi.alternatives` plural schema
* `discourse.service.js`: Update func to be plural-agnostic
Previously, for e.g. 'topic', the call to the `DiscourseMetricIntegrationFactory` function supplied both 'topics' and 'topic_count'. And, we now need to check for 'topics_count' as well. To cover all three string variations, why not supply only 'topic' to the function, then selectively add the 's' on a case-by-case basis.
((Note: I've preserved the old metricName variable as to minimize the diff here and make my changes clearer.))
* `discourse.tester.js`: Add second `data` case
* Address Prettier linting warnings
2023-12-06 19:54:39 +00:00
..
2023-11-08 19:49:20 +00:00
2023-11-19 19:33:09 +00:00
2023-07-31 12:22:33 +01:00
2023-08-08 23:57:47 +00:00
2023-09-11 23:08:23 +00:00
2023-12-04 13:09:37 +00:00
2023-11-08 19:49:20 +00:00
2023-09-20 18:41:38 +00:00
2023-07-10 09:27:51 +00:00
2023-08-08 23:57:47 +00:00
2023-09-20 18:38:56 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-08-20 18:39:39 +00:00
2023-12-06 18:42:06 +00:00
2023-08-08 23:57:47 +00:00
2023-08-08 23:57:47 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-08-08 23:57:47 +00:00
2023-08-08 23:57:47 +00:00
2023-08-08 23:57:47 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-08-30 16:14:18 +00:00
2023-07-10 09:27:51 +00:00
2023-11-08 19:49:20 +00:00
2023-11-08 19:49:20 +00:00
2023-09-20 18:38:56 +00:00
2023-08-17 20:32:01 +00:00
2023-07-10 09:27:51 +00:00
2023-08-17 20:32:01 +00:00
2023-11-08 19:49:20 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 12:53:21 +00:00
2023-12-04 12:53:21 +00:00
2023-08-17 20:32:01 +00:00
2023-08-30 16:14:18 +00:00
2023-12-06 18:42:06 +00:00
2023-12-06 19:54:39 +00:00
2023-08-17 20:32:01 +00:00
2023-08-17 20:32:01 +00:00
2023-07-10 09:27:51 +00:00
2023-09-10 11:41:23 +00:00
2023-12-04 13:37:58 +00:00
2023-08-17 20:32:01 +00:00
2023-08-21 10:08:27 +00:00
2023-08-21 10:08:27 +00:00
2023-07-31 12:22:33 +01:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 12:53:21 +00:00
2023-07-10 09:27:51 +00:00
2023-08-21 10:08:27 +00:00
2023-09-20 18:38:56 +00:00
2023-09-20 18:38:56 +00:00
2023-08-21 10:08:27 +00:00
2023-06-13 21:08:43 +01:00
2023-12-04 13:37:58 +00:00
2023-11-01 20:33:44 +00:00
2023-08-21 10:08:27 +00:00
2023-07-10 09:27:51 +00:00
2023-10-16 18:45:09 +00:00
2023-08-21 10:08:27 +00:00
2023-08-21 10:08:27 +00:00
2023-07-10 09:27:51 +00:00
2023-08-30 16:14:18 +00:00
2023-12-04 12:53:21 +00:00
2023-08-21 11:16:01 +01:00
2023-09-20 18:38:56 +00:00
2023-08-21 11:16:01 +01:00
2023-07-10 09:27:51 +00:00
2023-08-21 11:16:01 +01:00
2023-08-30 16:14:18 +00:00
2023-08-21 11:16:01 +01:00
2023-08-21 11:16:01 +01:00
2023-08-21 11:16:01 +01:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-08-21 11:16:01 +01:00
2023-08-21 11:16:01 +01:00
2023-06-18 09:05:42 +01:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 12:53:21 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 13:09:37 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-02 23:13:04 +00:00
2023-09-20 18:38:56 +00:00
2023-06-13 21:08:43 +01:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-08-21 11:16:01 +01:00
2023-12-06 18:42:06 +00:00
2023-08-19 04:33:27 +00:00
2023-12-04 12:53:21 +00:00
2023-08-19 04:33:27 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-10-13 15:40:57 +00:00
2023-11-19 19:24:56 +00:00
2023-12-04 13:25:56 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 13:25:56 +00:00
2023-08-19 04:33:27 +00:00
2023-12-04 13:09:37 +00:00
2023-08-15 08:34:55 +00:00
2023-09-20 18:38:56 +00:00
2023-12-06 18:42:06 +00:00
2023-11-19 19:44:03 +00:00
2023-07-10 09:27:51 +00:00
2023-08-30 16:14:18 +00:00
2023-09-17 08:16:09 +01:00
2023-08-19 04:33:27 +00:00
2023-09-04 11:02:05 +01:00
2023-12-04 13:09:37 +00:00
2023-07-10 09:27:51 +00:00
2023-06-18 09:05:42 +01:00
2023-07-03 16:59:04 +00:00
2023-07-10 09:27:51 +00:00
2023-09-04 11:02:05 +01:00
2023-09-04 11:02:05 +01:00
2023-09-04 11:02:05 +01:00
2023-12-04 13:25:56 +00:00
2023-09-04 11:02:05 +01:00
2023-10-13 15:40:57 +00:00
2023-07-10 09:27:51 +00:00
2023-11-01 20:33:44 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-09-04 11:02:05 +01:00
2023-12-04 13:09:37 +00:00
2023-07-10 09:27:51 +00:00
2023-09-04 11:02:05 +01:00
2023-09-04 11:02:05 +01:00
2023-08-23 19:51:18 +00:00
2023-08-31 20:31:11 +00:00
2023-12-04 13:37:58 +00:00
2023-08-31 20:31:11 +00:00
2023-08-31 20:31:11 +00:00
2023-12-04 13:09:37 +00:00
2023-08-31 20:31:11 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 13:37:58 +00:00
2023-12-02 23:13:04 +00:00
2023-07-10 09:27:51 +00:00
2023-08-31 20:31:11 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-14 15:42:50 +01:00
2023-07-10 09:27:51 +00:00
2023-05-01 18:07:13 +00:00
2023-11-19 19:44:03 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-12-04 13:37:58 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-07-10 09:27:51 +00:00
2023-05-01 18:54:50 +01:00
2023-07-10 09:27:51 +00:00
2023-07-31 12:22:33 +01:00
2023-07-10 09:27:51 +00:00
2023-05-20 19:18:06 +00:00
2023-06-17 10:59:07 +01:00
2023-05-29 20:00:03 +00:00
2023-11-19 19:13:15 +00:00
2023-07-10 09:27:51 +00:00
2023-12-02 23:13:04 +00:00