Skip to content

Conversation

@chromy
Copy link
Contributor

@chromy chromy commented Dec 19, 2025

Populate evidence_data with {head,base} x {metric,artifact} ids.
Also remove unused evidence_display.

This will allow us to show the diff treemap:
CleanShot 2025-12-19 at 14 55 35@2x

In the issue group view (after a matching UI change).

@chromy chromy requested a review from a team as a code owner December 19, 2025 14:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 19, 2025
@chromy chromy changed the title feat(preprod): Add metrics ids to issue evidence-data feat(preprod): Add artifact and metric ids to issue evidence_data Dec 19, 2025
@chromy chromy force-pushed the chromy/2025-12-18-add-evidence-data-with-metric-ids branch from 3b917da to c14ef4b Compare December 19, 2025 15:08
Copy link
Contributor

@cameroncooke cameroncooke left a comment

Choose a reason for hiding this comment

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

Looks good to me, what happens if base_artifact or base_metric are null will the evidence table just remove them?

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #105323    +/-   ##
=========================================
  Coverage   80.58%    80.58%            
=========================================
  Files        9438      9437     -1     
  Lines      404466    404596   +130     
  Branches    25698     25698            
=========================================
+ Hits       325941    326047   +106     
- Misses      78057     78081    +24     
  Partials      468       468            

@chromy
Copy link
Contributor Author

chromy commented Dec 19, 2025

Looks good to me, what happens if base_artifact or base_metric are null will the evidence table just remove them?

In this particular bit of code I think we should always have base_artifact (& base_metric). In general I think

  • evidence_data isn't actually displayed anywhere by default
  • evidence_display is displayed as a table (if the issue type opts into it by making a change in that file that was in the last review)
  • evidence_display being null I think is not an issue since you have to make an IssueEvidence object and that enforces the key and value are both strings.

@chromy chromy force-pushed the chromy/2025-12-18-add-evidence-data-with-metric-ids branch from c14ef4b to 5246cff Compare December 19, 2025 15:25
@chromy chromy merged commit 2b8714d into master Dec 19, 2025
67 checks passed
@chromy chromy deleted the chromy/2025-12-18-add-evidence-data-with-metric-ids branch December 19, 2025 16:10
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants