-
-
Notifications
You must be signed in to change notification settings - Fork 834
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
Use extension names instead of IDs when erroring on enable/disable reqs #2563
Use extension names instead of IDs when erroring on enable/disable reqs #2563
Conversation
Is there a use case for the old method outside of this? If no, I say it's fine. Maybe we could move them to a static util method on ExtensionManager to avoid duplication? |
I would be in favour of introducing that method here, and using it in the codebase (there should be 4 spots in total with this PR)
I think it's fine to leave it as is, I feel like it'd be overdoing it. |
EDIT: Oh, to pass
I assume this would look something like |
How do the added |
Looks good to me! |
Fixes #2341
Changes proposed in this pull request:
Extension@getTitle
methodExtensionManager::pluckTitles
methodConfirmed
composer test
).ORIGINAL DESCRIPTION
Changes needed:
Is there a better way to obtain the extension name? I assume we also want to change the extension to use its name (apart from dependencies/dependents) in error message, but this is a lot of duplicated code.
Not sure if we want to have a fallback to ID in case title doesn't exist.
I'm surprised the
Extension
class doesn't have a method to obtain the extension title.Reviewers should focus on: