Skip to content

ref(code_review): remove legacy endpoint#110457

Merged
armenzg merged 1 commit intomasterfrom
remove_overwatch_endpoint
Mar 12, 2026
Merged

ref(code_review): remove legacy endpoint#110457
armenzg merged 1 commit intomasterfrom
remove_overwatch_endpoint

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Mar 11, 2026

This commit removes the coding_workflows.code_review.seer.use_new_endpoints option, which was previously used to toggle between legacy (overwatch-request) and the new Code Review endpoints for GitHub webhook events. All relevant tests have been updated to consistently use the new review-request and pr-closed endpoints. The code has been adjusted to reflect these changes, ensuring that the new endpoints are utilized for processing pull request and issue comment events.

… to use new review-request endpoints

This commit removes the `coding_workflows.code_review.seer.use_new_endpoints` option, which was previously used to toggle between legacy and new endpoints for GitHub webhook events. All relevant tests have been updated to consistently use the new `review-request` and `pr-closed` endpoints. The code has been adjusted to reflect these changes, ensuring that the new endpoints are utilized for processing pull request and issue comment events.
@armenzg armenzg self-assigned this Mar 11, 2026
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 11, 2026
return {
# In Seer,src/seer/routes/automation_request.py:overwatch_request_endpoint
# Payload shape consumed by Seer code_review routes (review-request, pr-closed).
"request_type": request_type.value,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request_type is no longer needed but we will remove it in another PR.

github_event=GithubWebhookType.CHECK_RUN,
event_payload={"original_run_id": self.original_run_id},
enqueued_at_str=self.enqueued_at_str,
tags={},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kind of unrelated. On a different branch, I intend to make tags a required field rather than optional.

with (
self.code_review_setup(),
self.tasks(),
self.options({"coding_workflows.code_review.seer.use_new_endpoints": True}),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option is no longer needed, thus, we can fold into a single test.

with (
self.code_review_setup(),
self.tasks(),
self.options({"coding_workflows.code_review.seer.use_new_endpoints": True}),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option is no longer needed, thus, we can fold into a single test.

with (
self.code_review_setup(),
self.tasks(),
self.options({"coding_workflows.code_review.seer.use_new_endpoints": True}),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option is no longer needed, thus, we can fold into a single test.

@armenzg armenzg marked this pull request as ready for review March 11, 2026 18:26
@armenzg armenzg requested a review from a team as a code owner March 11, 2026 18:26
@armenzg armenzg merged commit 53168f6 into master Mar 12, 2026
58 checks passed
@armenzg armenzg deleted the remove_overwatch_endpoint branch March 12, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants