-
Notifications
You must be signed in to change notification settings - Fork 885
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
[Vis Builder] Update vislib params and misc fixes #2610
[Vis Builder] Update vislib params and misc fixes #2610
Conversation
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #2610 +/- ##
==========================================
- Coverage 66.81% 66.80% -0.02%
==========================================
Files 3207 3207
Lines 61136 61137 +1
Branches 9313 9313
==========================================
- Hits 40851 40845 -6
- Misses 18055 18060 +5
- Partials 2230 2232 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
- Why did we need to add
uiState
to the embeddable? - For the future, we should consider consolidating common UI schemas (line, area, histogram and other XY-type charts share a bunch of properties that we can dedupe and inherit)
group: AggGroupNames.Buckets, | ||
name: 'group', | ||
title: i18n.translate('visTypeVislib.area.groupTitle', { | ||
defaultMessage: 'Split series', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, I was going to ask you about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, was called out in user testing :)
(result: any) => isLabsEnabled || result.type?.stage !== 'experimental' | ||
(result: any) => | ||
isLabsEnabled || | ||
(result.type?.stage !== 'experimental' && result.stage !== 'experimental') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems a little weird... maybe a comment would help explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because depending on the type of visualization (using the 'visualization' saved object or 'visBuilder' visualization) the location of the experimental property changes. I'd add a comment but honestly why they are in two different locations is beyond me so a comment would essentially describe this as you see it in the code. We dont have other aliased visualization to know for sure if its specific to aliased visualizations or just VisBuilder
Vislib visualization expect the UIState object to persist even when the parameters for the visualization change. We dont use the UIState in the visualization yet so i'm just passing in an empty UIState for now. Without this, updating the query in the Dashboard will cause VisLib visualizations to error out.
Agreed. I didnt do that here because of the upcoming transition away from VisLib. This view keeps understanding each vis types properties a lot easier. Can go either way, but this way its easier to reason them when we refactor. |
* Updates bar, line, area visbuilder config Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Misc fixes from functional testing Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds Changelog entry Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit 33aed0a)
* Updates bar, line, area visbuilder config Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Misc fixes from functional testing Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds Changelog entry Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit 33aed0a)
…#2610) * Updates bar, line, area visbuilder config Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Misc fixes from functional testing Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds Changelog entry Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: vimal k <vimalinfo10@gmail.com>
…#2610) (opensearch-project#2630) * Updates bar, line, area visbuilder config Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Misc fixes from functional testing Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds Changelog entry Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit 33aed0a)
…#2610) * Updates bar, line, area visbuilder config Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Misc fixes from functional testing Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds Changelog entry Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Sergey V. Osipov <sipopo@yandex.ru>
Description
This PR consists of 2 main changes
Issues Resolved
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr