chore: refactor Alert-related components#31858
Conversation
|
Korbit doesn't automatically review large (500+ lines changed) pull requests such as this one. If you want me to review anyway, use |
superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/ErrorMessage/InvalidSQLErrorMessage.test.tsx
Outdated
Show resolved
Hide resolved
|
From some functional testing:
|
| title: ReactNode; | ||
| description?: string; | ||
| import { useState } from 'react'; | ||
| import { Modal, Tooltip } from 'antd'; |
There was a problem hiding this comment.
Why importing from antd directly? From one side this is the previous version of antd and on the other hand, I think we said to import components from our wrappers not from antd directly.
There was a problem hiding this comment.
ooops. We really need a lint rule to catch this...
There was a problem hiding this comment.
There is one, but it's set to warn.... I'll see about flipping it to Error
2b87057 to
2eb9330
Compare
c5c85ea to
b96705d
Compare
37768e7 to
0643d1f
Compare
| projectId: 'ud5x2f', | ||
| retries: { | ||
| runMode: 2, | ||
| runMode: 3, |
There was a problem hiding this comment.
Heads up that with this and the automatic retry, there is a potential of running this test 9 times which could extend run time.
There was a problem hiding this comment.
Right, I know, getting a bit desperate here, seems the more I disable the more seem to fail...
There was a problem hiding this comment.
Wondering if we're best having a strick no-flakiness policy and less retries (?) Suck to wait 6 or 9 times the time to get a true negative....
There was a problem hiding this comment.
i wonder if any of them are dependent on other tests we have disabled, but if it's taking more time to pass, i think just go with it for now.
| with: | ||
| path: ${{ github.workspace }}/superset-frontend/cypress-base/cypress/screenshots | ||
| name: cypress-artifact-${{ github.run_id }}-${{ github.job }} | ||
| name: cypress-artifact-${{ github.run_id }}-${{ github.job }}-${{ matrix.browser }}-${{ matrix.parallel_id }} |
There was a problem hiding this comment.
This prevents collisions across the matrix
sadpandajoe
left a comment
There was a problem hiding this comment.
All the cypress changes LGTM
I got a bit confused and reckless on #31858, when I disabled many cypress tests, many of which are or may be flaky at times, but in this instance were probably triggered by some real issues in that PR. Renabling them all and will monitor PRs and master merges to re-disable the ones flaking as needed
I got a bit confused and reckless on #31858, when I disabled many cypress tests, many of which are or may be flaky at times, but in this instance were probably triggered by some real issues in that PR. Renabling them all and will monitor PRs and master merges to re-disable the ones flaking as needed




Chiseling at #31590 that has gotten big / unruly, in this PR is a refactor of Alert-related components, going vanilla AntD.
Also here. Deprecating colors.alerts since it's ambiguous/redundant with warning/error and does not exist in antd-v5