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

✨ NEW: make savedSession behavior configurable #280

Merged
merged 2 commits into from
Oct 31, 2020

Conversation

minrk
Copy link
Collaborator

@minrk minrk commented Oct 19, 2020

adds binderOptions.savedSession configuration to give users a little control over #266

  • toggle behavior off entirely with savedSession.enabled
  • set max age in seconds with savedSession.maxAge
  • specify storage prefix with savedSession.storagePrefix

and reorganize the code a little bit to make the flow a little easier to manage with all the different stages to abort, including JSON parse errors, etc.

@moorepants
Copy link
Collaborator

@rkevin-arch Could you review this?

README.md Outdated Show resolved Hide resolved
@rkevin-arch
Copy link
Contributor

The code looks great, gonna test it locally in a bit

src/thebelab.js Outdated Show resolved Hide resolved
src/thebelab.js Outdated Show resolved Hide resolved
@rkevin-arch
Copy link
Contributor

Other than these, it looks pretty good to me

- fix units for age comparison (milliseconds->seconds)
- consistent lastUsed naming
@minrk
Copy link
Collaborator Author

minrk commented Oct 27, 2020

@rkevin-arch thanks for your review! I think it's all set now.

@choldgraf
Copy link
Collaborator

This looks great to me - thanks @rkevin-arch for the review. I'm +1 on this once you are.

@choldgraf
Copy link
Collaborator

OK given that review comments are addressed and tests are happy, I'm just gonna merge this one and we can iterate in another PR if there are follow-ups needed!

@choldgraf choldgraf merged commit 4596e82 into jupyter-book:master Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants