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

chore: fix params with marshmallow schema for Datasets #23829

Closed
wants to merge 2 commits into from

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Apr 26, 2023

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

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

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #23829 (2eea50a) into master (40ae074) will decrease coverage by 11.24%.
The diff coverage is 80.00%.

❗ Current head 2eea50a differs from pull request most recent head cc23d5d. Consider uploading reports for the commit cc23d5d to get more accurate results

@@             Coverage Diff             @@
##           master   #23829       +/-   ##
===========================================
- Coverage   67.99%   56.76%   -11.24%     
===========================================
  Files        1937     1937               
  Lines       74934    74936        +2     
  Branches     8138     8138               
===========================================
- Hits        50954    42540     -8414     
- Misses      21895    30311     +8416     
  Partials     2085     2085               
Flag Coverage Δ
hive 53.01% <100.00%> (+<0.01%) ⬆️
mysql ?
postgres ?
presto 52.92% <100.00%> (+<0.01%) ⬆️
python 59.41% <100.00%> (-23.21%) ⬇️
unit 52.81% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...d/src/SqlLab/components/SaveDatasetModal/index.tsx 50.00% <0.00%> (ø)
superset-frontend/src/SqlLab/actions/sqlLab.js 66.33% <50.00%> (-0.17%) ⬇️
...frontend/src/explore/actions/datasourcesActions.ts 100.00% <100.00%> (ø)
superset/datasets/schemas.py 97.48% <100.00%> (ø)
superset/views/core.py 36.25% <100.00%> (-39.07%) ⬇️

... and 305 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -556,4 +556,4 @@ def test_import_parquet(mock_event_logger):

with test_db.get_sqla_engine_with_context() as engine:
data = engine.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}").fetchall()
assert data == [("max", 3), ("bob", 4), ("john", 1), ("paul", 2)]
assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]
assert sorted(data) == [('bob', 4), ('john', 1), ('max', 3), ('paul', 2)]

@@ -556,4 +556,4 @@ def test_import_parquet(mock_event_logger):

with test_db.get_sqla_engine_with_context() as engine:
data = engine.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}").fetchall()
assert data == [("max", 3), ("bob", 4), ("john", 1), ("paul", 2)]
assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]
Copy link
Member

Choose a reason for hiding this comment

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

@hughhhh you can revert this line as it's been addressed in #23856.

@hughhhh hughhhh closed this Aug 8, 2023
@mistercrunch mistercrunch deleted the fix-ds-schemas branch March 26, 2024 17:55
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.

3 participants