-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BUG] - Refresh required after delete/move/rename folder via terminal #46
Comments
Which folder? The one with |
I deleted |
Its not clear from the plugin, what's going where. Based on the error message when I clicked on the folder icon - I'd say |
Can you delete |
That worked. I deleted Also, I deleted The reload was key. |
Normally it should refresh the status on delete: jupyterlab-gallery/src/gallery.tsx Lines 70 to 75 in 9de8f2c
unless you renamed the folder (#29) or deleted/renamed/moved it from terminal, in which case it would update the status once the folder listing is refreshed (I think every 10 seconds?) |
I deleted from the terminal. Deleting through the JLab UI would have required the painful process of deleting all the contents of the folder, plus viewing hidden files and deleting those as well. So we have no way to catch deleted/renamed/moved from terminal without building a more complicated watcher? |
There is pretty advanced file watcher logic in jupyter-server (https://github.com/jupyter-server/jupyter_server_fileid), but deleting from terminal circumvents it. Two solutions:
|
I think you'll always have some people who operate from the terminal and find themselves in this situation. Another solution would be an info bubble on the gallery card with a popup modal that warned me a refresh was required if the folder is deleted. |
If we already knew that we need to show the bubble, we could have refreshed the model in the background, eliminating the need for showing the bubble, right? |
Absolutely! Maybe the solution is along what you proposed, but instead triggering a forced model update on mouse hover if it has not been updated in last 3 seconds or so. This might be cheaper than having an always running file watcher. |
I was not thinking about a dynamic bubble. I was thinking of a static info bubble on all gallery cards at all times - what is this tile, what does it do, and also, note that if you delete the folder, you'll have to refresh the page. |
There is an issue on |
Feature description
I deleted the folder where my gallery was supposed to be downloaded to. Now the UI won't let me fetch the latest changes. I think it thinks that I still have the latest? I added the folder back and I still can't fetch.
Value and/or benefit
Users should be able to recover from deleting the gallery folder.
Anything else?
No response
The text was updated successfully, but these errors were encountered: