discourse/app/assets/javascripts
Andrei Prigorshnev d91456fd53
DEV: Ability to collect stats without exposing them via API (#23933)
This adds the ability to collect stats without exposing them 
among other stats via API.

The most important thing I wanted to achieve is to provide 
an API where stats are not exposed by default, and a developer 
has to explicitly specify that they should be 
exposed (`expose_via_api: true`). Implementing an opposite 
solution would be simpler, but that's less safe in terms of 
potential security issues. 

When working on this, I had to refactor the current solution. 
I would go even further with the refactoring, but the next steps 
seem to be going too far in changing the solution we have, 
and that would also take more time. Two things that can be 
improved in the future:
1. Data structures for holding stats can be further improved
2. Core stats are hard-coded in the About template (it's hard 
to fix it without correcting data structures first, see point 1):
    63a0700d45/app/views/about/index.html.erb (L61-L101)

The most significant refactorings are:
1. Introducing the `Stat` model
2. Aligning the way the core and the plugin stats' are registered
2023-11-10 00:44:05 +04:00
..
admin DEV: Add support for radar charts when displaying reports. (#24274) 2023-11-08 10:48:12 -03:00
bootstrap-json DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
confirm-new-email
deprecation-silencer
dialog-holder Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00
discourse DEV: Ability to collect stats without exposing them via API (#23933) 2023-11-10 00:44:05 +04:00
discourse-common FIX: Replace watched words with wildcards (#24279) 2023-11-08 18:51:11 +02:00
discourse-hbr Build(deps-dev): Bump webpack in /app/assets/javascripts (#23939) 2023-10-16 11:23:00 +02:00
discourse-i18n DEV: Simplify I18n shim check (#24244) 2023-11-06 16:54:39 +00:00
discourse-markdown-it FIX: Replace watched words with wildcards (#24279) 2023-11-08 18:51:11 +02:00
discourse-plugins DEV: Simplify sprockets configuration (#24111) 2023-10-26 17:29:53 +01:00
discourse-widget-hbs DEV: Consolidate and update jsconfig, and add types packages (#23824) 2023-10-18 12:13:20 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations
float-kit Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00
locales DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
patches DEV: remove @ember/jquery in favor of just jquery (#24034) 2023-10-25 10:14:50 +01:00
pretty-text Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00
select-kit Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00
theme-transpiler Build(deps): Bump babel-plugin-ember-template-compilation (#24204) 2023-11-02 19:21:37 +01:00
truth-helpers Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00
wizard Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00
.licensee.json
.npmrc
handlebars-shim.js
package.json DEV: remove markdown-it-bundle and custom build code (#23859) 2023-11-06 16:59:49 +00:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb
yarn.lock Build(deps-dev): Bump the types group (#24281) 2023-11-07 22:43:42 +01:00