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

Dataset creating issues in SQL Lab #21271

Closed
3 tasks
EugeneTorap opened this issue Aug 31, 2022 · 7 comments · Fixed by #21529
Closed
3 tasks

Dataset creating issues in SQL Lab #21271

EugeneTorap opened this issue Aug 31, 2022 · 7 comments · Fixed by #21529
Labels
#bug Bug report

Comments

@EugeneTorap
Copy link
Contributor

EugeneTorap commented Aug 31, 2022

I found 2 interesting bugs when we want to create a dataset in SQL Lab:

  1. When we create a dataset and provide some name and then want to do it again with the same name. In second dataset creation we got Untitled Query 7 08/31/2022 17:58:02 name but input has qwe1 name
  2. [FIXED] When we reload page and create a duplicate name of dataset for example name=qwe1 then modal window is disappeared and don't handle error from server.

Expected results

We handle server error response and show "Dataset [qwe1] already exists" on UI side to user.

Actual results

Server error response is not handled.

Screenshots

Screen.Recording.2022-08-31.at.17.57.51.mov
Screen.Recording.2022-08-31.at.18.06.39.mov

Environment

(please complete the following information):

  • browser type and version:
  • superset version: superset version
  • python version: python --version
  • node.js version: node -v
  • any feature flags active:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.
@michael-s-molina @kgabryje @villebro @lyndsiWilliams

@EugeneTorap EugeneTorap added the #bug Bug report label Aug 31, 2022
@EugeneTorap EugeneTorap changed the title Dataset creation issue in SQL Lab Dataset creating issues in SQL Lab Aug 31, 2022
@kgabryje
Copy link
Member

@yousoph Should this get prioritized?

@EugeneTorap
Copy link
Contributor Author

@diegomedina248 Can you take a look at these issues?

@yousoph
Copy link
Member

yousoph commented Aug 31, 2022

I believe #21244 fixes the second issue mentioned

@yousoph
Copy link
Member

yousoph commented Aug 31, 2022

For the first issue - looks like it happens if you use the same tab to try to save the dataset. If you refresh the SQL Lab tab, the error message appears properly. I think the modal shouldn't keep the previous name when it's closed and reopened - I think that might fix the problem? Would you be up to opening a PR for a fix @EugeneTorap ? (Thanks for the find, btw!)

@EugeneTorap
Copy link
Contributor Author

I believe #21244 fixes the second issue mentioned

Yes, I check it out the second issue. It's fixed after this merged PR

@EugeneTorap
Copy link
Contributor Author

@AAfghahi Can you take a look at first issue?

@AAfghahi
Copy link
Member

AAfghahi commented Sep 1, 2022

@EugeneTorap sure i can look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants