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(database): Creating helper make_url_safe to wrap potential errors #19526

Merged
merged 8 commits into from
Apr 5, 2022

Conversation

craig-rueda
Copy link
Member

SUMMARY

Quick PR to make DB URL parsing a bit easier to handle in the event of an error.

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.

LGTM

@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 5, 2022
@codecov
Copy link

codecov bot commented Apr 5, 2022

Codecov Report

Merging #19526 (fe0ba91) into master (5861bd3) will decrease coverage by 0.16%.
The diff coverage is 87.69%.

@@            Coverage Diff             @@
##           master   #19526      +/-   ##
==========================================
- Coverage   66.60%   66.43%   -0.17%     
==========================================
  Files        1678     1678              
  Lines       64246    64257      +11     
  Branches     6539     6539              
==========================================
- Hits        42788    42689      -99     
- Misses      19763    19873     +110     
  Partials     1695     1695              
Flag Coverage Δ
hive ?
mysql 81.90% <87.69%> (-0.01%) ⬇️
postgres 81.95% <87.69%> (-0.01%) ⬇️
presto ?
python 82.05% <87.69%> (-0.35%) ⬇️
sqlite 81.73% <87.69%> (+<0.01%) ⬆️
unit ?

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

Impacted Files Coverage Δ
superset/sql_parse.py 97.38% <ø> (ø)
superset/cli/importexport.py 80.00% <50.00%> (ø)
superset/databases/commands/validate.py 75.40% <50.00%> (ø)
superset/db_engine_specs/bigquery.py 84.84% <50.00%> (ø)
superset/db_engine_specs/snowflake.py 76.31% <66.66%> (+0.20%) ⬆️
superset/views/database/validators.py 57.89% <75.00%> (ø)
superset/models/core.py 88.83% <83.33%> (-0.22%) ⬇️
superset/databases/commands/test_connection.py 100.00% <100.00%> (ø)
superset/databases/schemas.py 98.51% <100.00%> (ø)
superset/databases/utils.py 80.95% <100.00%> (+2.00%) ⬆️
... and 16 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 5861bd3...fe0ba91. Read the comment docs.

Copy link
Member

@dpgaspar dpgaspar left a comment

Choose a reason for hiding this comment

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

Looks good, "just" one test and several pylint issues to fix (hang in there ;) )

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM

@craig-rueda craig-rueda merged commit f64d654 into apache:master Apr 5, 2022
@craig-rueda craig-rueda deleted the craig/safe-urls branch April 5, 2022 18:17
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Apr 5, 2022
…rs (apache#19526)

* Creating helper make_url_safe to wrap potential errors

* Fixing imports

* Fixing imports again

* Adding comment

* Linting

* Fixing test

* Fixing test again...

* Fixing import

(cherry picked from commit f64d654)
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Apr 7, 2022
…rs (apache#19526)

* Creating helper make_url_safe to wrap potential errors

* Fixing imports

* Fixing imports again

* Adding comment

* Linting

* Fixing test

* Fixing test again...

* Fixing import

(cherry picked from commit f64d654)
@sadpandajoe
Copy link
Member

🏷️ preset:2022.11

philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
…rs (apache#19526)

* Creating helper make_url_safe to wrap potential errors

* Fixing imports

* Fixing imports again

* Adding comment

* Linting

* Fixing test

* Fixing test again...

* Fixing import
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 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 preset:2022.11 preset-io size/L 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants