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

Allow db_path to be set to ":memory:" #70

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

cmd-ntrf
Copy link
Contributor

Fix issue #69

@welcome
Copy link

welcome bot commented Sep 14, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e668814) 85.49% compared to head (7d48519) 85.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   85.49%   85.84%   +0.34%     
==========================================
  Files           5        5              
  Lines         531      530       -1     
  Branches       68       67       -1     
==========================================
+ Hits          454      455       +1     
+ Misses         55       54       -1     
+ Partials       22       21       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Zsailer
Copy link
Member

Zsailer commented Dec 7, 2023

This is great, thank you @cmd-ntrf. Ideally, we have a unit test to cover this config option to make sure we don't accidentally remove it in the future.

Would you like to create such a unit test? Otherwise, I can take over this PR, write such a test, and merge.

@cmd-ntrf
Copy link
Contributor Author

cmd-ntrf commented Dec 8, 2023

I have added a unit test. Let me know if there is anything else I can do.

Copy link
Collaborator

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

@cmd-ntrf Thank you for this contribution! So sorry I let this one escape my review. In the future, please feel free to ping me directly for feedback.

I left a few suggestions for you below. The CI failure is actually coming from our linter system called pre-commit. After you address the feedback I've left below, you should run (in your dev environment):

pip install pre-commit
pre-commit run --all-files
git commit -am "pre-commit"
git push ...

jupyter_server_fileid/manager.py Outdated Show resolved Hide resolved
tests/test_manager.py Outdated Show resolved Hide resolved
@dlqqq
Copy link
Collaborator

dlqqq commented Dec 8, 2023

Oh, forgot to mention: there actually is another CI failure not coming from pre-commit. I fixed this in #73, which I just merged. You'll want to rebase on main to include this so your CI passes:

git checkout main
git pull
# get back to this dev branch
git checkout -
git rebase main

# if the above command produced any errors, do not run the below command
git push -f

@cmd-ntrf
Copy link
Contributor Author

cmd-ntrf commented Dec 8, 2023

I have rebased on main, applied the proposed changes and squashed into a single commit.

@Zsailer
Copy link
Member

Zsailer commented Dec 8, 2023

Thanks @cmd-ntrf!

@cmd-ntrf cmd-ntrf requested a review from dlqqq December 8, 2023 18:13
@Zsailer Zsailer merged commit ffd3148 into jupyter-server:main Dec 12, 2023
22 checks passed
Copy link

welcome bot commented Dec 12, 2023

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@cmd-ntrf cmd-ntrf deleted the db_path_fix branch December 12, 2023 21:06
@cmd-ntrf cmd-ntrf restored the db_path_fix branch December 12, 2023 21:06
@cmd-ntrf cmd-ntrf deleted the db_path_fix branch December 12, 2023 21:06
@Zsailer
Copy link
Member

Zsailer commented Dec 19, 2023

@dlqqq
Copy link
Collaborator

dlqqq commented Dec 19, 2023

@Zsailer Thanks for merging & releasing this PR while I was away for vacation! 🎉

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.

None yet

3 participants