Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV: Resolve deprecations in upgrade-notice component (#162)
- Loading branch information
1 parent
e9f53db
commit 98205ea
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import getURL from "discourse-common/lib/get-url"; | ||
import Component from "@ember/component"; | ||
|
||
export default class extends Component { | ||
tagName = "tr"; | ||
|
||
get href() { | ||
return getURL("/admin/upgrade"); | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
assets/javascripts/discourse/components/upgrade-notice.js.es6
This file was deleted.
Oops, something went wrong.
98205ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidtaylorhq Not sure if this commit is the cause, but after upgrading
docker_manager
on a latest stable, thePerform upgrades here.
link on the admin dashboard no longer works (going directly to/admin/upgrade
works though).98205ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the report @mentalstring - I think this should be fixed by #164
98205ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took so much time to find this and fix it :)
Latest version is currently bricking every rebuild that I do :)
Error:
MiniRacer::RuntimeError: SyntaxError: javascripts/discourse/components/upgrade-notice: Unexpected token (5:10)
Resolve (replace in app.yml when installing docker_manager):
98205ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbrighiu what version of Discourse were you upgrading from?
98205ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbrighiu posted:
i’m using a very old version - 2.5.0.beta7
I think it’s because of the ruby version bump.
In my cases I ended up removing the plugin as I was not really using it.
Stefan M. Brighiu
Engineering Manager @ Atta Systems
Phone: +40 744 581 921
Web: https://atta.systems
98205ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not upgrading, I was simply rebuilding the app and upon rebuild i clone the latest version available in github