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

SQLLab - Saving a query with the same label results in a new query being created #5804

Closed
3 tasks done
paulvic opened this issue Sep 4, 2018 · 4 comments
Closed
3 tasks done
Labels
inactive Inactive for >= 30 days

Comments

@paulvic
Copy link
Contributor

paulvic commented Sep 4, 2018

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if 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

Superset version

0.25.6

Expected results

When you open a saved query in SQLLab and then save it with the same label, the existing query is updated.

Actual results

When you open a saved query in SQLLab and then save it with the same label, a new query is created.

Steps to reproduce

  1. Open SQLLab, write a query
  2. Save the query with the label "test1"
  3. Modify the query and save with the same label "test1"
  4. Open saved queries

Results:
There are two queries test1 saved queries listed.

@paulvic paulvic changed the title Save query SQLLab - Saving a query with the same label results in a new query being created Sep 4, 2018
@fabiomendescom
Copy link

I am taking this one. More complex than it is seems. No provision for REST update call in the component, React components not receiving the id (and additionally the description). This causes the create to always occur which explains the dup. On it.

@fabiomendescom
Copy link

I have fixed this bug and added all appropriate tests. However, it is necessary to change superset ui connection. See this link for more info -> apache-superset/superset-ui#104. I have submitted this ticket and a PR with the fix. Will need to wait for this fix to be applied there in order to send a PR for this one. As soon as applied there, I will send a PR for this fix.

@fabiomendescom
Copy link

pull request apache-superset/superset-ui#105 created in superset ui as a dependency to this problem

fabiomendescom pushed a commit to fabiomendescom/incubator-superset that referenced this issue Feb 19, 2019
fabiomendescom pushed a commit to fabiomendescom/incubator-superset that referenced this issue Mar 9, 2019
fabiomendescom pushed a commit to fabiomendescom/incubator-superset that referenced this issue Mar 10, 2019
@stale
Copy link

stale bot commented Apr 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 18, 2019
@stale stale bot closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

2 participants