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

feat: annotation layers CRUD list view #11432

Merged
merged 4 commits into from
Oct 28, 2020

Conversation

riahk
Copy link
Contributor

@riahk riahk commented Oct 26, 2020

SUMMARY

  • Convert annotation layers list view to a react page
  • New view is accessible via the SIP_34_ANNOTATIONS_UI feature flag
  • Update list view empty state to use new graphic and accept custom empty message + UI (ex. buttons)

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2020-10-26 at 2 15 54 PM

Screen Shot 2020-10-26 at 2 16 34 PM

TEST PLAN

  • Add spec file for AnnotationLayersList
  • Update python tests

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Oct 26, 2020

Codecov Report

Merging #11432 into master will increase coverage by 0.01%.
The diff coverage is 83.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11432      +/-   ##
==========================================
+ Coverage   66.65%   66.66%   +0.01%     
==========================================
  Files         863      864       +1     
  Lines       41048    41113      +65     
  Branches     3693     3706      +13     
==========================================
+ Hits        27359    27409      +50     
- Misses      13592    13606      +14     
- Partials       97       98       +1     
Flag Coverage Δ
#cypress 56.66% <24.52%> (-0.22%) ⬇️
#javascript 63.00% <86.15%> (+0.08%) ⬆️
#python 61.95% <50.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/views/App.tsx 28.94% <0.00%> (-0.79%) ⬇️
superset/annotation_layers/api.py 82.14% <ø> (ø)
superset/views/annotations.py 76.19% <50.00%> (-2.76%) ⬇️
...ews/CRUD/annotationlayers/AnnotationLayersList.tsx 84.31% <84.31%> (ø)
...rset-frontend/src/components/ListView/ListView.tsx 98.98% <100.00%> (+0.07%) ⬆️
...perset-frontend/src/messageToasts/actions/index.ts 87.50% <0.00%> (-8.34%) ⬇️
...et-frontend/src/messageToasts/components/Toast.tsx 91.66% <0.00%> (-8.34%) ⬇️
.../src/dashboard/components/gridComponents/Chart.jsx 84.69% <0.00%> (+1.02%) ⬆️
...set-frontend/src/dashboard/util/getDropPosition.js 93.65% <0.00%> (+1.58%) ⬆️

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 52294c8...be14717. Read the comment docs.

Copy link
Member

@dpgaspar dpgaspar left a comment

Choose a reason for hiding this comment

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

Looks good, just a question

"changed_on_delta_humanized",
"created_on",
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need changed_on? it's better to use changed_on_delta_humanized, also if we need/want created_on we should add a created_on_delta_humanized

@nytai nytai mentioned this pull request Oct 27, 2020
5 tasks
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

LGTM as a WIP. Let's get the python lint error fixed and I'll merge

@riahk riahk force-pushed the moriah/annotation-layers-list branch 2 times, most recently from c390145 to 0fb5e9f Compare October 28, 2020 21:21
@riahk riahk force-pushed the moriah/annotation-layers-list branch from e1e0c1a to be14717 Compare October 28, 2020 22:06
@nytai nytai merged commit e9dba18 into apache:master Oct 28, 2020
@nytai nytai deleted the moriah/annotation-layers-list branch October 28, 2020 22:45
@@ -37,6 +38,7 @@ import {
import { ListViewError, useListViewState } from './utils';

const ListViewStyles = styled.div`
background: ${({ theme }) => theme.colors.grayscale.light5};
Copy link
Member

Choose a reason for hiding this comment

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

I should have caught this during review, but this line needs to be removed.

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.

5 participants