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

V2Wizard: Add descriptions to package recommendations (HMS-4187) #2114

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

regexowl
Copy link
Collaborator

@regexowl regexowl commented Jun 3, 2024

This adds descriptions to the package recommendations.

@regexowl regexowl changed the title V2Wizard: Add descriptions to package recommendations V2Wizard: Add descriptions to package recommendations (HMS-4187) Jun 3, 2024
@regexowl regexowl marked this pull request as ready for review June 3, 2024 14:23
@regexowl regexowl force-pushed the add-desc-repo-pkg-recommendations branch from 5b2e844 to b898e0c Compare June 4, 2024 14:23
Copy link
Member

@amirfefer amirfefer left a comment

Choose a reason for hiding this comment

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

Thanks @regexowl 👍
I've tested it and it works as expected!

In general, the recommended packages block has a slight optimization issues, seems there is no query caching whatsoever, when the user triggers the same api call with the same packages, a full round trip is started:

Screen.Recording.2024-06-05.at.14.44.20.mov

This is not related to this PR specifically, I guess it related to the useRecommendPackageMutation effect.

Copy link
Member

@amirfefer amirfefer left a comment

Choose a reason for hiding this comment

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

I opened an issue - #2123 for tracking.

LGTM

@amirfefer amirfefer enabled auto-merge (rebase) June 5, 2024 15:32
@regexowl
Copy link
Collaborator Author

regexowl commented Jun 6, 2024

I opened an issue - #2123 for tracking.

Excellent, thank you!

Yeah, the package recommendations are still very much a stage-preview feature for now and we should refine it along the way.

regexowl added 2 commits June 6, 2024 09:28
This moves the RH repository used in "Package repository" column to an exportable const.
After the list of package recommendations is fetched, each of the packages gets queried as a searchTerm against the list of distribution repositories.

This fetched the summary of the package which can be used as a description.
@regexowl regexowl force-pushed the add-desc-repo-pkg-recommendations branch from b898e0c to 113a248 Compare June 6, 2024 07:28
@amirfefer amirfefer merged commit 054dc42 into osbuild:main Jun 6, 2024
4 of 5 checks passed
@regexowl regexowl deleted the add-desc-repo-pkg-recommendations branch June 6, 2024 07:33
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.

3 participants