Skip to content
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

Merged
merged 1 commit into from Nov 6, 2019
Merged

Welcome page title: use app_name instead of 'Superset' #8427

merged 1 commit into from Nov 6, 2019

Conversation

Zanoellia
Copy link
Contributor

CATEGORY

  • Enhancement (new features, refinement)

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 in superset/config.py file:

 # GLOBALS FOR APP Builder
 # ------------------------------
 # Uncomment to setup Your App name
-APP_NAME = "Superset"
+APP_NAME = "My Custom Name"

Before: the title of the welcome page is not updated (neither for pages without an explicit title)

before

After: the title is updated

after

@codecov-io
Copy link

codecov-io commented Oct 22, 2019

Codecov Report

Merging #8427 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
superset/views/core.py 71.38% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f246ce...cc8902f. Read the comment docs.

Copy link
Member

@etr2460 etr2460 left a 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

@Zanoellia
Copy link
Contributor Author

Zanoellia commented Nov 6, 2019

Sorry for the delay I miss the activity notification.

Thanks, your solution is more elegant indeed. I updated the code and tested locally 👌

Copy link
Member

@etr2460 etr2460 left a 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!

@etr2460 etr2460 merged commit ec476fc into apache:master Nov 6, 2019
@Zanoellia Zanoellia deleted the appname_default_title branch November 8, 2019 10:02
@dpgaspar dpgaspar added the v0.35 label Dec 20, 2019
@mistercrunch mistercrunch added 🍒 0.35.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS v0.35 🍒 0.35.2 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants