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

Fix a serializer viewset interaction issue #2437

Merged
merged 1 commit into from
Mar 25, 2022
Merged

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Mar 25, 2022

Since a default value is provided on the publication serializer, it can't properly fall back to the repository settings: https://github.com/pulp/pulp_rpm/blob/main/pulp_rpm/app/viewsets.py#L272-L275

We need it to return None when not provided so that ^ line can work properly.

closes #2430

@dralley dralley merged commit cc48bb4 into pulp:main Mar 25, 2022
@dralley dralley deleted the fix-serializer branch March 25, 2022 18:27
@patchback
Copy link

patchback bot commented Mar 25, 2022

Backport to 3.17: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.17/cc48bb4c49c0bf6a471d9453224eaa4e53380af2/pr-2437

Backported as #2442

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@patchback
Copy link

patchback bot commented Mar 25, 2022

Backport to 3.14: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.14/cc48bb4c49c0bf6a471d9453224eaa4e53380af2/pr-2437

Backported as #2443

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

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.

gpgcheck in repo create doesn't work, neither in publication/distribution
2 participants