Added support for Discourse 3.3.0 #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This brings the necessary changes to ensure the plugin is compatible with the latest Discourse stable version (and its development environment), which currently is 3.3.0. There are no significant functional updates here, but I made sure anyway that both the automated and the usual manual tests were working fine (minus the latest change introduced for the
ace-editor, see my note at the end). The list of changes is as follows:Gemfile.lockto match the required dependencies for Discourse v3.3.0.unless,to_sand||=.requires_pluginmethod to be called in every controller (although could not figure out a simple way of adding it to theLandingController, as it is not extending the usualApplicationController).class_evalin favour of statically declaring theattr_accessors.loadmethod with therequire_relativemethod in theafter_initializesection..js.es6files to just use the.jsextension.JsonEditorcomponent to still support the JSON syntax highlighting.@angusmcleod long time no push, so hope that you are still around for reviews!
If possible, it would be nice to re-enable the branch protection again to ensure that every PR and commit toJust realized that the action is being properly run, maybe was something wrong with my fork as it was not doing anything.mainsuccessfully passes both the linter checks and the tests.@merefield I saw that you added a small update for the
ace-editorcomponent to be compatible with the upcoming version of Discourse. Although it is not a fully-breaking change (it resets the editor cursor each time the text area is updated), it definitely complicates things if we want to add features or fixes for the latest stable (like this one). How do you see to create a newnext/future/dev/etc. branch to keep this "future-but-breaking" changes, while we usemainonly for updates related to the stable versions?