Skip to content

Fix on redundant pull request constraints#3713

Open
brandonlam2030 wants to merge 2 commits intochaoss:mainfrom
brandonlam2030:Redundant_Argument_Fixes
Open

Fix on redundant pull request constraints#3713
brandonlam2030 wants to merge 2 commits intochaoss:mainfrom
brandonlam2030:Redundant_Argument_Fixes

Conversation

@brandonlam2030
Copy link

@brandonlam2030 brandonlam2030 commented Feb 18, 2026

Description
The Pull Request model contains redundant checks on unique data. Since two table arguments perform the same checks on repo_id and pr_src_id, we can remove one to improve efficiency. This removes unnecessary database overhead by eliminating duplicate constraints.

This PR fixes #3712

Notes for Reviewers

Signed commits

  • [X ] Yes, I signed my commits.

Signed-off-by: Brandon Lam <brandonlam2030@gmail.com>
@brandonlam2030 brandonlam2030 force-pushed the Redundant_Argument_Fixes branch from ec71f0c to c885014 Compare February 18, 2026 06:29
@MoralCode
Copy link
Contributor

look good! i will generate a database migration script based on this (the process is still being worked out and isnt the most newcomer-friendly yet).

Thanks for the contribution!

@MoralCode MoralCode added the pending changes PRs that have review comments that have been added but havent been addressed in a while label Feb 18, 2026
@MoralCode MoralCode self-assigned this Feb 18, 2026
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode added database Related to Augur's unifed data model and removed pending changes PRs that have review comments that have been added but havent been addressed in a while labels Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database Related to Augur's unifed data model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove duplicate unique-prx constraint from pull requests table

2 participants