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

Backport PR #1162: Reapply preferred_dir fix, now with better backwards compatability #1167

Merged
merged 6 commits into from
Jan 6, 2023

Conversation

vidartf
Copy link
Member

@vidartf vidartf commented Jan 6, 2023

Manual backport of #1162.

Comment on lines 72 to 77
import inspect

if inspect.isawaitable(self.dir_exists):
dir_exists = run_sync(self.dir_exists)(value)
else:
dir_exists = self.dir_exists(value)
Copy link
Member Author

Choose a reason for hiding this comment

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

This conditional probably needs to be forward-ported again.

@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Base: 71.42% // Head: 71.39% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (ba48c15) compared to base (8de93c8).
Patch coverage: 83.60% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1167      +/-   ##
==========================================
- Coverage   71.42%   71.39%   -0.03%     
==========================================
  Files          62       62              
  Lines        7765     7806      +41     
  Branches     1537     1543       +6     
==========================================
+ Hits         5546     5573      +27     
- Misses       1831     1841      +10     
- Partials      388      392       +4     
Impacted Files Coverage Δ
jupyter_server/services/contents/fileio.py 73.95% <0.00%> (-0.78%) ⬇️
jupyter_server/services/contents/manager.py 82.44% <77.27%> (-0.28%) ⬇️
jupyter_server/services/contents/filemanager.py 74.00% <91.30%> (+0.78%) ⬆️
jupyter_server/gateway/managers.py 81.60% <92.30%> (+0.33%) ⬆️
jupyter_server/serverapp.py 64.73% <100.00%> (-0.61%) ⬇️
jupyter_server/services/kernels/handlers.py 58.05% <0.00%> (-1.04%) ⬇️
jupyter_server/utils.py 63.86% <0.00%> (+0.49%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@blink1073 blink1073 added the bug label Jan 6, 2023
@blink1073 blink1073 enabled auto-merge (squash) January 6, 2023 16:03
Copy link
Contributor

@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.

Thanks!

blink1073 and others added 2 commits January 6, 2023 10:28
Co-authored-by: Vidar Tonaas Fauske <vidartf@gmail.com>
@blink1073 blink1073 merged commit 2ca8008 into jupyter-server:1.x Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants