-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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(datasets): Change in API to create virtual datasets #21840
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21840 +/- ##
==========================================
+ Coverage 66.18% 66.93% +0.74%
==========================================
Files 1805 1805
Lines 69066 69068 +2
Branches 7369 7369
==========================================
+ Hits 45712 46230 +518
+ Misses 21448 20932 -516
Partials 1906 1906
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@villebro can you please check on this? |
Nice, I'll review shortly |
@villebro any update here? |
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, thanks for implementing this and adding test coverage!
SUMMARY
The create API for datasets only allows the creation of physical datasets. This makes the ability to directly create virtual datasets not possible. This adds a support for the same. This is a non-breaking change, adding a non-mandatory parameter in the request body.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
NA
TESTING INSTRUCTIONS
curl --location --request POST 'http://localhost:8088/api/v1/dataset/' \ --header 'Content-Type: application/json' \ --header 'Cookie: ${COOKIE}' \ --header 'Origin: http://localhost:8088' \ --header 'Referer: http://localhost:8088/swagger/v1' \ --header 'accept: application/json' \ --header 'X-csrftoken: ${CSRF_TOKEN}' \ --data-raw '{ "database": 1, "external_url": "", "is_managed_externally": false, "owners": [ 1 ], "sql": "select a.*,b.name from ab_permission_view a join ab_permission b on a.permission_id = b.id", "schema": "public", "table_name": "test1234" }'
ADDITIONAL INFORMATION