Skip to content

Conversation

@MarceloRobert
Copy link
Collaborator

@MarceloRobert MarceloRobert commented Aug 7, 2025

Changes

  • Adds issue version to the first_incident field
  • Fixes problem where adding two issue versions with the same issue id would only return the data for the first one
  • Altered the response of the endpoint, if an issue version exists but has no incidents, it will return an object with 0 trees; if it doesn't exist, it will return as null. More comments were added in the code.

How to test

Fetch some data from the issue_extras endpoint (I recommend using the localhost swagger ui) and test with issues that exist, that don't exist, that have 0 and more incidents, and other cases.
Also test the dashboard for the issue listing and issue details pages, everything should still be working as before.

Closes #1335

@MarceloRobert MarceloRobert self-assigned this Aug 7, 2025
Copy link

@tales-aparecida tales-aparecida left a comment

Choose a reason for hiding this comment

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

nitpicking (not so much about processed_issue_from_id["versions"].get(version))

Altered the queries and objects in order to be clearer when an issue version doesn't exist or has no incidents

Added the issue_version in the first incident object

Fixed a problem where fetching for the extra details of more than one issue with the same id would only return one result for it

Closes #1335
@MarceloRobert MarceloRobert force-pushed the refactor/clear-issue-extras branch from 7be0f5b to 20fc8a2 Compare August 8, 2025 17:47
@MarceloRobert MarceloRobert marked this pull request as ready for review August 8, 2025 17:51
@MarceloRobert MarceloRobert merged commit 20fc8a2 into main Aug 11, 2025
10 checks passed
@MarceloRobert MarceloRobert deleted the refactor/clear-issue-extras branch August 13, 2025 19:21
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.

Issue extras: be clear when an issue version doesn't exist

4 participants