-
Notifications
You must be signed in to change notification settings - Fork 296
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 #36758 - Add content counts to capsule content view UI #10745
Conversation
Issues: #36758 |
ad08dad
to
4552e23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the counts are looking good! One thing I just noticed is that we have a discontinuity between our content unit naming on content views / smart proxies and repositories. Like "Container Image Tags" versus "Container tags".
Anyway, from a testing perspective it's looking good.
I'm currently looking into something weird, but it'll be unrelated to this PR... my CVV package count is different from the capsule package count, but CVV.packages is also a different number, and that number is ALSO different from what I get if I count up the packages reported in each of the CVVs repos... I'll report back if it's something that needs addressing here...
import ContentConfig from '../Content/ContentConfig'; | ||
|
||
const AdditionalCapsuleContent = ({ counts }) => { | ||
console.log(counts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug logs abound :)
It looks like the issue is that, on a content view version, we show the count of unique packages. However, here, are are counting up the total number of packages. This is a little problematic because we only get the counts from Pulp, not the NVRAs. Some potential solutions:
Screenshots: vs |
4552e23
to
02acf2c
Compare
c087dae
to
f4871aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c3c7f4a
to
cd36d7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found one typo:
cd36d7d
to
f175f00
Compare
0eda7d3
to
0a94506
Compare
[test katello] |
3e18b51
to
6d37ff9
Compare
(cherry picked from commit ad08dad)
6d37ff9
to
43f6720
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorting the repos by name is a little tricky given we only have access to ids in the content count json. We do have list of repositories on the UI and it should be possible to sort those. Opened an issue here: https://projects.theforeman.org/issues/36806 to work on that and move this PR along. Thanks @ianballou ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack!
What are the changes introduced in this pull request?
Add UI bits for capsule content redesigned page with content counts.
Considerations taken when implementing this change?
What are the testing steps for this pull request?
Have added all necessary changes to commits here for easier testing.