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

refactor: Feature flags getter #22015

Merged
merged 3 commits into from
Nov 3, 2022
Merged

Conversation

zhaoyongjie
Copy link
Member

SUMMARY

The Feature flags getter has should be returned an explicit boolean value. The unit test makes a minor refactor.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • 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

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Merging #22015 (b7eb30f) into master (429f246) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #22015   +/-   ##
=======================================
  Coverage   65.76%   65.77%           
=======================================
  Files        1813     1813           
  Lines       69437    69423   -14     
  Branches     7450     7448    -2     
=======================================
- Hits        45667    45662    -5     
+ Misses      21850    21841    -9     
  Partials     1920     1920           
Flag Coverage Δ
javascript 53.50% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...ackages/superset-ui-core/src/utils/featureFlags.ts 100.00% <100.00%> (ø)
superset-frontend/src/utils/downloadAsImage.ts 11.11% <0.00%> (-4.68%) ⬇️
...perset-frontend/src/addSlice/AddSliceContainer.tsx 59.61% <0.00%> (ø)
...d/src/filters/components/Time/TimeFilterPlugin.tsx 0.00% <0.00%> (ø)
.../legacy-plugin-chart-histogram/src/controlPanel.ts 40.00% <0.00%> (ø)
...ore/components/controls/DateFilterControl/types.ts 100.00% <0.00%> (ø)
...ents/controls/DateFilterControl/utils/constants.ts 100.00% <0.00%> (ø)
...nts/controls/DateFilterControl/DateFilterLabel.tsx 58.13% <0.00%> (+1.95%) ⬆️
superset-frontend/src/utils/common.js 100.00% <0.00%> (+10.00%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

Some code style opinions, LMKWYT

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM

@zhaoyongjie zhaoyongjie merged commit d52d72c into apache:master Nov 3, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 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/M 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants