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

Deprecate Util::getParamName() #1832

Merged
merged 2 commits into from
Oct 28, 2020
Merged

Conversation

deguif
Copy link
Collaborator

@deguif deguif commented Oct 26, 2020

See comment: #1813 (comment)
I'm proposing to deprecate Elastica\Util::getParamName() as it's too generic and used in context of multiple classes with different naming conventions like Query, Aggregation and Processor (it checks for example Query suffix for every class, even when the class is not related to a Query). Instead I moved logic to Query suffix in the base Query class. This can be replicated for base classes Aggregation and Processor later to handle their suffix in an unified way.

@deguif deguif force-pushed the deprecate-util-base-name branch from 381a2a3 to 524230b Compare October 26, 2020 17:57
@ruflin
Copy link
Owner

ruflin commented Oct 27, 2020

Can you share some details behind this change?

@deguif
Copy link
Collaborator Author

deguif commented Oct 27, 2020

Just added a description to share the details I have in mind behind this change.

@deguif deguif merged commit 69c33cf into ruflin:master Oct 28, 2020
@deguif deguif deleted the deprecate-util-base-name branch October 28, 2020 10:03
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.

2 participants