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
Auto saved query no longer loading #15997
Auto saved query no longer loading #15997
Comments
|
Confirmed, I tested on 4.9 and it worked fine. |
|
Introduced by 9c7c5ca in #14166 @Piyush3079 do you know if you did introduce a regression by trying to fix #14093 ? |
|
@MauricioFauth could I have your advice on this one ? |
|
Just tried this on version 5.0.2 and still not working. Not sure when it got broken, but it was working a few months ago. |
|
It was broken since 5.0.0 alpha 1 |
|
I've had a read over the commits and it's this change here: Which was clearly intended, but I'm not yet clear on why it was needed as seems to be the breaker of this function. I've commented out that code in a local version and can restore the previous query when switching been tabs/functions within the same table. Which is very handy, saves me most time and covers most my use case. I'll continue testing it. I think there is somewhere else clearing it if I switch to another table, will look for it. Let me know if I can help in any other way |
If you find the other piece of code that clears the storage I would be interested to know where to find it @ibennetch could you give your point of view on this issue ? |
|
Yep it appears to be here Line 269 in b2d1615
On navigate away asks for confirmation and clears it |
|
@williamdes from what I remember, it might be a regression. There were a lot of bugs fixed in #14166 , the intention for removing the saved query was that page change should not show query from another page as mentioned here: https://github.com/phpmyadmin/phpmyadmin/pull/14094/files |
|
Should I go ahead and fix this? |
|
Please fix this! I used the Auto-save function extensively as it improves productivity. |
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
This will be fixed in 5.1.0 ! 🚀 |
|
Just installed 5.1.0 Queries are still not auto-saved! |
I often use the query saving feature, it works |
This used to work fine in earlier versions (not sure exactly which) |
Could you find what version this was ?
If you do not run the query and for example click on another database the save feature will work |

Describe the bug
The get auto-saved query button always shows the message
"No previously auto-saved query is available. Loading default query."
Rather than loading a previous query
To Reproduce
Steps to reproduce the behavior:
Expected behavior
On pressing Get auto-saved query it should load the previous query that was created and ran
Screenshots
Initial Error

I can see the SQL being written into localStorage as I type


But on submitting a query I can see this value is removed in /js/vendor/sql.js

Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: