-
Notifications
You must be signed in to change notification settings - Fork 100
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
[BUG]: Visualizations not appearing in Operational Panels fixed #1170
[BUG]: Visualizations not appearing in Operational Panels fixed #1170
Conversation
return <></>; | ||
} | ||
return ( | ||
<Visualization | ||
visualizations={getVizContainerProps({ | ||
vizId: type, | ||
rawVizData: data, | ||
query: {}, | ||
query: { rawQuery: metaData.query }, |
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.
Do we need to handle a corner case when metaData does not contain query field?
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.
it has been handled when metaData is empty object, it wont render Visualization, and also we can not save the data without query. I believe it is not required!.
@@ -289,15 +289,15 @@ export const isPPLFilterValid = ( | |||
|
|||
// Renders visualization in the vizualization container component | |||
export const displayVisualization = (metaData: any, data: any, type: string) => { | |||
if (metaData === undefined || metaData === {}) { | |||
if (metaData === undefined || Object.keys(metaData).length === 0) { |
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.
isEmpty(metaData) might look cleaner
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.
+1, please adjust.
7fea280
to
51e5067
Compare
Codecov Report
@@ Coverage Diff @@
## main #1170 +/- ##
============================================
+ Coverage 53.70% 55.81% +2.10%
Complexity 291 291
============================================
Files 279 279
Lines 9490 9490
Branches 2244 2244
============================================
+ Hits 5097 5297 +200
+ Misses 4223 4021 -202
- Partials 170 172 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
1c37c5f
51e5067
to
1c37c5f
Compare
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri [email protected]
Description
Fixed the Saved visualizations will appear in operational panel after creating the panel
Issues Resolved
[BUG]: Visualizations not appearing in Operational Panels (#907)