-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix User demo application assignment #569
Conversation
Codecov Report
@@ Coverage Diff @@
## master #569 +/- ##
==========================================
+ Coverage 95.16% 95.35% +0.18%
==========================================
Files 92 92
Lines 4222 4305 +83
Branches 271 277 +6
==========================================
+ Hits 4018 4105 +87
+ Misses 144 140 -4
Partials 60 60
Continue to review full report at Codecov.
|
…fig class, rather than User and BaseApplication classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, thanks for the changes!
remoteappmanager/base_application.py
Outdated
if application.image in user.demo_applications: | ||
self.log.info(application.image) | ||
if application.image in self.file_config.demo_applications: | ||
self.log.debug(f"Avaliable image: {application.image}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small typo here.
Small fixes and enhancements required to allow a set of demo applications provided to all new users to be declared in the
jupyterhub/remoteappmanager_config.py
.This is achieved by introducing two features:
FileConfig.demo_applications
can be configured with a list of image names that are already registered with the applicationFileConfig.auto_user_creation
can be configured to allow automatic registration of any authenticated user. If set toTrue
, as long as the user can login via the declaredc.JupyterHub.authenticator_class
, then an account will be automatically created in the Simphony-Remote database. Otherwise an admin user will have to manually perform the taskExamples of how these may be assigned are given in
jupyterhub/remoteappmanager_config.py