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 content__in filter #5818

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Fix content__in filter #5818

merged 1 commit into from
Sep 23, 2024

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Sep 20, 2024

fixes: #3634

@gerrod3 gerrod3 force-pushed the content_in_fix branch 2 times, most recently from 2be5dcf to 6eb769d Compare September 20, 2024 19:23
@mdellweg mdellweg enabled auto-merge (rebase) September 23, 2024 09:11
Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

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

The original bugreport was (only) about the openapi schema being wrong. Have you checked that this fixes it?

file_random_content_unit,
file_content_unit_with_name_factory,
Copy link
Member

Choose a reason for hiding this comment

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

Yes!!!

Comment on lines +365 to +366
class WithContentInFilter(BaseInFilter, WithContentFilter):
"""The multi-content variant of WithContentFilter."""
Copy link
Member

Choose a reason for hiding this comment

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

Is the BaseInFilter what fixes the openapi3 schema in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll add a schema test for this.

@mdellweg mdellweg merged commit 53618c0 into pulp:main Sep 23, 2024
12 checks passed
@gerrod3 gerrod3 deleted the content_in_fix branch September 23, 2024 13:57
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.

content__in report wrong type in open api spec
2 participants