mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: refresh dynamic parameters on secret changes (#24786)
Publishes user secret create, update, and delete events and subscribes dynamic parameter websockets to authorized owner secret changes. Secret changes trigger fresh renders with monotonic response IDs, with backend tests covering subscription authorization and websocket refresh behavior.
This commit is contained in:
@@ -162,8 +162,9 @@ type PreviewParameterValidation struct {
|
||||
}
|
||||
|
||||
type DynamicParametersRequest struct {
|
||||
// ID identifies the request. The response contains the same
|
||||
// ID so that the client can match it to the request.
|
||||
// ID identifies the request for response ordering. Websocket response
|
||||
// IDs are monotonically increasing and may exceed the request ID when
|
||||
// server-side events trigger additional renders.
|
||||
ID int `json:"id"`
|
||||
Inputs map[string]string `json:"inputs"`
|
||||
// OwnerID if uuid.Nil, it defaults to `codersdk.Me`
|
||||
|
||||
Reference in New Issue
Block a user