New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display version from package.json in left menu #5478
Conversation
…back-end Signed-off-by: soupette <cyril.lpz@gmail.com>
It would be cool to add a warning by comparing the data you get from the getEnv and the built version with this change. |
Codecov Report
@@ Coverage Diff @@
## master #5478 +/- ##
=======================================
Coverage 17.73% 17.73%
=======================================
Files 687 687
Lines 10151 10154 +3
Branches 1643 1644 +1
=======================================
+ Hits 1800 1801 +1
- Misses 6961 6962 +1
- Partials 1390 1391 +1
Continue to review full report at Codecov.
|
@@ -1,5 +1,6 @@ | |||
// Shared constants | |||
import { fromJS } from 'immutable'; | |||
import packageJSON from '../../../../package.json'; |
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 think this will break because we do not copy the pkg.json file in the .cache folder :/
Signed-off-by: soupette <cyril.lpz@gmail.com>
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.
LGTM
Description of what you did:
This PR uses the version from the
package.json
to display thebuilt
version in the left menu. This PR will let users know if they have updated their administration panel correctly.