Skip to content
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

fix: Adding and removing annotations #11811

Merged
merged 11 commits into from
Nov 28, 2020

Conversation

agatapst
Copy link
Contributor

@agatapst agatapst commented Nov 25, 2020

SUMMARY

This fix covers adding, editing and removing annotation layers.
It closes #11782 where everything was explained with details.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Adding annotation

before:
before_adding_annotations

after:
adding_annotations

Removing annotation

before:
before_removing_annotations

after:
editing_removing_annotations

TEST PLAN

Please verify manually. Steps to recreate issue are described on the Issue #11782 page.

ADDITIONAL INFORMATION

cc @adam-stasiak

@agatapst agatapst changed the title fix: Adding, removing & editing annotations fix: Adding and removing annotations Nov 25, 2020
@junlincc
Copy link
Member

junlincc commented Nov 25, 2020

manually tested from local, LGTM. thanks for including the edge case of handling same annotation layers name
annotation1

@agatapst agatapst force-pushed the fix/add-and-remove-annotations branch from 3e405fe to 0b9501a Compare November 25, 2020 15:35
@codecov-io
Copy link

codecov-io commented Nov 25, 2020

Codecov Report

Merging #11811 (0b9501a) into master (84c8a62) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #11811   +/-   ##
=======================================
  Coverage   63.54%   63.55%           
=======================================
  Files         915      915           
  Lines       44358    44355    -3     
  Branches     4221     4221           
=======================================
- Hits        28189    28188    -1     
+ Misses      15990    15988    -2     
  Partials      179      179           
Flag Coverage Δ
javascript 62.97% <0.00%> (+0.01%) ⬆️
python 63.88% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rc/explore/components/controls/AnnotationLayer.jsx 0.00% <0.00%> (ø)
...ore/components/controls/AnnotationLayerControl.jsx 8.45% <0.00%> (-0.38%) ⬇️
superset/views/base_api.py 97.61% <0.00%> (-0.48%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84c8a62...0b9501a. Read the comment docs.

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @agatapst , in addition to the fix I like the refactoring done here 👍

@junlincc junlincc added the rush! Requires immediate attention label Nov 27, 2020
@junlincc
Copy link
Member

let's merge if everything looks alright, other upcoming PRs around this area will rely on this.

@adam-stasiak
Copy link
Contributor

Tested - It is working fine. One short question related to logic of this feature @junlincc :
Should all added annotation layers be included in summary in manage menu? It is not included now.
image

@villebro villebro merged commit 43c69d5 into apache:master Nov 28, 2020
@junlincc junlincc removed the rush! Requires immediate attention label Mar 18, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[annotation]add and remove annotation is not working
6 participants