Repository navigation
Simplify Update methods to do a whole object replace - #1108
Merged
Julian Gutierrez Oschmann (juli4n) merged 5 commits intoAug 24, 2026
Merged
Conversation
Luiz Oliveira (laoj2)
requested a review
from Julian Gutierrez Oschmann (juli4n)
August 20, 2026 21:25
| "worker_selector.match_labels", | ||
| // actorImmutableFields lists the Actor fields an update never takes from the | ||
| // request: the stored values win, whatever the client sends. | ||
| var actorImmutableFields = protoupdate.ImmutableFields[*ateapipb.Actor]( |
Collaborator
There was a problem hiding this comment.
I hope we don't need to enumerate this and can have a generic merge logic that works for all resources / fields. See my comment in #954 (comment)
Collaborator
Author
There was a problem hiding this comment.
Updated this PR based on our conversations. Now, we're doing:
serverOwned := storedObj[...]
proto.Reset(storedObj)
proto.Merge(storedObj, inputObj)
storedObj[...] = serverOwned
One thing to note is that this operation retains all unknown fields from the input actor. But, we've been discussing what behaviour we want to keep in #954
Luiz Oliveira (laoj2)
force-pushed
the
updates
branch
from
August 24, 2026 14:12
2c564c1 to
c65b4a6
Compare
Luiz Oliveira (laoj2)
requested a review
from Julian Gutierrez Oschmann (juli4n)
August 24, 2026 14:15
Luiz Oliveira (laoj2)
force-pushed
the
updates
branch
3 times, most recently
from
August 24, 2026 14:51
62b8b6b to
1d8ac1e
Compare
Luiz Oliveira (laoj2)
force-pushed
the
updates
branch
from
August 24, 2026 17:18
1d8ac1e to
395780e
Compare
Luiz Oliveira (laoj2)
force-pushed
the
updates
branch
from
August 24, 2026 18:43
395780e to
41316f9
Compare
Julian Gutierrez Oschmann (juli4n)
approved these changes
Aug 24, 2026
Julian Gutierrez Oschmann (juli4n)
merged commit Aug 24, 2026
31a2e38
into
agent-substrate:main
9 checks passed
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.
#1011