Skip to content

Conversation

@konradoboza
Copy link
Contributor

@konradoboza konradoboza commented Mar 28, 2022

JIRA: https://issues.ibexa.co/browse/IBX-2355

In order to reuse methods pluralize and toCamelCase within https://github.com/ibexa/product-catalog/pull/456 we need to change their scope to be able to decorate the original implementation and avoid redundancy.

@adamwojs
Copy link
Member

In order to reuse methods pluralize and toCamelCase within https://github.com/ibexa/product-catalog/pull/456 we need to change their scope to be able to decorate the original implementation and avoid redundancy.

IMHO it's worth to consider extracting interface from NameHelper but this could be done as follow up.

@konradoboza konradoboza requested review from adamwojs and webhdx March 28, 2022 13:08
@konradoboza konradoboza force-pushed the ibx-2355-improved-name-helper-inheritance branch from 2d2a0df to b377ddf Compare March 28, 2022 14:04
@konradoboza konradoboza force-pushed the ibx-2355-improved-name-helper-inheritance branch from b377ddf to 0ab6bcb Compare March 28, 2022 15:43
@konradoboza
Copy link
Contributor Author

I reverted access modifiers, introduced an abstract class with common methods that can be accessed in other places, and went for decoupling pluralize method by moving it to a dedicated service. Please re-review @adamwojs @webhdx.

@konradoboza konradoboza force-pushed the ibx-2355-improved-name-helper-inheritance branch from b22ca14 to 149c00a Compare March 29, 2022 10:53
@adamwojs adamwojs merged commit b663757 into main Mar 29, 2022
@adamwojs adamwojs deleted the ibx-2355-improved-name-helper-inheritance branch March 29, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants