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 source tab to DatasourceEditor #10731

Closed

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Aug 29, 2020

SUMMARY

Add a Source tab to the dataset editor

TODO: expose database/schema selector on virtual dataset, this will require some refactoring around TableSelector

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2020-08-29 at 4 50 28 PM

Screen Shot 2020-08-29 at 4 50 21 PM

@mistercrunch mistercrunch force-pushed the datasource_editor_source branch 2 times, most recently from 9c943e3 to faf9baa Compare August 30, 2020 00:18
@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2020

Codecov Report

Merging #10731 into master will decrease coverage by 0.20%.
The diff coverage is 60.60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10731      +/-   ##
==========================================
- Coverage   60.87%   60.66%   -0.21%     
==========================================
  Files         803      803              
  Lines       37928    37938      +10     
  Branches     3561     3570       +9     
==========================================
- Hits        23088    23015      -73     
- Misses      14654    14737      +83     
  Partials      186      186              
Flag Coverage Δ
#javascript 61.67% <60.60%> (+0.08%) ⬆️
#python 60.07% <ø> (-0.39%) ⬇️

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

Impacted Files Coverage Δ
...erset-frontend/src/datasource/DatasourceEditor.jsx 65.11% <60.60%> (-4.48%) ⬇️
superset/databases/commands/create.py 31.91% <0.00%> (-59.58%) ⬇️
superset/views/database/mixins.py 59.64% <0.00%> (-21.06%) ⬇️
superset/databases/schemas.py 85.62% <0.00%> (-13.73%) ⬇️
superset/databases/commands/update.py 85.71% <0.00%> (-8.17%) ⬇️
superset/databases/api.py 81.38% <0.00%> (-7.98%) ⬇️
superset-frontend/src/CRUD/CollectionTable.tsx 63.20% <0.00%> (-6.61%) ⬇️
superset/databases/dao.py 94.11% <0.00%> (-5.89%) ⬇️
superset/views/database/validators.py 78.94% <0.00%> (-5.27%) ⬇️
... and 15 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 e6a4808...895e510. Read the comment docs.

@mistercrunch mistercrunch force-pushed the datasource_editor_source branch 4 times, most recently from c648e14 to 8d9210a Compare September 9, 2020 16:02
@mistercrunch mistercrunch marked this pull request as ready for review September 9, 2020 16:03
@@ -831,10 +831,6 @@ def test_export_dataset(self):
self.login(username="admin")
rv = self.get_assert_metric(uri, "export")
self.assertEqual(rv.status_code, 200)
self.assertEqual(
Copy link
Member Author

Choose a reason for hiding this comment

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

This was having mismatch timestamp on filename

@@ -849,7 +845,9 @@ def test_export_dataset(self):
expected_response = export_table
break
ui_export = yaml.safe_load(rv.data.decode("utf-8"))
self.assertEqual(ui_export[0], expected_response)
# TODO re-enable flaky next line
Copy link
Member Author

Choose a reason for hiding this comment

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

https://github.com/apache/incubator-superset/pull/10731/checks?check_run_id=1091887012

for reference:

=================================== FAILURES ===================================
______________________ TestDatasetApi.test_export_dataset ______________________

self = <tests.datasets.api_tests.TestDatasetApi testMethod=test_export_dataset>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants