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

Fixes #37974 - support keep-latest-packages in python #11202

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

sbernhard
Copy link
Member

@sbernhard sbernhard commented Nov 4, 2024

The pulp python backend supports keep-latest-packages. This should be available on the UI, too.

Thanks @lumarel for adding the number content type some days ago. Very appreciated!

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Not a complete review, just something that jumped out to me.

lib/katello/repository_types/python.rb Outdated Show resolved Hide resolved
Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Functionally this is working well when combined with #11220

However, I found a UI bug. When you look at an existing repository that has a "Keep latest packages" value, the UI shows it as blank. This issue seems related only to generic content types that have integer fields.

I'm guessing the fix would live in /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js

Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Works great, thanks!

Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Oh actually I missed one thing:

lib/katello/repository_types/python.rb Outdated Show resolved Hide resolved
The pulp python backend supports keep-latest-packages. This should be
available on the UI, too.
Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Thanks!

@m-bucher m-bucher merged commit 8201a7a into Katello:master Nov 21, 2024
24 of 27 checks passed
@m-bucher m-bucher deleted the fix_37974 branch November 21, 2024 10:12
ianballou pushed a commit to ianballou/katello that referenced this pull request Dec 2, 2024
* Fixes #37974 - support keep-latest-packages in python
   The pulp python backend supports keep-latest-packages. This should be
   available on the UI, too.

* Fixes generic_remote_options if there is no delimiter

(cherry picked from commit 8201a7a)
ianballou pushed a commit that referenced this pull request Dec 2, 2024
* Fixes #37974 - support keep-latest-packages in python
   The pulp python backend supports keep-latest-packages. This should be
   available on the UI, too.

* Fixes generic_remote_options if there is no delimiter

(cherry picked from commit 8201a7a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants