ember-addons/ember-computed-decorators の削除

@markvanlan The move of the decorators from ember-addons/ember-computed-decorators to discourse-common/utils/decorators is about to break a number of plugins and themes as soon as folks hit the big blue update button.

Would it be possible to leave the existing decorators in place (in addition to the new ones) to give us time to make the transition?

This should not be a breaking change. Here in the discourse-loader file, we have added an alias, so that anytime you try and import ember-addons/ember-computed-decorators, it will automatically load discourse-common/utils/decorator instead.

Yeah, I saw that. I’m not sure why, but that doesn’t seem to be working in all cases. I’m gettting a lot of requirejs errors that seem to resolve once I move to the new import.

Are you able to see if it is happening when using require instead of import?

That was a bug that I thought I had fixed.

こんにちは

Discourse サイトで発生したエラーメッセージです。

Screen Shot 2020-02-19 at 2.50.56 PM

コードベースの更新は引き続き必要ですか?

そのエラーがどこから発生しているのか(どのプラグインが ember-addons/ember-computed-decorators を使用しているのか)は正確には確認できませんが、いずれ修正する必要があります。

これはエラーではなく警告です。なぜなら、現時点では ember-addons/ember-computed-decorators はまだ機能しているためです。

@markvanlan さん、ありがとうございます。

非推奨の資産を使用しているプラグインを特定するために、どのような方法を使用、または推奨されますか?

インスタンスにインストールされているプラグインを確認し、各 GitHub リポジトリで ember-addons/ember-computed-decorators を検索してください。

当社の公式 Discourse プラグインの一部には、この更新が必要なものがまだあるため、当社のリポジトリのいずれかである可能性があります。

それを展開して、完全なバックトレースを確認できますか?

ブラウザコンソールの警告のバックトレースをどうやって確認すればよいのか分かりません。

ただ、プラグインを grep で検索する方法は知っています :smile:

$ grep -r ember-addons/ember-computed-decorators plugins/|grep import|awk -F / '{print $2}'|uniq|sort
discourse-canned-replies
discourse-local-dates
discourse-presence
discourse-push-notifications
discourse-saved-searches
procourse-memberships

こんにちは、現時点では再現できません。ただし、素晴らしい @RGJ が当サイトのプラグインを更新したため、これでエラーが解決したのではないかと考えています。彼は以下の更新を指摘してくれました:

DEV: Find/replace deprecated decorators · discourse/discourse-data-explorer@277346b · GitHub

リチャード、グレートなグレアップ! :slight_smile:

これはパニックになるほどひどいことではないと思います。

プラグイン作成者も、これらの警告をできるだけ早く最小限に抑える責任があります。

私も最近いくつか解決しましたし、今後も続くでしょう。終わりのない物語ですね :wink:

これらは単なる警告であり、放置し続けなければ本当に心配する必要はありません。

ありがとうございます。Discourse がコードの改善と保守を続けてくれるのが素晴らしいですね!