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: Sqllab to Explore UX improvements api changes #11836

Merged
merged 9 commits into from Nov 30, 2020
Merged

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Nov 27, 2020

SUMMARY

Breaking down #11755 to have the api change separately get checked in.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

tox -e py38-sqlite -vv -- tests/datasets/api_tests.py::TestDatasetApi::test_update_dataset_item_w_override_columns

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 Nov 27, 2020

Codecov Report

Merging #11836 (57ca09c) into master (f121107) will increase coverage by 1.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11836      +/-   ##
==========================================
+ Coverage   66.52%   67.56%   +1.03%     
==========================================
  Files         916      916              
  Lines       44545    44554       +9     
  Branches     4227     4227              
==========================================
+ Hits        29634    30101     +467     
+ Misses      14781    14350     -431     
+ Partials      130      103      -27     
Flag Coverage Δ
cypress 55.15% <ø> (+8.06%) ⬆️
javascript 62.92% <ø> (ø)
python 64.11% <100.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/datasets/api.py 92.05% <100.00%> (+0.07%) ⬆️
superset/datasets/commands/update.py 94.18% <100.00%> (+0.13%) ⬆️
superset/datasets/dao.py 87.06% <100.00%> (+0.58%) ⬆️
superset-frontend/src/explore/exploreUtils.js 80.29% <0.00%> (+0.72%) ⬆️
...rontend/src/views/CRUD/dashboard/DashboardList.tsx 77.89% <0.00%> (+1.05%) ⬆️
...erset-frontend/src/components/DatabaseSelector.tsx 91.30% <0.00%> (+1.08%) ⬆️
...erset-frontend/src/SqlLab/components/SqlEditor.jsx 53.65% <0.00%> (+1.21%) ⬆️
...rontend/src/SqlLab/components/AceEditorWrapper.tsx 60.75% <0.00%> (+1.26%) ⬆️
.../src/explore/components/ControlPanelsContainer.jsx 92.85% <0.00%> (+1.42%) ⬆️
...erset-frontend/src/dashboard/components/Header.jsx 66.16% <0.00%> (+1.50%) ⬆️
... and 56 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 f121107...57ca09c. Read the comment docs.

@betodealmeida
Copy link
Member

Merging #11836 (57ca09c) into master (f121107) will increase coverage by 1.03%.
The diff coverage is 100.00%.

❤️

@hughhhh hughhhh merged commit 0689738 into master Nov 30, 2020
@hughhhh hughhhh deleted the so-1117-api branch November 30, 2020 17:23
Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

Looks great, but I noticed a typo in the OpenAPI docstring

@@ -284,6 +289,11 @@ def put(self, pk: int) -> Response:
500:
$ref: '#/components/responses/500'
"""
override_columns = (
bool(strtobool(request.args["override_columns"]))
Copy link
Member

Choose a reason for hiding this comment

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

It makes me angry that strtobool returns an integer. 😠

- in: path
schema:
type: bool
name: override_column
Copy link
Member

Choose a reason for hiding this comment

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

override_columns

dataset = DatasetDAO.update(
model=self._model,
properties=self._properties,
commit=True,
Copy link
Member

Choose a reason for hiding this comment

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

This change threw me off because commit already defaults to True.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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/M 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants