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

feat: show build number value in the About if present in the config #14955

Merged
merged 8 commits into from
Sep 13, 2021

Conversation

cccs-joel
Copy link
Contributor

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

aboutafter

TESTING INSTRUCTIONS

Add a variable called BUILD_NUMBER in the config.py, the value should be displayed in the About section underneath the version/sha. No build information is shown if there is no variable BUILD_NUMBER in the config.py file.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@cccs-joel cccs-joel changed the title Show build number value in the About if present in the config feat: show build number value in the About if present in the config Jun 2, 2021
@junlincc junlincc requested a review from nytai June 2, 2021 23:36
@cccs-joel
Copy link
Contributor Author

Hi, do I need to action something from my side to speed things up?

@cccs-rc
Copy link
Contributor

cccs-rc commented Jul 14, 2021

Hi there! Is there anything we can do to help get this merged? @junlincc? @nytai?

@dparent1
Copy link
Contributor

dparent1 commented Aug 6, 2021

My mistake for reviewing, apologies.

@cccs-joel
Copy link
Contributor Author

How can we get the ball rolling with this PR? @junlincc

@nytai
Copy link
Member

nytai commented Aug 18, 2021

Could you please explain your use case and why this is needed? Does the current version config, kept in package.json, not meet your needs?

@cccs-joel
Copy link
Contributor Author

Sure, we want to qualify/augment the version number available in the config by adding a build number shown in the about. Would be useful for our QA people. That number in our case is the date we build the image and a sequence number, too long to fit on the same line of the Superset version.

@nytai
Copy link
Member

nytai commented Aug 18, 2021

Ok, looks like CI is failing. Can you add a default value to config.py and a comment explaining what this config does and how to use it?

Comment on lines 316 to 319
try:
build_number = appbuilder.app.config["BUILD_NUMBER"]
except Exception as ex:
logger.debug("BUILD_NUMBER is missing from the config", ex)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be necessary if you add a default value in config.py, (either empty string or None). Config values should never be undefined.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything required at our end at this point?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you need to get CI passing before we can merge

@codecov
Copy link

codecov bot commented Aug 18, 2021

Codecov Report

Merging #14955 (6996976) into master (4e380db) will decrease coverage by 0.21%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14955      +/-   ##
==========================================
- Coverage   76.71%   76.50%   -0.22%     
==========================================
  Files        1002     1002              
  Lines       53823    53829       +6     
  Branches     7287     7291       +4     
==========================================
- Hits        41292    41183     -109     
- Misses      12291    12406     +115     
  Partials      240      240              
Flag Coverage Δ
hive ?
javascript 71.00% <80.00%> (+0.01%) ⬆️
mysql 81.55% <100.00%> (+<0.01%) ⬆️
postgres 81.53% <100.00%> (-0.04%) ⬇️
presto ?
python 81.66% <100.00%> (-0.43%) ⬇️
sqlite 81.18% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset-frontend/src/components/Menu/Menu.tsx 69.79% <ø> (ø)
...uperset-frontend/src/components/Menu/MenuRight.tsx 91.22% <80.00%> (-1.23%) ⬇️
superset/config.py 91.39% <100.00%> (+0.02%) ⬆️
superset/views/base.py 76.51% <100.00%> (+0.07%) ⬆️
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 69.80% <0.00%> (-16.87%) ⬇️
superset/db_engine_specs/presto.py 83.47% <0.00%> (-6.91%) ⬇️
superset/views/database/mixins.py 81.03% <0.00%> (-1.73%) ⬇️
superset/connectors/sqla/models.py 88.04% <0.00%> (-1.66%) ⬇️
superset/db_engine_specs/base.py 88.00% <0.00%> (-0.39%) ⬇️
... and 3 more

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 4e380db...6996976. Read the comment docs.

@cccs-joel
Copy link
Contributor Author

There is still a failing check, no clue why. All I get is: T_he operation was canceled._ for Python Misc / python-lint

@nytai
Copy link
Member

nytai commented Sep 2, 2021

Yes. I think there’s an issue with a pylint upgrade that’s currently affecting all PRs.

@nytai nytai closed this Sep 2, 2021
@nytai nytai reopened this Sep 2, 2021
@nytai
Copy link
Member

nytai commented Sep 2, 2021

@cccs-joel you might have to rebase your branch to fix, seems like some of the more recently opened PRs are not having issues.

@cccs-joel
Copy link
Contributor Author

@nytai I just merged master into my branch once again, hopefully that will trigger the checks and they will all pass.

@cccs-joel
Copy link
Contributor Author

@nytai Ok, that did the trick, all checks are now passing. Can someone merge?

@nytai nytai merged commit c6ac107 into apache:master Sep 13, 2021
@villebro villebro added the v1.3 label Sep 15, 2021
villebro pushed a commit that referenced this pull request Sep 22, 2021
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
@mistercrunch mistercrunch added 🍒 1.3.1 🍒 1.3.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 12, 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/S v1.3 🍒 1.3.1 🍒 1.3.2 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants