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

fix: error alert levels again #17027

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented Oct 7, 2021

SUMMARY

Even after these fixes, and apparently because this doesn't repro well in the testenv, there were still issues with my previous fix because we use level in the styled components (which i missed the first 2 times here).

I'm going to cherrypick this fix into our deploy before merging this PR this time, since i've failed to fix this twice already

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

CI, deploy to our internal env for repro

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

to: @rusackas @graceguo-supercat @michael-s-molina

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #17027 (8b62aad) into master (ea70038) will decrease coverage by 0.04%.
The diff coverage is 58.44%.

❗ Current head 8b62aad differs from pull request most recent head 3fb15e6. Consider uploading reports for the commit 3fb15e6 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17027      +/-   ##
==========================================
- Coverage   76.93%   76.89%   -0.05%     
==========================================
  Files        1030     1031       +1     
  Lines       55088    55182      +94     
  Branches     7480     7505      +25     
==========================================
+ Hits        42383    42431      +48     
- Misses      12454    12499      +45     
- Partials      251      252       +1     
Flag Coverage Δ
javascript 70.82% <57.87%> (-0.09%) ⬇️

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

Impacted Files Coverage Δ
...frontend/src/profile/components/CreatedContent.tsx 87.50% <ø> (ø)
superset-frontend/src/setup/setupErrorMessages.ts 0.00% <0.00%> (ø)
...c/views/CRUD/data/database/DatabaseModal/index.tsx 43.57% <0.00%> (-0.23%) ⬇️
...mponents/nativeFilters/FiltersConfigModal/utils.ts 70.37% <33.33%> (-0.52%) ⬇️
...nd/src/views/CRUD/data/dataset/AddDatasetModal.tsx 54.54% <33.33%> (-8.32%) ⬇️
...onfigModal/FiltersConfigForm/FiltersConfigForm.tsx 71.60% <35.71%> (-2.23%) ⬇️
...et-frontend/src/components/TableSelector/index.tsx 74.52% <58.82%> (-3.03%) ⬇️
...nd/src/components/ErrorMessage/BasicErrorAlert.tsx 95.23% <75.00%> (-4.77%) ⬇️
.../src/explore/components/controls/SelectControl.jsx 77.61% <75.00%> (-1.08%) ⬇️
...ts/nativeFilters/FiltersConfigModal/FilterTabs.tsx 85.71% <77.77%> (-0.96%) ⬇️
... and 12 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 ea70038...3fb15e6. Read the comment docs.

@etr2460
Copy link
Member Author

etr2460 commented Oct 8, 2021

This is verified in our env, so ready for a stamp

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

LGTM!

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 with minor nit

{!level || level === 'error' ? (
<Icons.ErrorSolid iconColor={theme.colors.error.base} />
{level === 'error' ? (
<Icons.ErrorSolid iconColor={theme.colors[level].base} />
Copy link
Member

Choose a reason for hiding this comment

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

To avoid duplication, could we create const iconColor = theme.colors[level].base above and then reference that here and below?

<Icons.ErrorSolid
className="icon"
iconColor={theme.colors.error.base}
iconColor={theme.colors[level].base}
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@etr2460 etr2460 force-pushed the erik-ritter--fix-error-alerts-again branch from 0cec291 to 3fb15e6 Compare October 11, 2021 16:26
@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 11, 2021
@etr2460 etr2460 merged commit 153469d into apache:master Oct 11, 2021
@villebro villebro added the v1.4 label Oct 12, 2021
eschutho pushed a commit to preset-io/superset that referenced this pull request Oct 27, 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.4.0 🍒 1.4.1 🍒 1.4.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 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 v1.4 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants