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(data-upload): make to change err message #19430

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

prosdev0107
Copy link
Contributor

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE:
image

AFTER:
image

TESTING INSTRUCTIONS

How to reproduce this issue

Precondition: do not enable data upload for database
1, go to columnar file upload
2, observe the error msg in the columnar file upload page

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 Mar 30, 2022

Codecov Report

Merging #19430 (3d258ba) into master (a8e7624) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master   #19430   +/-   ##
=======================================
  Coverage   66.59%   66.59%           
=======================================
  Files        1670     1670           
  Lines       63884    63884           
  Branches     6510     6510           
=======================================
  Hits        42542    42542           
  Misses      19653    19653           
  Partials     1689     1689           
Flag Coverage Δ
hive 52.90% <0.00%> (ø)
mysql 81.89% <0.00%> (ø)
postgres 81.94% <0.00%> (ø)
presto 52.75% <0.00%> (ø)
python 82.38% <0.00%> (ø)
sqlite 81.71% <0.00%> (ø)

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

Impacted Files Coverage Δ
superset/views/core.py 76.99% <0.00%> (ø)

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 a8e7624...3d258ba. Read the comment docs.

@@ -2810,7 +2810,7 @@ def schemas_access_for_file_upload(self) -> FlaskResponse:
get the schema access control settings for file upload in this database
"""
if not request.args.get("db_id"):
return json_error_response("No database is allowed for your csv upload")
return json_error_response("No database is allowed for your file upload")
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this is not being used when uploading a CSV as well?
@rusackas do you know if this API is being called from multiple places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@diegomedina248

This API is used when the csv && excel && columar file is uploaded.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, and to me this is fine, but since the message now is more generic, I just want to be sure there's no problem with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, cool.

Copy link
Member

Choose a reason for hiding this comment

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

I think this is fine. Approving the PR, but I'll let @yousoph merge it if she agrees, or leave a comment if she doesn't ;)

@yousoph yousoph merged commit 5fc0651 into apache:master Apr 13, 2022
philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
@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-Patch size/XS 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants