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
Welcome page title: use app_name instead of 'Superset' #8427
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8427 +/- ##
=======================================
Coverage 67.61% 67.61%
=======================================
Files 448 448
Lines 22486 22486
Branches 2364 2364
=======================================
Hits 15204 15204
Misses 7144 7144
Partials 138 138
Continue to review full report at Codecov.
|
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.
Looking at the template, I think if we don't specify a title here then it'll automatically fallback to appbuilder.app_name
https://github.com/apache/incubator-superset/blob/71f1bbd2ec59b99d6ba6d9a4a2f9cfceaf922b80/superset/templates/superset/basic.html#L27
I think a better fix would be to not set the title attribute at all
Sorry for the delay I miss the activity notification. Thanks, your solution is more elegant indeed. I updated the code and tested locally 👌 |
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, thanks for the fix!
CATEGORY
SUMMARY
The title of the welcome page is a hard coded string (value: "Superset"). When setting the
APP_NAME
to a custom name, we expect to see this name for the page title.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
When changing the
APP_NAME
insuperset/config.py
file:Before: the title of the welcome page is not updated (neither for pages without an explicit title)
After: the title is updated