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

chore: cleanup on catalog check for Gsheets #21738

Merged
merged 1 commit into from
Oct 11, 2022
Merged

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Oct 7, 2022

SUMMARY

Instead of using the string let's use enum provided in types for checking

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

Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov
Copy link

codecov bot commented Oct 7, 2022

Codecov Report

Merging #21738 (caab009) into master (200bed6) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #21738      +/-   ##
==========================================
- Coverage   66.84%   66.83%   -0.01%     
==========================================
  Files        1799     1800       +1     
  Lines       68902    68937      +35     
  Branches     7324     7335      +11     
==========================================
+ Hits        46057    46077      +20     
- Misses      20955    20967      +12     
- Partials     1890     1893       +3     
Flag Coverage Δ
hive 52.91% <ø> (ø)
javascript 53.15% <100.00%> (+<0.01%) ⬆️
mysql 78.24% <ø> (ø)
postgres 78.30% <ø> (ø)
presto 52.82% <ø> (ø)
python 81.44% <ø> (ø)
sqlite 76.80% <ø> (ø)
unit 50.96% <ø> (ø)

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

Impacted Files Coverage Δ
...c/views/CRUD/data/database/DatabaseModal/index.tsx 34.12% <100.00%> (ø)
...rc/explore/components/ExploreChartHeader/index.jsx 55.76% <0.00%> (-1.10%) ⬇️
...mponents/useExploreAdditionalActionsMenu/index.jsx 62.65% <0.00%> (-0.77%) ⬇️
superset-frontend/src/dashboard/actions/hydrate.js 1.78% <0.00%> (-0.14%) ⬇️
...rontend/src/dashboard/containers/DashboardPage.tsx 7.25% <0.00%> (-0.06%) ⬇️
...ExploreAdditionalActionsMenu/DashboardsSubMenu.tsx 83.33% <0.00%> (ø)

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

@@ -744,11 +744,11 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
engine_information,
},
});
}
Copy link
Member

@eschutho eschutho Oct 7, 2022

Choose a reason for hiding this comment

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

is this PR changing indentation/block scope too?

Copy link
Member Author

Choose a reason for hiding this comment

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

yea i moved it inside of the if so i have context for engine

Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

lgtm!

@hughhhh hughhhh merged commit bd3166b into master Oct 11, 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
@mistercrunch mistercrunch deleted the use-gsheet-enum-catalog branch March 26, 2024 18:02
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 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants