-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix branch agnostic too many relationships error #5590
Conversation
CodSpeed Performance ReportMerging #5590 will not alter performanceComparing Summary
|
@@ -1110,7 +1110,7 @@ async def remove_in_db( | |||
# - Update the existing relationship if we are on the same branch | |||
rel_ids_per_branch = peer_data.rel_ids_per_branch() | |||
if branch.name in rel_ids_per_branch: | |||
await update_relationships_to([str(ri) for ri in rel_ids_per_branch[self.branch.name]], to=remove_at, db=db) | |||
await update_relationships_to([str(ri) for ri in rel_ids_per_branch[branch.name]], to=remove_at, db=db) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nasty one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad everyone :shame: :shame: :shame:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's confusing that self.branch
ends up being main
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could probably cover this with a unit test, which would run faster and a failure would be easier to troubleshoot in a unit test than a functional test
I just tried with |
Fixes #5559