-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
feat(explore): support show annotation label [ID-8] #17307
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17307 +/- ##
==========================================
- Coverage 77.01% 76.80% -0.21%
==========================================
Files 1049 1049
Lines 56682 56683 +1
Branches 7851 7851
==========================================
- Hits 43651 43533 -118
- Misses 12778 12897 +119
Partials 253 253
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Code LGTM. Spinning up an env
/testenv up |
@geido Ephemeral environment spinning up at http://34.220.144.13:8080. Credentials are |
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.
LGTM, wait for bumping superset-ui
superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.jsx
Outdated
Show resolved
Hide resolved
superset/charts/schemas.py
Outdated
@@ -884,6 +884,9 @@ class AnnotationLayerSchema(Schema): | |||
allow_none=True, | |||
) | |||
show = fields.Boolean(description="Should the layer be shown", required=True) | |||
showLabel = fields.Boolean( | |||
description="Should the label always be shown", required=True, |
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.
I am wondering whether we should make this optional to avoid a breaking change
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.
That's a good point. I think allowNone=True
is better
8effc17
to
ee96f82
Compare
…yerControl/AnnotationLayer.jsx Co-authored-by: Geido <[email protected]>
…t into feat-annotation-label
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.
Is the superset-ui bump still relevant?
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
As a user, it's better to have an option to ALWAYS see the annotation label once annotation is added to charts, instead of hovering to view. This PR adds
show label
control to do this.related pr: apache-superset/superset-ui#1449
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
interval
events
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION