-
Notifications
You must be signed in to change notification settings - Fork 15
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
NEW LinkableMigrationTask for migrating sheadawson-lin kable links #261
NEW LinkableMigrationTask for migrating sheadawson-lin kable links #261
Conversation
0288f89
to
4971a3c
Compare
46b933b
to
1d20319
Compare
/** | ||
* Returns true if the class represents an old link to be migrated | ||
*/ | ||
abstract private function classIsOldLink(string $class): bool; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method classIsOldLink
have been removed as redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been tested with the gorriecoe migration task to make sure it doesn't cause problems there?
8fce8e9
to
4c7fbfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great locally - some changes required.
/** | ||
* Returns true if the class represents an old link to be migrated | ||
*/ | ||
abstract private function classIsOldLink(string $class): bool; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been tested with the gorriecoe migration task to make sure it doesn't cause problems there?
c0773a7
to
9b3de66
Compare
f382b2e
to
5beb60d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just about there.
There were a lot of pushes since the last review - I'm assuming that there weren't any changes unrelated to the changes I requested. If you did make other changes, please let me know so I can review them.
No, there are not any new changes in the code, except one. I moved |
cbe6b9b
to
458b3cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last few changes
458b3cb
to
4d9c84f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
These changes use the already developed logic of
GorriecoeMigrationTask
class. Since the Model structure of these two modules is almost identical, commonGorriecoeMigrationTask
logic was separated into aModuleMigrationTaskTrait
and implemented inLinkableMigrationTask
for ease of support in the future.Also, minor changes were made to
MigrationTaskTrait
and theclassIsOldLink
class method was removed. Tests have been added and documentation on migration from theLinkable
module toLinkField
has been updated.Parent issue
Note: For further implementation, it is required that this PR be merged into the main branch 4 first.