Skip to content

Refactor endpoins from /v2/incidents to /v2/events#149

Merged
otc-zuul[bot] merged 8 commits intomainfrom
change/incidents_deprecated
Jan 28, 2026
Merged

Refactor endpoins from /v2/incidents to /v2/events#149
otc-zuul[bot] merged 8 commits intomainfrom
change/incidents_deprecated

Conversation

@bakhterets
Copy link
Contributor

We have v2/events endpoint with pagination and filters. We should extend REST API schema for v2/events group and duplicate all functionality from v2/incidents. Mark in the openapi schema /v2/incidents as deprecated.

openapi changed;
tests/v2_test changed;
temporal middleware added
@bakhterets bakhterets requested a review from sgmv January 26, 2026 17:10
@bakhterets bakhterets self-assigned this Jan 26, 2026
@bakhterets
Copy link
Contributor Author

  • Split v2 endpoint tests: restored /v2/incidents coverage and added a new tests/v2_events_test.go targeting /v2/events.
    • Updated v2 API unit tests/helpers to exercise both /v2/incidents and /v2/events routes for update flows.
    • Documented that /v2/events now supports all operations and marked /v2/incidents as deprecated in the V2 docs.

@bakhterets bakhterets marked this pull request as ready for review January 27, 2026 16:47
@bakhterets bakhterets requested a review from sgmv January 27, 2026 16:47
@bakhterets bakhterets added the gate Gate PR label Jan 28, 2026
@otc-zuul otc-zuul bot merged commit 08847a9 into main Jan 28, 2026
16 checks passed
@otc-zuul otc-zuul bot deleted the change/incidents_deprecated branch January 28, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gate Gate PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants