Skip to content

Fix on redundant pull request constraints#427

Open
MoralCode wants to merge 2 commits into
mainfrom
brandonlam2030/Redundant_Argument_Fixes
Open

Fix on redundant pull request constraints#427
MoralCode wants to merge 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
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