fix(AlertReportModal): TypeError when pasting text into the Alerts content form search field#39298
fix(AlertReportModal): TypeError when pasting text into the Alerts content form search field#39298JCelento wants to merge 7 commits intoapache:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #39298 +/- ##
=======================================
Coverage 64.51% 64.51%
=======================================
Files 2557 2557
Lines 133057 133059 +2
Branches 30903 30904 +1
=======================================
+ Hits 85843 85845 +2
Misses 45724 45724
Partials 1490 1490
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code Review Agent Run #42db95Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Code Review Agent Run #d53417Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
7196f5b to
fd8f980
Compare
Code Review Agent Run #adf21dActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
| if (!chart || typeof chart !== 'object' || chart.value === undefined) { | ||
| return; | ||
| } |
There was a problem hiding this comment.
Isn't this the actual fix? Is the optimization in AsyncSelect necessary?
There was a problem hiding this comment.
That's correct. I'll remove the AsyncSelect optimization from this PR for better scoping. Do you think it is worth it for me to open another PR for the AsyncSelect optimization so that it can be reviewed with low priority?
There was a problem hiding this comment.
@msyavuz rescoped and created another branch for the optimization. Thanks!
84491bf to
15fa0c2
Compare
Code Review Agent Run #feaf18Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
15fa0c2 to
1c47852
Compare
Code Review Agent Run #9af424Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
1c47852 to
7ae6ea9
Compare
Code Review Agent Run #27471eActionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
…s/Select/AsyncSelect.tsx Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com>
7ae6ea9 to
6a17ec9
Compare
Code Review Agent Run #610960Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
AlertReportModal): The Chart field usesallowClearso the selection can be cleared from the UI.getChartVisualizationTypereturns early when the chart value is missing or invalid so/api/v1/chart/:idis not called with bad input after clear. Adds a test that clearing the chart drives the expected empty state.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE
AFTER
TESTING INSTRUCTIONS
Unit tests:
cd superset-frontend &&npm run test -- src/features/alerts/AlertReportModal.test.tsx` (or full suite as you prefer).Manual :
Expected results:
The pasted text should be used to search and filter the list of available charts, the same way typing works.
ADDITIONAL INFORMATION