-
Notifications
You must be signed in to change notification settings - Fork 733
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
Backport MatchQuery into 6.x branch #1879
Comments
++ on making the migration easier. I would prefer to have the change as lightweight as possible on the 6.x branch. I'm worried that we might break something by accident and then need to have more maintenance on the 6.x branch. So if the "extends" approach works this would be my preference, but happy to be convinced otherwise. For the backports: I'm hopping we have very few / none of these to 6.x but I'm sure reality will proof me wrong. |
I believe it should be enough. As long as it's in the same tree (so something like So that will allow people for migration to replace Match with MatchQuery (just needing to bump their 6.x requirement to effectively be >= the next 6.x release). Then when they switch to/allow 7 (and similarly, set >= the next 7.x release), this "migration" is done. Obviously other changes might be needed for other things, but that's fine. As above, it's not so much for PHP 8.0 support via Elastica 6.x (though if that's possible, maybe it's beneficial; in that case I guess in part, it all depends what https://github.com/elastic/elasticsearch-php end up doing in terms of PHP 8 support in their branches. https://github.com/elastic/elasticsearch-php#php-version-requirement says for 6.0
I've also just filed elastic/elasticsearch-php#1084 asking for which version(s) are going to support PHP 8.0, to help answer #1799 (comment) |
PR up... :) |
If we can get a release after that PR is merged, that'd be appreciated! Changes on the 6.x branch: 6.1.1...6.x |
* Add MatchQuery class for forward compat Fixes #1879 * CHANGELOG: Add entry for addition of `Elastica\Query\MatchQuery`
It was merged. |
Thanks! Should I file a seperate task about a new 6.x release? 6.1.2, presumably? 6.1.1...6.x |
Oh, duh. Just saw #1901 👍 |
Version |
Related to #1799 and #1793
While it's not so important that the 6.x branch supports PHP 8.0 (at least for us, for other people it might be), it'd be useful if
MatchQuery
in some form or another is backported into the 6.x branch, allowing code that needs to support 6.x | 7.x is able to set a version constraint to bring in the newer version of 6.x (ie 6.2 onwards or similar), and have theMatchQuery
class available for both branches, to ease later migration burdens, and also not having to support bothMatch
andMatchQuery
in extends and use clauses etc.In the simplest form, I guess a
class_alias
orclass MatchQuery extends Match {}
would do it. But for ease, it might be "easier" to backport all of #1799 to keep any subsequent backports and such easier (if they happen to touch the same code).The text was updated successfully, but these errors were encountered: