Skip to content

Conversation

@dobrac
Copy link
Contributor

@dobrac dobrac commented Oct 30, 2025

Note

Adds POST /v3/templates with a new minimal response, deprecates older template endpoints (now returning TemplateLegacy), refactors handlers to be context-aware, and updates OpenAPI, generated clients, and tests.

  • API (v3):
    • Add POST /v3/templates with routing/middleware and handler PostV3Templates.
    • Introduce TemplateBuildRequestV3 and TemplateRequestResponseV3 models.
  • Deprecations/behavior:
    • Mark legacy endpoints (/templates, /v2/templates, related build-start routes) as deprecated; their 202 responses now return TemplateLegacy.
  • Handlers:
    • Implement v3 build flow via requestTemplateBuild helper.
    • Make GetUserAndTeams and GetTeamAndLimits accept context.Context; update all call sites.
  • OpenAPI/Codegen:
    • Update openapi.yml; regenerate server/types/spec and integration client to include v3 endpoint and response/model changes.
  • Tests:
    • Switch integration tests/utilities to use POST /v3/templates and new response types.

Written by Cursor Bugbot for commit 1557fe6. This will update automatically on new commits. Configure here.

@dobrac dobrac added bug Something isn't working improvement Improvement for current functionality labels Oct 30, 2025
@dobrac dobrac marked this pull request as ready for review October 30, 2025 10:12
cursor[bot]

This comment was marked as outdated.

@dobrac dobrac force-pushed the fix-template-request-return-type branch from fce89e7 to 23fb432 Compare October 30, 2025 10:54
cursor[bot]

This comment was marked as outdated.

@dobrac dobrac enabled auto-merge (squash) October 30, 2025 11:02
@dobrac dobrac merged commit 577a88b into main Oct 30, 2025
26 checks passed
@dobrac dobrac deleted the fix-template-request-return-type branch October 30, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working improvement Improvement for current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants