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: Fixing schemas_allowed_for_upload field in database connection UX #15750

Merged
merged 7 commits into from
Jul 19, 2021

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Jul 16, 2021

SUMMARY

Fixing schemas_allowed_for_upload field in database connection UX by remove an additional JSON stringify before rendering value inside the view.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2021-07-16.at.5.47.58.PM.mov

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

@codecov
Copy link

codecov bot commented Jul 16, 2021

Codecov Report

Merging #15750 (a87ad25) into master (e9383e6) will decrease coverage by 0.25%.
The diff coverage is 50.00%.

❗ Current head a87ad25 differs from pull request most recent head 121e7c2. Consider uploading reports for the commit 121e7c2 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15750      +/-   ##
==========================================
- Coverage   76.92%   76.67%   -0.26%     
==========================================
  Files         983      983              
  Lines       51609    51612       +3     
  Branches     6988     6988              
==========================================
- Hits        39698    39571     -127     
- Misses      11688    11818     +130     
  Partials      223      223              
Flag Coverage Δ
hive ?
javascript 71.36% <0.00%> (ø)
mysql 81.54% <66.66%> (-0.01%) ⬇️
postgres 81.56% <66.66%> (-0.01%) ⬇️
presto ?
python 81.61% <66.66%> (-0.49%) ⬇️
sqlite ?

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.57% <0.00%> (ø)
superset/models/core.py 89.61% <66.66%> (-0.45%) ⬇️
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 69.44% <0.00%> (-17.07%) ⬇️
superset/db_engine_specs/presto.py 83.36% <0.00%> (-6.95%) ⬇️
superset/db_engine_specs/sqlite.py 91.89% <0.00%> (-5.41%) ⬇️
superset/utils/celery.py 86.20% <0.00%> (-3.45%) ⬇️
superset/connectors/sqla/models.py 88.02% <0.00%> (-1.88%) ⬇️
superset/views/database/mixins.py 81.03% <0.00%> (-1.73%) ⬇️
superset/result_set.py 96.77% <0.00%> (-1.62%) ⬇️
... and 4 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 e9383e6...121e7c2. Read the comment docs.

@@ -393,6 +391,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
return;
}

console.log(db);
Copy link
Member

Choose a reason for hiding this comment

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

console log

schemas_allowed_for_csv_upload: JSON.stringify(
extra_json?.schemas_allowed_for_csv_upload,
),
schemas_allowed_for_csv_upload: extra_json?.schemas_allowed_for_csv_upload
Copy link
Member

Choose a reason for hiding this comment

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

is this b/c this is rendered as a text field and the others an ace editor?

@hughhhh hughhhh merged commit 7d0f6ab into master Jul 19, 2021
@rosemarie-chiu
Copy link
Contributor

🏷 2021.27

henryyeh pushed a commit to preset-io/superset that referenced this pull request Jul 19, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@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 fix-csv-upload-array branch March 26, 2024 16:12
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 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants