Skip to content

Add DeletePreconditions to all Delete<Resource> methods - #1807

Merged
Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:delete_preconditions
Sep 23, 2026
Merged

Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:delete_preconditions

Conversation

@juli4n

@juli4n Julian Gutierrez Oschmann (juli4n) commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Allow clients to do optimistic locking on deletes, as well as prevent unintended deletes on name reuse.

#866

}
}

// foreignUID matches no stored object, for guards that must miss.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we move this to workflow_tag_test.go? It's only used there

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Allow clients to do optimistic locking on deletes, as well
as prevent unintended deletes on name reuse.
@laoj2
Luiz Oliveira (laoj2) added this pull request to the merge queue Sep 23, 2026
Merged via the queue into agent-substrate:main with commit 985c200 Sep 23, 2026
11 checks passed
@bowei Bowei Du (bowei) added area/api User-facing API changes area/api-machinery area/cli kind/feature An enhancement / feature request or implementation labels Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api User-facing API changes area/api-machinery area/cli kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants