8000 feat: evaluate dynamic parameters http endpoint by Emyrk · Pull Request #18182 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: evaluate dynamic parameters http endpoint #18182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
evaluate endpoint to return 0 for id
  • Loading branch information
Emyrk committed Jun 2, 2025
commit 761f2907d5ef06dcc7eb56916c37fa38a149ba80
2 changes: 1 addition & 1 deletion coderd/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@
}
}

func (api *API) handleParameterEvaluate(rw http.ResponseWriter, r *http.Request, initial codersdk.DynamicParametersRequest, render previewFunction) {

Check failure on line 346 in coderd/parameters.go

View workflow job for this annotation

GitHub Actions / lint

unused-receiver: method receiver 'api' is not referenced in method's body, consider removing or renaming it as _ (revive)
ctx := r.Context()

// Send an initial form state, computed without any user input.
result, diagnostics := render(ctx, initial.OwnerID, initial.Inputs)
response := codersdk.DynamicParametersResponse{
ID: -1, // Always start with -1.
ID: 0,
Diagnostics: db2sdk.HCLDiagnostics(diagnostics),
}
if result != nil {
Expand Down
Loading
0