Skip to content

A platform for community discussion. Free, open, simple.

DEV: Do not include silenced Discourse deprecations in counter (#21336)

David Taylor19540dfa0edd
diff --git a/app/assets/javascripts/discourse/tests/helpers/deprecation-counter.js b/app/assets/javascripts/discourse/tests/helpers/deprecation-counter.js
index 166c7e475a9..29ecfa73e1d 100644
--- a/app/assets/javascripts/discourse/tests/helpers/deprecation-counter.js
+++ b/app/assets/javascripts/discourse/tests/helpers/deprecation-counter.js
@@ -34,7 +34,11 @@ export default class DeprecationCounter {
let { id } = options;
id ||= "discourse.(unknown)";
- this.incrementDeprecation(id);
+ const matchingConfig = this.#configById.get(id);
+
+ if (matchingConfig !== "silence") {
+ this.incrementDeprecation(id);
+ }
}
incrementDeprecation(id) {