pygeoapi
pygeoapi copied to clipboard
[WIP] upgrade Elasticsearch support to 8
Overview
This PR upgrades pygeoapi Elasticsearch support to version 8, and drops support for ES 7 and earlier.
Related Issue / Discussion
None
Additional Information
None
Contributions and Licensing
(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)
- [x] I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution.
- [x] I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines
@KoalaGeo any idea why the mainline CI did not run here?
@KoalaGeo any idea why the mainline CI did not run here?
'lint workflow runs on all push and PR to master
build
workflow only runs on the master
branch
containers
only runs when build
completes
https://github.com/elastic/elasticsearch-dsl-py/issues/1569
FYI this PR is now ready. I am keeping as WIP to sort out the following issues with Python package dependencies:
- elasticsearch-dsl is still bound to
<8
while elasticsearch supports 8+. Installing elasticsearch-dsl after elasticsearch will downgrade the latter to<8
- PostgreSQL tests fail given SQLAlchemy 2 which is installed via pygeofilter
As a result, in CI, I have done the following as workarounds AFTER the main requirements-*txt
files are installed in .github/workflows/main.yml
:
- upgrade
elasticsearch
- downgrade
SQLAlchemy
Questions:
- @francbartoli is elasticsearch-dsl something we will support long term? See https://github.com/elastic/elasticsearch-dsl-py/issues/1569
- @KoalaGeo should we update the PostgreSQL plugin (in another PR)?
cc @kalxas
Proposing the following:
- merge PR on approval
- open an issue on elasticsearch-dsl support
- open an issue on SQLAlchemy 2 support
Thoughts @francbartoli @kalxas @doublebyte1 @webb-ben ?
Issues filed:
- https://github.com/geopython/pygeoapi/issues/1123
- https://github.com/geopython/pygeoapi/issues/1124
I agree with @francbartoli
Maybe we could cut a release before merging this, what do you think @kalxas?
Thinking more, the safest bet is cutting a release prior to merging this PR. We can determine what kind of documentation is needed at that point depending on elasticsearch-dsl
status and our use of same.
ok, a new release is now done. Also the SQLAlchemy issue is fixed on master