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

Preferring config[] over config.get #9676

Merged
merged 1 commit into from Apr 28, 2020

Conversation

rusackas
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Favoring config["WHATEVER"] over config.get("WHATEVER"). Pattern preference stated by, and commit summary message dedicated to, @etr2460.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@etr2460

@rusackas
Copy link
Member Author

Hope there's not a reason any of these need to be in the other syntax. Just figured changing them all would mean fewer people (myself included!) would copy the wrong pattern.

@codecov-io
Copy link

codecov-io commented Apr 28, 2020

Codecov Report

Merging #9676 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9676      +/-   ##
==========================================
- Coverage   70.57%   70.56%   -0.01%     
==========================================
  Files         581      581              
  Lines       30272    30272              
  Branches     3078     3078              
==========================================
- Hits        21364    21361       -3     
- Misses       8796     8799       +3     
  Partials      112      112              
Flag Coverage Δ
#cypress 53.65% <ø> (-0.08%) ⬇️
#javascript 58.75% <ø> (ø)
#python 70.66% <ø> (ø)
Impacted Files Coverage Δ
superset/views/base.py 72.35% <ø> (ø)
...rontend/src/SqlLab/components/QueryAutoRefresh.jsx 65.90% <0.00%> (-6.82%) ⬇️

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 9d755bc...1e1b81f. 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.

validated that all these variables exist in the config.py file already. Thanks for the cleanup!

cc @john-bodley as he'll appreciate this too

@rusackas rusackas merged commit 13aa889 into apache:master Apr 28, 2020
@rusackas rusackas deleted the prefer-config-bracket-notation branch April 28, 2020 21:10
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Feb 28, 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 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants