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: Add owners and physical/virtual status to Datasets API list endpoint #10025

Merged
merged 4 commits into from Jun 10, 2020

Conversation

willbarrett
Copy link
Member

SUMMARY

In #9959 we ran into issues with joins from FAB, and while we are working on a fix for both that bug and adding the option to specify a base query, those will not be ready immediately. This PR adds the un-blocked fields from the previous PR to the datasets list API endpoint for consumption in an updated Datasets UI.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

See #9959

TEST PLAN

See #9959

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

Reviewers

@dpgaspar @nytai @mistercrunch

@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2020

Codecov Report

Merging #10025 into master will increase coverage by 0.06%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10025      +/-   ##
==========================================
+ Coverage   70.41%   70.47%   +0.06%     
==========================================
  Files         585      583       -2     
  Lines       31058    31028      -30     
  Branches     3267     3175      -92     
==========================================
- Hits        21868    21866       -2     
+ Misses       9079     9053      -26     
+ Partials      111      109       -2     
Flag Coverage Δ
#cypress 53.85% <ø> (-0.02%) ⬇️
#javascript 59.41% <ø> (+0.04%) ⬆️
#python 70.07% <88.88%> (+0.07%) ⬆️
Impacted Files Coverage Δ
superset/datasets/api.py 92.56% <ø> (ø)
superset/connectors/base/models.py 88.92% <88.88%> (-0.01%) ⬇️
.../src/dashboard/components/gridComponents/Chart.jsx 88.76% <0.00%> (-1.13%) ⬇️
superset-frontend/src/chart/chartAction.js 61.32% <0.00%> (-0.43%) ⬇️
superset/viz.py 57.18% <0.00%> (-0.02%) ⬇️
superset/sql_parse.py 99.29% <0.00%> (-0.01%) ⬇️
superset/viz_sip38.py 0.00% <0.00%> (ø)
...uperset-frontend/src/views/chartList/ChartList.tsx 61.22% <0.00%> (ø)
...rontend/src/explore/components/PropertiesModal.tsx 16.66% <0.00%> (ø)
...t-frontend/src/explore/controlPanels/CountryMap.js
... and 4 more

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 280b4dc...41cacfa. 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.

Small nit, otherwise LGTM. However, I wonder if we could come up with a more descriptive suffix than "kind". Not sure what it would be, and the obvious alternatives (type, class etc) are no more descriptive than this, but if something comes to mind it might be worth exploring.

superset/connectors/base/models.py Outdated Show resolved Hide resolved
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
@willbarrett willbarrett force-pushed the wbarrett/add-less-to-datasets-list branch from 69e08c8 to 69e7dc8 Compare June 10, 2020 16:46
@willbarrett willbarrett force-pushed the wbarrett/add-less-to-datasets-list branch from 69e7dc8 to 41cacfa Compare June 10, 2020 17:11
@willbarrett
Copy link
Member Author

Sorry for the force-pushes. It's just the same commit with a different description to try to get a clean build. Running into flakes.

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.

LGTM. I will leave open for an hour or so if someone else wants to chime in, but I think this is ready to go.

@villebro villebro merged commit 4ef2699 into apache:master Jun 10, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
…point (apache#10025)

* Add owners and physical/virtual status to Datasets API list endpoint

* black

* Update type definition for DatasourceKind

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* Fixin' tests and mypy

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.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/S 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants