Skip to content

Conversation

@vfusco
Copy link
Collaborator

@vfusco vfusco commented Nov 12, 2025

No description provided.

@vfusco vfusco added this to the 2.0.0 milestone Nov 12, 2025
@vfusco vfusco requested review from Copilot and mpolitzer November 12, 2025 13:56
@vfusco vfusco self-assigned this Nov 12, 2025
@vfusco vfusco added this to Node Unit Nov 12, 2025
Copy link

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

This PR fixes the logic for storing advance results by ensuring that outputs and reports are only persisted to the database when an input has an "Accepted" status. This aligns with the existing indexing logic that already filters by accepted status when calculating output and report indices.

Key changes:

  • Conditional storage of outputs and reports based on input acceptance status
  • Updated test application to generate a report before rejecting, validating the new logic

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/repository/postgres/bulk.go Wraps insertOutputs and insertReports calls in a conditional check for InputCompletionStatus_Accepted, preventing storage of outputs/reports from rejected or exception inputs
Makefile Updates the reject-dapp test application to generate a report with rejection reason before calling reject, allowing validation of the new conditional storage logic

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

@vfusco vfusco merged commit cc80830 into next/2.0 Nov 12, 2025
12 checks passed
@vfusco vfusco deleted the fix/advance-result-store branch November 12, 2025 14:05
@github-project-automation github-project-automation bot moved this to ✅ Done in Node Unit Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants