Skip to content

[PR #8060/bed13b0b backport][3.105] Fix post-migrate hooks - #8063

Merged
mdellweg merged 1 commit into
3.105from
patchback/backports/3.105/bed13b0be7be8421e345338795f5506f8693a736/pr-8060
Sep 4, 2026
Merged

[PR #8060/bed13b0b backport][3.105] Fix post-migrate hooks#8063
mdellweg merged 1 commit into
3.105from
patchback/backports/3.105/bed13b0be7be8421e345338795f5506f8693a736/pr-8060

Conversation

@patchback

@patchback patchback Bot commented Sep 4, 2026

Copy link
Copy Markdown

This is a backport of PR #8060 as merged into main (bed13b0).

Post migrate hooks are called after every migration. So they must be resilient against missing or differently looking models. Either they take the models from the passed apps and suppress LookupError or they should suppress both LookupError and ProgrammingError.

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Post migrate hooks are called after every migration. So they must be
resilient against missing or differently looking models.
Either they take the models from the passed apps and suppress LookupError
or they should suppress both LookupError and ProgrammingError.

(cherry picked from commit bed13b0)
@patchback patchback Bot mentioned this pull request Sep 4, 2026
4 tasks
@mdellweg
mdellweg enabled auto-merge (rebase) September 4, 2026 12:17
@mdellweg
mdellweg merged commit 32c4eb9 into 3.105 Sep 4, 2026
14 checks passed
@mdellweg
mdellweg deleted the patchback/backports/3.105/bed13b0be7be8421e345338795f5506f8693a736/pr-8060 branch September 4, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant