Repository navigation
Feat/image builder api - #614
Conversation
| $ref: "#/components/schemas/ContainerImage" | ||
| builder_id: | ||
| $ref: "#/components/schemas/ULID" |
There was a problem hiding this comment.
do we want a separate endpoint for creating builders and then have image and builder_id as properties here, or should they just be POST on this endpoint with a oneOf: body?
There was a problem hiding this comment.
This was one of the main questions. I am open to both. Waiting for input.
There was a problem hiding this comment.
The indirection adds complexity for clients. I do not think that we have an expectation of the relation going from {0,1}:1 to 1:N at any time. A "builder" belongs to a single session launcher.
There was a problem hiding this comment.
Does it ? I'm currently unsure about all the implications. Let's discuss this in a technical meeting.
There was a problem hiding this comment.
I removed these endpoints. Now, BuildParameter is part of session launcher API.
leafty
left a comment
There was a problem hiding this comment.
Some comments about the API spec:
| $ref: "#/components/schemas/ContainerImage" | ||
| builder_id: | ||
| $ref: "#/components/schemas/ULID" |
There was a problem hiding this comment.
The indirection adds complexity for clients. I do not think that we have an expectation of the relation going from {0,1}:1 to 1:N at any time. A "builder" belongs to a single session launcher.
35bcb23 to
36280a0
Compare
|
@m-alisafaee Can you fix the commit list? This PR is against |
36280a0 to
127e5f0
Compare
leafty
left a comment
There was a problem hiding this comment.
The type union on EnvironmentPostInLauncher is nice 👍
I think the same should be done to Environment and EnvironmentPatchInLauncher because non-sensical values would be allowed.
b982af2 to
05a69b1
Compare
bf24f13 to
622accd
Compare
82da3d3 to
c8fc993
Compare
leafty
left a comment
There was a problem hiding this comment.
Small comment about the parameters 👇
olevski
left a comment
There was a problem hiding this comment.
A few minor comments and questions.
| ) | ||
|
|
||
|
|
||
| def validate_build_parameters_patch(environment: apispec.BuildParametersPatch) -> models.BuildParametersPatch: |
There was a problem hiding this comment.
suggestion(non-blocking): We do zero validation of the repository url. We can skip this in the interest of time but we should add something later on. Ideally it would be nice if we can validate if the repo exists. But if we dont go that far then it would be nice to validate if the shape of it is sensible.
There was a problem hiding this comment.
At the moment, the UI validates the choices (needs to be a repository which responds to the probe API). We can at least validate that the repository is listed in the project in the backend here.
leafty
left a comment
There was a problem hiding this comment.
[can be solved later] Sending a PATCH request to modify the description of the session launcher resets the session environment fields which is not desirable (the session cannot be launched).
Implementation for the new custom environments with build parameters.
TODO: