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 subclasses to override default service handlers #84

Merged
merged 8 commits into from
Sep 12, 2019

Conversation

Zsailer
Copy link
Member

@Zsailer Zsailer commented Sep 9, 2019

This addresses #80.

Previously, handlers were hardcoded into the server's web application. This PR allows subclasses to override what handlers are visible. This doesn't remove any services (i.e. the various managers in the server); rather, it allows subclasses to hide access to the services through their handlers.

@vidartf and @kevin-bates

Zsailer and others added 2 commits September 10, 2019 07:54
Co-Authored-By: Vidar Tonaas Fauske <vidartf@gmail.com>
Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

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

Thanks Zach. Just had a couple comments/suggestions.

jupyter_server/serverapp.py Outdated Show resolved Hide resolved
jupyter_server/serverapp.py Outdated Show resolved Hide resolved
jupyter_server/serverapp.py Outdated Show resolved Hide resolved
jupyter_server/serverapp.py Outdated Show resolved Hide resolved
Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

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

LGTM

@Zsailer
Copy link
Member Author

Zsailer commented Sep 11, 2019

Great. @vidartf, go ahead and merge this if you're happy with this PR as a solution to #80.

@vidartf
Copy link
Member

vidartf commented Sep 12, 2019

@vidartf, go ahead and merge this if you're happy with this PR

I don't have merge rights on this repo, so you can go ahead and do it after taking the small comment into account 😉

@Zsailer
Copy link
Member Author

Zsailer commented Sep 12, 2019

Ok, thanks @vidartf and @kevin-bates. Merging!

@Zsailer Zsailer merged commit f13dbda into master Sep 12, 2019
@Zsailer Zsailer deleted the configurable-handlers branch October 9, 2019 22:03
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