Skip to content

Conversation

@fbac
Copy link
Collaborator

@fbac fbac commented Oct 9, 2025

Add submission and attestation filters to limit AttestationWorker.findReportsNeedingAttestation and SubmitterWorker.SubmitReports to reports pending attestation and submission for payer report processing

The attestation worker updates its fetch query to require SubmissionPending in addition to AttestationPending, and the submitter worker updates its fetch query to require SubmissionPending with AttestationApproved. A new test verifies that reports in non-pending states are excluded and retain their existing statuses.

  • Update AttestationWorker.findReportsNeedingAttestation to filter reports by AttestationPending and SubmissionPending in attestation.go
  • Update SubmitterWorker.SubmitReports to fetch only SubmissionPending with AttestationApproved in submitter.go
  • Add table-driven test TestDontAttestReportsInNonPendingStates in attestation_test.go to verify exclusion of non-pending states

📍Where to Start

Start with the fetch logic in AttestationWorker.findReportsNeedingAttestation in attestation.go, then review the submission filtering in SubmitterWorker.SubmitReports in submitter.go.


📊 Macroscope summarized 058e05c. 2 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

@fbac fbac requested a review from a team as a code owner October 9, 2025 21:16
@graphite-app
Copy link

graphite-app bot commented Oct 9, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@fbac fbac changed the title Attest only reports pending attestation and submission Attest and submit filters Oct 9, 2025
@fbac fbac force-pushed the 10-09-filter_submitted_attestations branch from b17f857 to 01b5ec7 Compare October 9, 2025 21:45
@fbac fbac force-pushed the 10-09-filter_submitted_attestations branch from b23d0c8 to 064c5ca Compare October 9, 2025 22:17
@fbac fbac force-pushed the 10-09-filter_submitted_attestations branch from 064c5ca to 058e05c Compare October 9, 2025 22:28
Copy link
Collaborator

@mkysel mkysel left a comment

Choose a reason for hiding this comment

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

Love the tests and clarifying comments

@fbac fbac merged commit c2f6347 into main Oct 10, 2025
11 checks passed
@fbac fbac deleted the 10-09-filter_submitted_attestations branch October 10, 2025 10:02
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.

4 participants