-
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
Issue29/update on rename #49
base: main
Are you sure you want to change the base?
Issue29/update on rename #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. that's an interesting idea, but while it keeps the gallery working within the current jupyter-server lifetime it will not work after restart?
That's my understanding. If the server is restarted I don't believe the state is saved. |
In that case, should we just allow user to download it again rather than to navigate to renamed folder? |
Yeah that sounds good for me. In that case, I will try to figure out a test for this mark this ready for review |
I added a test for this that is passing. The failing integration tests that are failing are addressed in #48 |
Reference Issues or PRs
Closes #29
What does this implement/fix?
Put a
x
in the boxes that applyAdds functionality to rename gallery directories and their parent directories.
gallery-rename-example-small.mp4
Testing
Documentation
Access-centered content checklist
Text styling
H1
or#
in markdown).Non-text content
Any other comments?
This works really well within a session, but the changes aren't reflected between sessions which I think is probably important. I'm unsure what the best way to keep between session state is. One idea would be to make the
destination
attribute ofGallery Manager
a setting. This would be able to save state across sessions for the top level destination folder, but to keep each exhibits destination attribute added in this branch could easily lead to bad UX. Another idea would be to do a recursive search through the filesystem for the repo name if the repo doesn't exist in the expected location on load and assume that any exact matches are in fact the repo. This would work in most cases, but has the potential to slow down startup considerably and false positive matches could also be poor UX.@krassowski, do you have any thoughts on this?