Page MenuHomePhabricator

Bump rufin/elastica (and related libraries) to versions that support PHP 8.0
Open, Stalled, HighPublic

Description

Right now we use:

  • ruflin/elastica on 6.1.1; 7.1.0 supports PHP 8.0
  • elasticsearch/elasticsearch on 6.5.1; only 7.11.0 (and not dev-master) supports PHP 8.0,

Upgrades blocked by T263142: [EPIC] Upgrade Elasticsearch to version 7.x.

For ruflin/Elastica, the major version of the release matches the ES major release:

For elasticsearch/elasticsearch:

Related Objects

Event Timeline

CBogen triaged this task as High priority.Jan 25 2021, 4:19 PM
CBogen moved this task from needs triage to elastic / cirrus on the Discovery-Search board.
Reedy changed the task status from Open to Stalled.Feb 7 2021, 12:28 AM
Reedy added a subscriber: Reedy.

Stalling. Upstream(s) haven't done the releases (and have gone a bit quiet)... And we're waiting on the upgrades of ES too..

https://github.com/elastic/elasticsearch-php/releases/tag/v7.11.0 is out. 7.x of elasticsearch-php only supports ES >= 7.x...

7.1 of ruflin/Elastica looks like it should be out pretty soon - https://github.com/ruflin/Elastica/pull/1871

Just pushed https://github.com/ruflin/Elastica/pull/1898 up too...

So we should be able to use 6.1.2 (when released!) to swap Match out for MatchQuery to unblock the parent tasks above this

Is 7.11.0 etc. based on the new non-OSI licence?

Is 7.11.0 etc. based on the new non-OSI licence?

I'm not sure... Does that license change apply to the the php libraries too?

https://github.com/elastic/elasticsearch-php/tree/v7.11.0 still has Apache/LGPL

Copyright 2013-2020 Elasticsearch B.V.

elasticsearch-php is licensed under the Apache License, Version 2.0
(<LICENSE-APACHE> or <http://www.apache.org/licenses/LICENSE-2.0>) or the GNU
Lesser General Public License, Version 2.1 (<LICENSE-LGPL> or
<https://www.gnu.org/licenses/lgpl-2.1.html>) at your option.

Maybe not? T272111 mentions it as a change from Apache 2.0 to SSPL, but the ruflin/elastica code is MIT… Did you have to sign a CLA to contribute? If not, presumably it's still MIT forever…

Maybe not? T272111 mentions it as a change from Apache 2.0 to SSPL, but the ruflin/elastica code is MIT… Did you have to sign a CLA to contribute? If not, presumably it's still MIT forever…

Noting ruflin/elastica != elasticsearch/elasticsearch

Reedy updated the task description. (Show Details)

Just pushed https://github.com/ruflin/Elastica/pull/1898 up too...

So we should be able to use 6.1.2 (when released!) to swap Match out for MatchQuery to unblock the parent tasks above this

6.1.2 is a-comin'.

https://github.com/ruflin/Elastica/pull/1901

Reedy renamed this task from Bump rufin/elastica (and related libraries) to versions that support PHP 8.0, when they exist to Bump rufin/elastica (and related libraries) to versions that support PHP 8.0.Mar 23 2021, 1:42 AM