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

Change old command removals to use RemovedCommand #369

Merged
merged 8 commits into from
Jan 14, 2021

Conversation

VladimirSlavik
Copy link
Collaborator

@VladimirSlavik VladimirSlavik commented Jan 4, 2021

This should make all removals conform to The New Way™.

Most of this is straightforward, but the lilo-related commits needed making choices about how to classify deprecated/removed.

Copy link
Collaborator

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

LGTM!

Copy link
Collaborator

@bcl bcl 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 overall. In some places (but not all) you removed the previous deprecation documentation. Was this on purpose? I think it should be left alone so that users can see the progression from active to deprecated to removed. Also if they are using the previous version it may only be deprecated for them.

@VladimirSlavik
Copy link
Collaborator Author

Let me explain about the lilo command classes, it's a bit tangled, what with the definitions evolving over time :-)

Thing is, the FC3 lilo command claimed it is deprecated in the next version - FC4. That doesn't happen elsewhere, commands always note only changes in the same version. So that seemed wrong. And then FC4 didn't have a class for this command in handler so it wasn't "deprecated", it was really "removed", at least in the sense of how things work now. So that makes it a pretty unique command that has exists in only one version, and claims to be deprecated while being removed. (Does it?)

So the choice I mention in first comment was: I went with what the actual code did, instead of the doc string. I got rid of the incorrect mention of deprecation, and made the command properly removed. That was also the least amount of change.

If I were to instead make the code fit the docs, and do so in the context of the changes applying to today's code ran today, I would instead drop the docstring on the FC3 class, create a FC4 class that is properly deprecated, and a FC5 one that is removed. That's the alternative I immediately see.

So, what are your opinions, ideas...? I'm happy to change this, just not sure what I should do.

@bcl
Copy link
Collaborator

bcl commented Jan 14, 2021

And then FC4 didn't have a class for this command in handler so it wasn't "deprecated", it was really "removed", at least in the sense of how things work now.

Ah! I missed that detail, now it makes sense. Thanks!

Copy link
Collaborator

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Thanks!

@bcl bcl merged commit 7507464 into pykickstart:master Jan 14, 2021
@VladimirSlavik VladimirSlavik deleted the master-fix-old-removals branch January 15, 2021 12:43
@VladimirSlavik
Copy link
Collaborator Author

Thank you, too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants