-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: update and expand apispec for environments #300
Conversation
Thanks, @olevski , for putting this together. I have a few observations:
|
This returns all environments you can filter for the global environments by
That endpoint should be used to add all environments. But since those things are not required you can leave them undefined and the defaults will be used. Or we implement this but we disable adding global environments. I am not sure why this is out of the scope here? The scope is to enable to specify all these properties on environments. And to me this means all environments, regardless of whether they are global or not.
Yes just display it. |
For the global environments you can even fully ignore these additional fields. Ignore them when you create them and also ignore them when you list them. At least for the implementation in this pitch. |
@olevski the idea here is that orthogonal changes in the same PR is not best practice. Changes not required to power non-jupyter images should be slated for another PR. Also, to avoid changing things multiple times, we should wait until namespaced environments are shaped to include ownership because that notion will not exist until then. |
@leafty when I wrote this it was compatible with the vision for sharing. But then that changed yesterday by the end of the day so now it is not.
But these changes are specifically meant for non-jupyter images. Both the spec for the global environments and the spec for the custom environments have to change to accomodate non-jupyter images. And the implementation of this on the backend is really strange so I really do not want to keep adding things in the current organization of the backend. I suppose these are the orthogonal changes you are referring to? The problem is that the backend has one way for storing the global environments and a completely different one for storing the custom ones in a session launcher. But they should be uniform. I will change this further to be more in line with what we discussed about sharing yesterday. And I will try to hide some of the sharing related concepts from the API. |
00ef3ba
to
86b8962
Compare
Ok so these are the changes I made:
So this pretty much fully sidesteps the issue of sharing. |
Superseded by #338 |
Still WIP.