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

Implement Required Methods in Async Manner #721

Merged

Conversation

jhamet93
Copy link
Contributor

The AsyncFileContentsManager was missing async definitions of the a few required methods. Therefore because of the multiple inheritance, the FileContentsManager definitions were being used resulting in an unpleasant developer experience when implementing a proxy Contents Manager responsible for delegating to an AsyncContentsManager (for our remote storage system at Twitter) or an AsyncLargeFileManager. This feels like undesired behavior to have a few CM methods need to be execute in a synchronous style and some in an async style using await requiring additional boilerplate type checking in my case.

@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2022

Codecov Report

Merging #721 (ec9fd35) into main (55d9f68) will increase coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #721      +/-   ##
==========================================
+ Coverage   70.92%   70.94%   +0.02%     
==========================================
  Files          62       62              
  Lines        7490     7514      +24     
  Branches     1187     1190       +3     
==========================================
+ Hits         5312     5331      +19     
- Misses       1821     1826       +5     
  Partials      357      357              
Impacted Files Coverage Δ
jupyter_server/services/contents/filemanager.py 70.72% <75.00%> (+0.10%) ⬆️
jupyter_server/serverapp.py 65.38% <0.00%> (-0.13%) ⬇️
jupyter_server/services/kernels/handlers.py 58.94% <0.00%> (+0.18%) ⬆️
jupyter_server/extension/application.py 74.66% <0.00%> (+0.34%) ⬆️
...pyter_server/services/contents/largefilemanager.py 83.83% <0.00%> (+1.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55d9f68...ec9fd35. Read the comment docs.

@blink1073 blink1073 added the bug label Mar 13, 2022
Copy link
Collaborator

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

Thank you!

@blink1073 blink1073 merged commit 140d52e into jupyter-server:main Mar 13, 2022
@welcome
Copy link

welcome bot commented Mar 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants