Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
When creating a Graph Chart with the feature flag
ENABLE_EXPLORE_DRAG_AND_DROPactivated, the application freezes on a white screen.Scope
The purpose of this PR is to resolve the bug with as little impact as possible on the application
Debuging
When a chart (Graph) is created several error messages are displayed on the console. One of the messages is
Proposed solution
As the interface is not very clear, and for some reason the contract was changed, the idea of the solution is to change this
proponly in the case where the error occurred and not impact any other part of the application that may be using this data.For this, only the
src/explore/components/Control.tsxcomponent was changed, transforming theoptionsprops into an array only for the use ofSelectControl.AFTER
TEST PLAN
No behavior has been changed, so the application should work normally. In addition, all tests already implemented should pass correctly.
To test if this fix is working correctly, it is necessary to activate the feature flag:
ENABLE_EXPLORE_DRAG_AND_DROP(The activation is not in this PR because it is not intended to change any application's behavior.)
ADDITIONAL INFORMATION
The bug was reported in this comment: #13210 (comment)
@junlincc @ktmud