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

backend: remove fake jobs and pass specific arguments to storage calls #3322

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

FrostyX
Copy link
Member

@FrostyX FrostyX commented Jul 3, 2024

There is one small exception and that is publish_repository which takes **kwargs for parameters that differ across storages.

@FrostyX FrostyX force-pushed the pulp-remove-fake-jobs branch 2 times, most recently from 9ebe686 to 4711cac Compare July 3, 2024 21:16
@FrostyX FrostyX force-pushed the pulp-remove-fake-jobs branch 6 times, most recently from 1a08a33 to 90ca16e Compare July 7, 2024 18:59
FrostyX added 3 commits July 7, 2024 21:28
There is one small exception and that is `publish_repository` which
takes `**kwargs` for parameters that differ across storages.
The previous code "worked" only by an accident. Previously we called
the publication endpoint without a trailing slash (changed in d8013c),
which caused some weird redirect and returned a list of all
publications, not the one created publication that I expected.

We need to manually query the publication href from the submitted
task.
The reasoning for doing so was based on a wrong premise.

> The standard urlencode would change the slashes to %2F making Pulp to
> not find the project when filtering by name.

The reason why Pulp couldn't find any project wasn't becaues of
encoded slashes but because of a bug that I fixed in cc12c9.
@FrostyX FrostyX force-pushed the pulp-remove-fake-jobs branch from 90ca16e to 7a75f2c Compare July 7, 2024 20:04
Copy link
Member

@praiskup praiskup left a comment

Choose a reason for hiding this comment

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

LGTM

@praiskup praiskup merged commit 160a1da into fedora-copr:main Jul 9, 2024
7 checks passed
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.

2 participants