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

file editor should warn if file changes on disk #2726

Closed
cancan101 opened this issue Aug 4, 2017 · 7 comments · Fixed by #2783
Closed

file editor should warn if file changes on disk #2726

cancan101 opened this issue Aug 4, 2017 · 7 comments · Fixed by #2783

Comments

@cancan101
Copy link
Contributor

I have a file editor open for a certain file. That file changes on disk. There should be a warning of some sort in the web editor that this has happened to prevent saving over the modified data.

@minrk
Copy link
Member

minrk commented Aug 7, 2017

We already have exactly this check for notebooks, so doing the same for edit should be doable.

@minrk minrk added this to the 5.2 milestone Aug 7, 2017
@unnamedplay-r
Copy link
Contributor

Hi @minrk, I'd like to take on this issue. I'm a first time contributor here, so any pointers to relevant architecture for this issue would be great!

@minrk
Copy link
Member

minrk commented Aug 14, 2017

Hi @unnamedplay-r! The first step would be to look at how the notebook implements the check_last_modified logic. Then the task would be to copy the relevant bits of that (or refactor it a bit to make it re-usable) to where edit implements save.

@unnamedplay-r
Copy link
Contributor

Thanks for the help here @minrk. I'll give it a whirl this weekend. Should pull requests be submitted as WIP's, or submit upon completion? I can't seem to find any documentation on pull requests.

@takluyver
Copy link
Member

takluyver commented Aug 15, 2017 via email

@jonalloub
Copy link

Hi, I'm @jonalloub, and I am new to contributions on open source software. I see that someone is already taking a stab at this problem, but since it is still open, can I take a stab at it as well?

@takluyver
Copy link
Member

Hi @jonalloub! There's already an open PR for this (#2783), and it looks like it's still active, so it may be best to find another issue. We should try to help get that PR complete, though.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants