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

Update elasticsearch transformer to v1 grammar use BaseTransformer #613

Merged
merged 5 commits into from
Dec 30, 2020

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Nov 25, 2020

This PR is blocked by (and currently contains commits from #286), and supersedes #309 by updating the elasticsearch transformer to work with the final v1.0.0 grammar.

The aim beyond this PR is then to move some of the handling of e.g. aliases and field types into the base transformer so that all transformers can benefit.

@ml-evs ml-evs added the transformer/Elasticsearch Related to filter transformer for Elasticsearch label Nov 25, 2020
@ml-evs ml-evs added the blocked For issues/PRs that are blocked by required changes/clarifications to the specification. label Nov 25, 2020
@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #613 (74c77e5) into master (e15ae92) will increase coverage by 0.03%.
The diff coverage is 90.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #613      +/-   ##
==========================================
+ Coverage   93.27%   93.31%   +0.03%     
==========================================
  Files          60       61       +1     
  Lines        3257     3304      +47     
==========================================
+ Hits         3038     3083      +45     
- Misses        219      221       +2     
Flag Coverage Δ
project 93.31% <90.96%> (+0.03%) ⬆️
validator 65.95% <1.29%> (-0.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
optimade/filtertransformers/elasticsearch.py 89.16% <90.84%> (+1.18%) ⬆️
optimade/filtertransformers/__init__.py 100.00% <100.00%> (ø)
optimade/filtertransformers/base_transformer.py 98.73% <0.00%> (+1.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e15ae92...74c77e5. Read the comment docs.

@ml-evs ml-evs removed the blocked For issues/PRs that are blocked by required changes/clarifications to the specification. label Dec 7, 2020
@ml-evs ml-evs force-pushed the ml-evs/rebasing_elasticsearch branch from 508dfb6 to 4df420c Compare December 7, 2020 19:51
@ml-evs ml-evs force-pushed the ml-evs/rebasing_elasticsearch branch 2 times, most recently from cbfa042 to eecf436 Compare December 16, 2020 21:59
markus1978 and others added 2 commits December 16, 2020 22:00
@ml-evs ml-evs force-pushed the ml-evs/rebasing_elasticsearch branch from 3bebc72 to c6afdd9 Compare December 16, 2020 22:04
@ml-evs ml-evs changed the title Update elasticsearch transformer Update elasticsearch transformer to v1 grammar use BaseTransformer Dec 16, 2020
@ml-evs
Copy link
Member Author

ml-evs commented Dec 24, 2020

As this PR was initially reviewed by @CasperWA and myself and written by @markus1978 over at #309, with only tests and restructuring added by me in this PR, I think I'll merge it later today so we have a stable base to work on promoting elasticsearch as a fully-fledged backend.

@ml-evs ml-evs merged commit b2a3ac2 into master Dec 30, 2020
@ml-evs ml-evs deleted the ml-evs/rebasing_elasticsearch branch December 30, 2020 12:21
ml-evs added a commit that referenced this pull request Dec 30, 2020
)

* Adapted the elastic transformer for the v0.10.1 grammar.

Co-authored-by: Markus Scheidgen <markus.scheidgen@gmail.com>

* Renaming of elastic transformer class, minor fixes and typos from code review

Co-authored-by: Casper Welzel Andersen <casper.andersen@epfl.ch>

* Rebased elasticsearch onto new BaseTransformer and update tests

Co-authored-by: Markus Scheidgen <markus.scheidgen@gmail.com>
Co-authored-by: Casper Welzel Andersen <casper.andersen@epfl.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transformer/Elasticsearch Related to filter transformer for Elasticsearch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants