cern-sis / issues-inspire

0 stars 0 forks source link

Migrate to opensearch python client on hep #295

Closed MJedr closed 1 year ago

MJedr commented 1 year ago

We should replace elasticsearch-py with opensearch-2 python client. That will require some other updates, check https://github.com/cern-sis/issues-inspire/issues/256#issue-1632074871

MJedr commented 1 year ago

Upgrading invenio packages that are using invenio-search requires an update to Flask >= 2.2.5. To do it, we need to:

  1. Make sure all the packages using Flask on hep work with the new Flask:
    • [x] flask-sqlalchemy
    • [ ] sqlalchemy-continuum -> problematic, requires some changes
    • [ ] inspire-dojson
  2. Make sure that the packages listed above are not used by next (Flask >2 drops support for Py2) Packages used by next:
    • flask-sqlalchemy
    • inspire-dojson
  3. Update following packages on hep https://github.com/cern-sis/issues-inspire/issues/256#issue-1632074871 and our forks: invenio-records-rest and invenio-oaiserver https://github.com/inspirehep/invenio-records-rest/pull/23 https://github.com/inspirehep/invenio-oaiserver/pull/3