Skip to content
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

remove mixin loop #743

Merged
merged 1 commit into from
Sep 23, 2024
Merged

remove mixin loop #743

merged 1 commit into from
Sep 23, 2024

Conversation

costaconrado
Copy link
Contributor

@costaconrado costaconrado commented Sep 20, 2024

This PR removes a infinite recursion in save method when sync to bugzilla is disabled.

This commit db2cc6f introduced a infinite recursion in environments that don't sync to bugzilla, when validations were separated from BugzillaSyncMixin, was no need to bzsync method to skip mixins / call the next save method, making this infinite loop.

The way the 409 used to happen was by calling save method multiple times until the current save call have a different timestamp from the 1st save call, throwing the exception presented in https://github.com/RedHatProductSecurity/osidb/blob/master/osidb/mixins.py#L52

Closes OSIDB-3430.

Copy link
Contributor

@osoukup osoukup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha! That was the UAT issue! LGTM

Copy link
Contributor

@JakubFrejlach JakubFrejlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice detective work!

@costaconrado costaconrado added this pull request to the merge queue Sep 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 23, 2024
@jobselko jobselko added this pull request to the merge queue Sep 23, 2024
Merged via the queue into master with commit 79b018b Sep 23, 2024
11 checks passed
@jobselko jobselko deleted the uat-environment branch September 23, 2024 12:26
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.

5 participants