Skip to content

feat(deployments): list deployments#10

Open
ctxswitch wants to merge 1 commit into
mainfrom
feat/list-deployments
Open

feat(deployments): list deployments#10
ctxswitch wants to merge 1 commit into
mainfrom
feat/list-deployments

Conversation

@ctxswitch

Copy link
Copy Markdown

Change Summary

  • Add GET /deployments for current-state deployment listing with exact service, environment, and status filters.
  • Add offset pagination with limit, offset, and nullable next_offset, returning full deployment records ordered by created_at DESC, id DESC.
  • Add shared request/response types, domain validation/defaulting, app-level validation before persistence, SQLite query support, HTTP query parsing, and API docs.

Risks

  • next_offset is optimistic and set when a full page is returned; it does not issue an extra count query to prove another page exists.
  • Rollout: existing SQLite databases get a new deployments_created_at_id_idx index during schema initialization.
  • Rollback: reverting this PR removes the endpoint and index creation; the existing index can remain harmlessly in SQLite.
  • Validation: make test and make lint pass.

Issues

Stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(deployment): list deployments with filters and pagination

1 participant