A platform for community discussion. Free, open, simple.
DEV: Add admin notices for pre-3.0 deprecations (#38783)
Jarek Radoszb00898011cbb
diff --git a/frontend/discourse/app/deprecation-workflow.js b/frontend/discourse/app/deprecation-workflow.jsindex 1ac7bb749d4..d93a7bcd71f 100644--- a/frontend/discourse/app/deprecation-workflow.js+++ b/frontend/discourse/app/deprecation-workflow.js@@ -346,22 +346,45 @@ const workflows = [},{ handler: "notify-admin", matchId: "discourse.breadcrumbs.parentCategory" },{ handler: "notify-admin", matchId: "discourse.breadcrumbs.secondCategory" },+ {+ handler: "notify-admin",+ matchId: "discourse.category-hashtags.categoryHashtagTriggerRule",+ },+ {+ handler: "notify-admin",+ matchId: "discourse.click-track.is-valid-link-jquery",+ },{handler: "notify-admin",matchId: "discourse.component-template-resolving",},+ { handler: "notify-admin", matchId: "discourse.create-store-helper" },{ handler: "notify-admin", matchId: "discourse.decorate-plugin-outlet" },{ handler: "notify-admin", matchId: "discourse.ember-computed-decorators" },- { handler: "notify-admin", matchId: "discourse.globals.site" },- { handler: "notify-admin", matchId: "discourse.globals.user" },+ {+ handler: "notify-admin",+ matchId: "discourse.formatter.update-relative-age-node-list",+ },+ { handler: "notify-admin", matchId: "discourse.global.site-settings" },+ { handler: "notify-admin", matchId: "discourse.global.site" },+ { handler: "notify-admin", matchId: "discourse.global.user" },{ handler: "notify-admin", matchId: "discourse.header-widget-overrides" },+ {+ handler: "notify-admin",+ matchId: "discourse.icon-renderer-translatedtitle",+ },{ handler: "notify-admin", matchId: "discourse.jquery-cookie" },{ handler: "notify-admin", matchId: "discourse.markdown-it.whitelist" },{ handler: "notify-admin", matchId: "discourse.modal-controllers" },+ { handler: "notify-admin", matchId: "discourse.models-store" },{handler: "notify-admin",matchId: "discourse.nav-item.built-list-site-settings",},+ {+ handler: "notify-admin",+ matchId: "discourse.offset-calculator.minimumOffset",+ },{handler: "notify-admin",matchId: "discourse.plugin-outlet-classic-args-clash",@@ -374,11 +397,15 @@ const workflows = [handler: "notify-admin",matchId: "discourse.post-stream.trigger-new-post",},+ { handler: "notify-admin", matchId: "discourse.pretty-text.registerOption" },{ handler: "notify-admin", matchId: "discourse.qunit.acceptance-function" },{ handler: "notify-admin", matchId: "discourse.qunit.global-exists" },{ handler: "notify-admin", matchId: "discourse.resolver-resolutions" },+ { handler: "notify-admin", matchId: "discourse.safari-hacks-disabled" },{ handler: "notify-admin", matchId: "discourse.script-tag-discourse-plugin" },{ handler: "notify-admin", matchId: "discourse.script-tag-hbs" },+ { handler: "notify-admin", matchId: "discourse.user.resolved-timezone" },+ { handler: "notify-admin", matchId: "discourse.user.userOptions" },{ handler: "notify-admin", matchId: "discourse.widgets-decommissioned" },{ handler: "notify-admin", matchId: "discourse.widgets-end-of-life" },{ handler: "notify-admin", matchId: "template-action" }, // removed in Ember 6.0, but we have a polyfilldiff --git a/frontend/discourse/app/models/site.js b/frontend/discourse/app/models/site.jsindex 04b1f9b348d..6fd8e1db91d 100644--- a/frontend/discourse/app/models/site.js+++ b/frontend/discourse/app/models/site.js@@ -320,7 +320,7 @@ if (typeof Discourse !== "undefined") {if (!warned) {deprecated("Import the Site class instead of using Discourse.Site", {since: "2.4.0",- id: "discourse.globals.site",+ id: "discourse.global.site",});warned = true;}diff --git a/frontend/discourse/app/models/user.js b/frontend/discourse/app/models/user.jsindex cfcae9ea0fd..c88f25c484a 100644--- a/frontend/discourse/app/models/user.js+++ b/frontend/discourse/app/models/user.js@@ -1579,7 +1579,7 @@ if (typeof Discourse !== "undefined") {if (!warned) {deprecated("Import the User class instead of using Discourse.User", {since: "2.4.0",- id: "discourse.globals.user",+ id: "discourse.global.user",});warned = true;}diff --git a/frontend/discourse/app/resolver.js b/frontend/discourse/app/resolver.jsindex 14148acd71a..099243192fe 100644--- a/frontend/discourse/app/resolver.js+++ b/frontend/discourse/app/resolver.js@@ -43,32 +43,26 @@ const DEPRECATED_MODULES = new Map("store:main": {newName: "service:store",since: "2.8.0.beta8",- silent: true,},"search-service:main": {newName: "service:search",since: "2.8.0.beta8",- silent: true,},"key-value-store:main": {newName: "service:key-value-store",since: "2.9.0.beta7",- silent: true,},"pm-topic-tracking-state:main": {newName: "service:pm-topic-tracking-state",since: "2.9.0.beta7",- silent: true,},"message-bus:main": {newName: "service:message-bus",since: "2.9.0.beta7",- silent: true,},"site-settings:main": {newName: "service:site-settings",since: "2.9.0.beta7",- silent: true,},"capabilities:main": {newName: "service:capabilities",@@ -78,22 +72,18 @@ const DEPRECATED_MODULES = new Map("current-user:main": {newName: "service:current-user",since: "2.9.0.beta7",- silent: true,},"session:main": {newName: "service:session",since: "2.9.0.beta7",- silent: true,},"site:main": {newName: "service:site",since: "2.9.0.beta7",- silent: true,},"topic-tracking-state:main": {newName: "service:topic-tracking-state",since: "2.9.0.beta7",- silent: true,},"controller:composer": {newName: "service:composer",