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

fix: Remove default values for engine and schemas #15635

Merged
merged 4 commits into from Jul 12, 2021
Merged

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Jul 12, 2021

SUMMARY

Remove putting a default JSON object whenever engine_params or metadata_params is set. Also removed the allow_schemas_csv_upload quotation marks on that field

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2021-07-12 at 10 44 13 AM

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@betodealmeida
Copy link
Member

@hughhhh did you test adding/editing a DB with this change?

@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #15635 (1b4fa66) into master (5d86ffe) will increase coverage by 0.11%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15635      +/-   ##
==========================================
+ Coverage   76.86%   76.98%   +0.11%     
==========================================
  Files         977      979       +2     
  Lines       51343    51835     +492     
  Branches     6920     7064     +144     
==========================================
+ Hits        39466    39906     +440     
- Misses      11654    11702      +48     
- Partials      223      227       +4     
Flag Coverage Δ
hive 81.30% <ø> (ø)
javascript 71.57% <66.66%> (+0.18%) ⬆️
mysql 81.56% <ø> (ø)
postgres 81.58% <ø> (ø)
presto 81.29% <ø> (?)
python 82.11% <ø> (+0.15%) ⬆️
sqlite 81.19% <ø> (ø)

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

Impacted Files Coverage Δ
...c/views/CRUD/data/database/DatabaseModal/index.tsx 47.41% <0.00%> (ø)
.../CRUD/data/database/DatabaseModal/ExtraOptions.tsx 92.85% <100.00%> (ø)
...t-frontend/src/views/CRUD/welcome/SavedQueries.tsx 56.64% <0.00%> (-3.97%) ⬇️
...c/visualizations/TimeTable/TimeTableChartPlugin.js 71.42% <0.00%> (-3.58%) ⬇️
...set-frontend/src/components/ListViewCard/index.tsx 100.00% <0.00%> (ø)
...ponents/controls/VizTypeControl/VizTypeGallery.tsx 93.57% <0.00%> (ø)
...plore/components/controls/VizTypeControl/index.tsx 86.04% <0.00%> (ø)
superset/models/core.py 90.05% <0.00%> (+0.26%) ⬆️
...-frontend/src/views/CRUD/welcome/ActivityTable.tsx 79.08% <0.00%> (+0.65%) ⬆️
superset/connectors/sqla/models.py 89.90% <0.00%> (+1.40%) ⬆️
... and 9 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 5d86ffe...1b4fa66. Read the comment docs.

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.

+1

@hughhhh hughhhh changed the title fix: Remove default values for enginv fix: Remove default values for engine and schemas Jul 12, 2021
@hughhhh hughhhh merged commit 2252f33 into master Jul 12, 2021
@rosemarie-chiu
Copy link
Contributor

🏷 2021.27

henryyeh pushed a commit to preset-io/superset that referenced this pull request Jul 13, 2021
* remove default values

* don't set initial value on save

* set defaults for engine_params

* update with JSON.parse

(cherry picked from commit 2252f33)
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* remove default values

* don't set initial value on save

* set defaults for engine_params

* update with JSON.parse
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* remove default values

* don't set initial value on save

* set defaults for engine_params

* update with JSON.parse
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* remove default values

* don't set initial value on save

* set defaults for engine_params

* update with JSON.parse
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
@mistercrunch mistercrunch deleted the hugh/fix-schemas branch March 26, 2024 16:25
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 preset:2021.27 size/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants