Skip to content

Conversation

@SasSwart
Copy link
Contributor

@SasSwart SasSwart commented Oct 6, 2025

In #20137, we added a new flag to coder provisioner jobs list, namely --initiator.

To make some follow-up worth it, I need to rename an API param used in the process before it becomes part of our released and tagged API.

Instead of only accepting UUIDs, we accept an arbitrary string.
We still validate it as a UUID now, but we will expand its validation to allow any string and then resolve that string the same way that we resolve the user parameter elsewhere in the API.

}
tags := p.JSONStringMap(qp, database.StringMap{}, "tags")
initiatorID := p.UUID(qp, uuid.Nil, "initiator_id")
initiatorID := p.UUID(qp, uuid.Nil, "initiator")
Copy link
Member

Choose a reason for hiding this comment

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

Just checking; you're saying this will change in future work? If so, then 👍🏻

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The name of the parameter will remain "initiator". The valid domain for the param will expand from being a valid uuid to also being the name of any existing user, or the special value "me"

@SasSwart SasSwart marked this pull request as ready for review October 6, 2025 11:58
@SasSwart SasSwart merged commit a7c9e62 into main Oct 6, 2025
30 checks passed
@SasSwart SasSwart deleted the jjs/internal-934 branch October 6, 2025 11:58
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants