Skip to content

TO-40: Create cards for review#670

Open
almeidaraul wants to merge 7 commits intomainfrom
TO-40/create-cards-for-review
Open

TO-40: Create cards for review#670
almeidaraul wants to merge 7 commits intomainfrom
TO-40/create-cards-for-review

Conversation

@almeidaraul
Copy link
Copy Markdown
Contributor

@almeidaraul almeidaraul commented Mar 26, 2026

Description

This card is part of TO-40 and adds functionality to create jira cards (from the JiraClient implementation) and to create jira cards for review of artefacts and environments (from start_test.py).

The only missing part of TO-40 will be to trigger the card creation when assigning reviewers, which I'll wait for #661 to be merged before doing.

Resolved issues

Part of TO-40

Documentation

Web service API changes

Tests

For the Jira Client, there are tests for

  • Happy path of card creation
  • Handling request errors when trying to create cards

As for the reviewer card creation function, there are tests for

  • Happy path
  • Trying to create a card for an artefact with no reviewers
  • Trying to create a card for an artefact with no jira_issue attribute

@almeidaraul almeidaraul requested review from Copilot and uyarahmet and removed request for uyarahmet March 26, 2026 16:33
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 Jira card creation support for TO-40 by extending the Jira client with an issue-creation API and introducing a helper to create review cards for artefacts/environments, with accompanying tests.

Changes:

  • Added JiraClient.create_issue() to create Jira issues via REST API v3.
  • Added create_artefact_review_cards() to generate two Jira “review” tasks linked to an artefact’s Jira issue.
  • Added test coverage for Jira issue creation and review-card creation behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
backend/test_observer/external_apis/jira/jira_client.py Implements Jira issue creation and error logging for failed creates
backend/test_observer/controllers/test_executions/start_test.py Adds helper to create Jira review cards during start-test flow
backend/tests/external_apis/test_external_api_clients.py Adds unit tests for successful and failing Jira issue creation
backend/tests/controllers/test_executions/test_start_test.py Adds tests validating review-card creation and “skip” conditions

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

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

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.

2 participants