Skip to content

TO-51: API supports reviewers in environments#599

Merged
almeidaraul merged 21 commits intomainfrom
TO-51/api-supports-reviewers-in-environments
Mar 17, 2026
Merged

TO-51: API supports reviewers in environments#599
almeidaraul merged 21 commits intomainfrom
TO-51/api-supports-reviewers-in-environments

Conversation

@almeidaraul
Copy link
Copy Markdown
Contributor

@almeidaraul almeidaraul commented Feb 27, 2026

Description

Added API support to reviewers in environments, i.e., change endpoints to reflect those changes in previous PRs

Resolved issues

Part of TO-291

Web service API changes

Changed endpoints for environments

Base automatically changed from TO-51/add-reviewer-list-to-environments to main March 13, 2026 15:21
@almeidaraul almeidaraul marked this pull request as ready for review March 13, 2026 15:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds API support for environment review “reviewers” by extending the environment-reviews response schema and ensuring the relevant relationships are eagerly loaded so reviewer data is returned consistently.

Changes:

  • Extend ArtefactBuildEnvironmentReviewResponse to include a reviewers field and add a dedicated reviewer response model.
  • Eager-load ArtefactBuildEnvironmentReview.reviewers in the GET and single-review PATCH endpoints.
  • Update/extend controller tests and OpenAPI schema to reflect the new reviewers field.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
backend/tests/data_generator.py Allows generating environment reviews with attached reviewers for tests.
backend/tests/controllers/artefacts/test_environment_reviews.py Updates expected payloads to include reviewers and adds new reviewer-focused tests.
backend/test_observer/controllers/artefacts/models.py Adds reviewer response schema and includes reviewers in environment review response model.
backend/test_observer/controllers/artefacts/environment_reviews.py Ensures reviewers are eagerly loaded for GET and single-review PATCH responses.
backend/schemata/openapi.json Updates OpenAPI components to document the new reviewer schema and field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Copy Markdown
Collaborator

@rpbritton rpbritton left a comment

Choose a reason for hiding this comment

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

LGTM!

(also please use the PR template)

@almeidaraul
Copy link
Copy Markdown
Contributor Author

done @rpbritton

@almeidaraul almeidaraul merged commit 8ca7f6b into main Mar 17, 2026
7 checks passed
@almeidaraul almeidaraul deleted the TO-51/api-supports-reviewers-in-environments branch March 17, 2026 15:04
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.

3 participants