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

Create the auto partitioning module #1458

Merged

Conversation

poncovka
Copy link
Contributor

he auto partitioning module can handle the autopart kickstart command
and provides API for its options. The module is static for now, but it
will be dynamic in the future.

Add new tests for the auto partitioning module and the autopart
command.

@poncovka poncovka added the master Please, use the `f39` label instead. label Apr 23, 2018
Copy link
Member

@jkonecny12 jkonecny12 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 otherwise.

@property
def passphrase(self):
"""Default passphrase for all encrypted devices."""
return self._passphrase
Copy link
Member

Choose a reason for hiding this comment

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

This just feels weird to me. I know we need it now, but we shouldn't provide password back from module. I don't think we will really need that when this spoke is finished.

So could you please add TODO here to remove getter when module will be completed please?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, something similar to the note in the user module could be used:
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/user/user_interface.py#L66

One more reason to concentrate on moving the logic on these modules as soon as possible. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in the DBus interface.

def SetEnabled(self, enabled: Bool):
"""Is the auto partitioning enabled?

:param enabled: a boolean value
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can go away (or tell about semantics, not type).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor

@rvykydal rvykydal 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.

@poncovka
Copy link
Contributor Author

Fixed some small issues.

The auto partitioning module can handle the autopart kickstart command
and provides API for its options. The module is static for now, but it
will be dynamic in the future.
Add new tests for the auto partitioning module and the autopart
command.
@poncovka poncovka merged commit f4739f9 into rhinstaller:modularization-devel Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master Please, use the `f39` label instead.
4 participants