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: Creating dataset/add route #20869

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Jul 26, 2022

SUMMARY

This PR creates the groundwork for a new dataset editor that is going to be rolled out in the next couple of weeks. Currently it is gated behind the 'testing' query parameter, if this is not present users will be redirected to the welcome page.

Also created are very basic level components that will be populated as the feature gets more filled out, but are currently empty. Each component is in its own folder which will have the component + testing in it.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2022-07-26 at 3 30 35 PM

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@AAfghahi AAfghahi force-pushed the arash.afghahi/sc-52802/create-route-for-dataset-id-and-dataset-add branch from 21848ca to a054648 Compare July 26, 2022 16:14
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #20869 (2d03b86) into master (2263a76) will increase coverage by 0.81%.
The diff coverage is 53.12%.

@@            Coverage Diff             @@
##           master   #20869      +/-   ##
==========================================
+ Coverage   66.32%   67.14%   +0.81%     
==========================================
  Files        1756     1768      +12     
  Lines       66767    72083    +5316     
  Branches     7060     7898     +838     
==========================================
+ Hits        44286    48400    +4114     
- Misses      20683    21714    +1031     
- Partials     1798     1969     +171     
Flag Coverage Δ
hive 53.97% <66.66%> (+0.72%) ⬆️
javascript 52.59% <12.50%> (+0.62%) ⬆️
mysql 81.51% <66.66%> (+0.44%) ⬆️
postgres 81.57% <66.66%> (+0.44%) ⬆️
presto 53.99% <66.66%> (+0.87%) ⬆️
python 82.07% <66.66%> (+0.49%) ⬆️
sqlite 80.13% <66.66%> (+0.38%) ⬆️
unit 50.62% <66.66%> (+0.37%) ⬆️

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

Impacted Files Coverage Δ
...UD/data/dataset/DatasetPage/DatasetPanel/index.tsx 0.00% <0.00%> (ø)
...ews/CRUD/data/dataset/DatasetPage/Footer/index.tsx 0.00% <0.00%> (ø)
...ews/CRUD/data/dataset/DatasetPage/Header/index.tsx 0.00% <0.00%> (ø)
.../CRUD/data/dataset/DatasetPage/LeftPanel/index.tsx 0.00% <0.00%> (ø)
...CRUD/data/dataset/DatasetPage/RightPanel/index.tsx 0.00% <0.00%> (ø)
.../src/views/CRUD/data/dataset/DatasetPage/index.tsx 0.00% <0.00%> (ø)
superset-frontend/src/views/routes.tsx 55.26% <50.00%> (-0.30%) ⬇️
superset/views/datasource/views.py 90.98% <63.63%> (-6.11%) ⬇️
superset/initialization/__init__.py 91.69% <100.00%> (+0.02%) ⬆️
...components/DashboardBuilder/DashboardContainer.tsx 48.97% <0.00%> (-23.25%) ⬇️
... and 103 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

@AAfghahi AAfghahi force-pushed the arash.afghahi/sc-52802/create-route-for-dataset-id-and-dataset-add branch from a054648 to 3c99d73 Compare July 26, 2022 19:30
@AAfghahi AAfghahi marked this pull request as ready for review July 26, 2022 19:31
Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

Great foundations!

@AAfghahi AAfghahi force-pushed the arash.afghahi/sc-52802/create-route-for-dataset-id-and-dataset-add branch 2 times, most recently from 36cbb2f to edf1085 Compare July 28, 2022 15:45

@expose("/add/")
@has_access
@permission_name("read")
Copy link
Member

@eschutho eschutho Jul 28, 2022

Choose a reason for hiding this comment

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

what sort of permissions does this map to? Who has permission to read this page? Wouldn't this be edit?

@eschutho
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@eschutho Ephemeral environment spinning up at http://54.188.25.138:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@AAfghahi AAfghahi force-pushed the arash.afghahi/sc-52802/create-route-for-dataset-id-and-dataset-add branch from edf1085 to f4674da Compare July 28, 2022 20:05
@AAfghahi AAfghahi force-pushed the arash.afghahi/sc-52802/create-route-for-dataset-id-and-dataset-add branch from f4674da to 3d69718 Compare July 28, 2022 20:17
AAfghahi and others added 2 commits August 1, 2022 14:14
…x.tsx

Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
…tPanel/index.tsx

Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
@AAfghahi AAfghahi merged commit 460b213 into master Aug 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2022

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 labels Mar 13, 2024
@mistercrunch mistercrunch deleted the arash.afghahi/sc-52802/create-route-for-dataset-id-and-dataset-add branch March 26, 2024 16:07
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 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants