-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Autosave (draft) in text editor #1315
Comments
How would it do that? new branch? hanging commits? what is a user makes a change, doesn't commit, then goes back to make a change? should it bring up the saved commit? what if we're not in the same branch anymore? or have merge-conflicts? (I'm trying to say that this isn't an easy thing to fix correctly of user-friendly) |
I think maybe the autosave is in the web browser side. Store the draft in |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
@pgaskin can you check if this is still an issue? |
It is basically implemented by now: |
Thanks for the update re: Firefox! It might make sense to split these into different cases though. For instance, creating a new comment, editing a comment, leaving PR review, and creating a release might require different behaviors. Having a solution just for new comments and new design review feedback would be quite helpful. I'm also not sure this needs to be server-side. As lunny mentioned a while back local storage could be a relatively simple solution here. |
The problem with that is, that as far as I am aware, the local storage is already used simply because of the way it works. If you persist it on the server side, the memory leak problem only shifts to the server, who now has to store text possibly forever, without a cleanup option. The only exception to this would be if you say that you delete any saved text equally i.e. a week after it has been created, by running a weekly cleanup during low workloads. |
This should be fixed by #23895 |
Wait for other steps in: |
It would be useful if the web based text editor automatically saved the contents of the file until it is out of date or is commited or canceled. This feature would protect users from accidental refreshes or browser crashes,
The text was updated successfully, but these errors were encountered: