Skip to content

fix: match impacted project by name when marking jobs applied - #2749

Closed
ovi-fabric wants to merge 1 commit into
diggerhq:developfrom
Fabric-Data:fix/automerge-impacted-project-lookup
Closed

ovi-fabric wants to merge 1 commit into
diggerhq:developfrom
Fabric-Data:fix/automerge-impacted-project-lookup

Conversation

@ovi-fabric

Copy link
Copy Markdown

GetImpactedProjectSingle accepted projectName but never filtered on it, so every job in a multi-project batch updated whichever impacted_projects row the database returned first for the commit. When that row stayed first, the remaining rows were never marked applied, AllImpactedProjectApplied returned false, and auto-merge was skipped silently.

Filter on project_name, use First so a missing row returns ErrRecordNotFound instead of a zero-value struct, and log the unapplied projects when auto-merge is skipped for that reason.

🧠 Ai UsageDetails (if applicable):

IMPORTANT: Please disclose any usage of ai tooling while making this change. If you did not use any AI write "NA" below

Example: Used ChatGPT to help with doc phrasing.
Example: Code generated by Copilot; reviewed and verified manually.

GetImpactedProjectSingle accepted projectName but never filtered on it, so
every job in a multi-project batch updated whichever impacted_projects row
the database returned first for the commit. When that row stayed first,
the remaining rows were never marked applied, AllImpactedProjectApplied
returned false, and auto-merge was skipped silently.

Filter on project_name, use First so a missing row returns
ErrRecordNotFound instead of a zero-value struct, and log the unapplied
projects when auto-merge is skipped for that reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ovi-fabric ovi-fabric closed this Oct 21, 2026
@oceve-software-factory-template

Copy link
Copy Markdown

Approve tool call: github__addPullRequestComment

  1. Approve
  2. Cancel

Answer by mentioning me in a reply, e.g. @oceve-software-factory-template Approve.

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.

1 participant