Skip to content

Fix on redundant pull request constraints#427

Merged
MoralCode merged 2 commits into
mainfrom
brandonlam2030/Redundant_Argument_Fixes
Jul 16, 2026
Merged

Fix on redundant pull request constraints#427
MoralCode merged 2 commits into
mainfrom
brandonlam2030/Redundant_Argument_Fixes

Conversation

@MoralCode

Copy link
Copy Markdown
Contributor

The contents of this PR is ported from augurlabs/augur#3713 filed by @brandonlam2030

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 #227

Notes for Reviewers

Signed commits

  • [X ] Yes, I signed my commits.

brandonlam2030 and others added 2 commits June 27, 2026 15:40
Signed-off-by: Brandon Lam <brandonlam2030@gmail.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode added the database Related to the unifed data model/schema label Jun 27, 2026
@MoralCode MoralCode merged commit 2f03228 into main Jul 16, 2026
16 checks passed
@MoralCode MoralCode deleted the brandonlam2030/Redundant_Argument_Fixes branch July 16, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database Related to the unifed data model/schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove duplicate unique-prx constraint from pull requests table

2 participants