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

Move product.py to core #5002

Merged

Conversation

VladimirSlavik
Copy link
Contributor

@VladimirSlavik VladimirSlavik commented Aug 2, 2023

Refactoring in advance of adding D-Bus API for this and such.

Not sure how far I will go with this yet, so no TODO list. Let's take it piecewise. This is a good foundation, is still reasonably sized, and it does not makes sense to mix in the other changes that will have their own challenges.

Side note - the changes have potential to break initial setup due to touching the UI class constructor. Disproved by kickstart tests below.

@github-actions github-actions bot added the f39 label Aug 2, 2023
@VladimirSlavik
Copy link
Contributor Author

/kickstart-test --testtype smoke

@VladimirSlavik VladimirSlavik marked this pull request as ready for review August 2, 2023 14:34
Copy link
Contributor

@poncovka poncovka left a comment

Choose a reason for hiding this comment

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

It looks great. Thank you!

Copy link
Contributor

@poncovka poncovka left a comment

Choose a reason for hiding this comment

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

Btw. I have a feeling that the OSCAP add-on is actually using this functionality.

@VladimirSlavik
Copy link
Contributor Author

Waiting to coordinate with oscap folks. Presumably it would be better to wait with this until after branching.

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

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

Looks good to me - much cleaner now, thanks! :)

@M4rtinK
Copy link
Contributor

M4rtinK commented Aug 3, 2023

Just a small typo in one of the commit messages:

Replace all uses of product values via constants

This means, do not import anything from product to constants that woudl be
then re-imported elsewhere from constants.

@VladimirSlavik
Copy link
Contributor Author

OSCAP people say this is fine for rawhide, so I'd wait for when we do the branching, unless we absolutely require this for webui.

This means, do not import anything from product to constants that woudl be
then re-imported elsewhere from constants.
Generally speaking, move `pyanaconda.product.distributionText` to
`pyanaconda.ui.helpers.get_distribution_text` and convert all uses.
@VladimirSlavik
Copy link
Contributor Author

Rebased to lastest master.

@VladimirSlavik
Copy link
Contributor Author

/kickstart-test --testtype smoke

@VladimirSlavik
Copy link
Contributor Author

/packit test

@VladimirSlavik VladimirSlavik merged commit 40f947e into rhinstaller:master Sep 6, 2023
12 checks passed
@VladimirSlavik VladimirSlavik deleted the master-core-product branch September 6, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Don't merge this pull request! f39
Development

Successfully merging this pull request may close these issues.

3 participants