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

Fix workspace reset functionality. #7106

Merged
merged 2 commits into from Aug 28, 2019
Merged

Fix workspace reset functionality. #7106

merged 2 commits into from Aug 28, 2019

Conversation

afshin
Copy link
Member

@afshin afshin commented Aug 28, 2019

References

Fixes #7105

Code changes

Saves the state database to the server after a user reset.

User-facing changes

N/A

Backwards-incompatible changes

N/A

@afshin afshin added this to the 1.1 milestone Aug 28, 2019
@afshin afshin self-assigned this Aug 28, 2019
@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

@afshin afshin changed the title Fixes https://github.com/jupyterlab/jupyterlab/issues/7105 Fix workspace reset functionality. Aug 28, 2019
@vidartf
Copy link
Member

vidartf commented Aug 28, 2019

I tried it out on the PR binder, and while it fixes everything up to point 8 in the issue, the optional point 9 is still broken.

@vidartf
Copy link
Member

vidartf commented Aug 28, 2019

I.e. the automatic persistence of the workspace seems to be broken after a reset.

@afshin
Copy link
Member Author

afshin commented Aug 28, 2019

Hm. Back to the drawing board. Let's see.

@afshin
Copy link
Member Author

afshin commented Aug 28, 2019

Hm, this seems to work for me both on Binder and locally.

@jasongrout
Copy link
Contributor

Note: update changelog if this is merged: #7111

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@blink1073 blink1073 merged commit 7f39762 into jupyterlab:master Aug 28, 2019
const cleared = db
.clear()
.then(() => save.invoke())
.then(() => router.stop);
Copy link
Member

@vidartf vidartf Aug 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this save turned out to be redundant now, if you wanted to clean that up :)

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Sep 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. Tag:Workspaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workspaces does not persist after a reset.
4 participants