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

API Rescue Master Branch PR: Update MigrationTask class to be an abstract class #10458

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli mentioned this pull request Aug 23, 2022
5 tasks
@GuySartorelli GuySartorelli force-pushed the pulls/5/rescue-master-abstract-migrationtask branch from 1cb0658 to e42ed95 Compare August 23, 2022 03:53
@GuySartorelli GuySartorelli changed the title Update MigrationTask class to be an abstract class API Rescue Master Branch PR: Update MigrationTask class to be an abstract class Aug 23, 2022
Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Similar to #10461 - I don't like having an abstract class without any abstract methods. It goes against how people normally thing about abstract classes.

Seems like instead we could do something else like just filter out MigrationTask::class from whatever piece of code finds all the available Tasks that can be run

@GuySartorelli
Copy link
Member Author

abstract as a way to identify a class that should not be instantiated is a valid use case.

@emteknetnz
Copy link
Member

OK fair enough, I was thinking about it wrong

@emteknetnz emteknetnz merged commit 9e057d8 into silverstripe:5 Aug 24, 2022
@emteknetnz emteknetnz deleted the pulls/5/rescue-master-abstract-migrationtask branch August 24, 2022 03:35
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