Repository navigation
Fix hacks in project commands and sync - #5353
Merged
Merged
Conversation
helderco
force-pushed
the
projects/python/codegen-fix
branch
from
June 22, 2023 15:58
eae5b0d to
26ba5d3
Compare
Signed-off-by: Helder Correia <[email protected]>
helderco
force-pushed
the
projects/python/codegen-fix
branch
from
June 22, 2023 19:37
26ba5d3 to
2f28172
Compare
helderco
marked this pull request as ready for review
June 22, 2023 19:37
sipsma
approved these changes
Jun 22, 2023
sipsma
left a comment
Contributor
There was a problem hiding this comment.
One non-blocking comment/question, looks great!
| def _from_context(cls, ctx: Context): | ||
| return cls(replace(ctx, selections=deque())) | ||
|
|
||
| def _get_object_instance(self, id_: str | Scalar, cls: type[_Type]) -> _Type: |
Contributor
There was a problem hiding this comment.
Awesome, I'll have to add this in Go too 👍
| # id type as the Query field argument. | ||
| # | ||
| # Example: | ||
| # `Query.directory(id: DirectoryID): Directory` matches |
Contributor
There was a problem hiding this comment.
I'm not sure if I'm 100% understanding all this, but I think there might be a corner case for certain types like CacheVolume where the arg name is key instead of id:
dagger/sdk/python/src/dagger/api/gen.py
Line 2765 in c1995eb
Doesn't matter right now because we don't support cache volumes as inputs or return types yet, just an FYI as I guess that might come up in the future.
Contributor
Author
There was a problem hiding this comment.
Yes, exactly. I kicked that can later for when we cross that bridge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up to #5300 to fix a hack.