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

Fix #3 support elasticsearch-dsl-py v6.4 and fix bug in es-list - PD-25495 #97

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

codekiln
Copy link
Contributor

@codekiln codekiln commented Jul 12, 2023

This PR addresses #3 and #96.

Renamed DEMDocType to DEMDocument to reflect the underlying change in elasticsearch-dsl-py 6.2.

codekiln added 6 commits July 10, 2023 16:27
 mn/#3-support-latest-elasticsearch-dsl-6
 mn/#3-support-latest-elasticsearch-dsl-6
 mn/#3-support-latest-elasticsearch-dsl-6
 mn/#3-support-latest-elasticsearch-dsl-6
 mn/#3-support-latest-elasticsearch-dsl-6
* fixes failing test in elasticsearch-dsl-py 6.4
 relative to 6.1: `test_newer_flag`

 mn/#3-support-latest-elasticsearch-dsl-6
@codekiln codekiln changed the title Fix #3 support latest elasticsearch dsl 6 Fix #3 support elasticsearch-dsl-py v6.4 Jul 12, 2023
@codekiln codekiln changed the title Fix #3 support elasticsearch-dsl-py v6.4 Fix #3 support elasticsearch-dsl-py v6.4 and fix bug in es-list Jul 12, 2023
@codekiln codekiln requested review from kofic and aHardReset July 12, 2023 20:33
if index is None:
index = self.get_dem_index().get_es_index_name()
if index is None:
index = super(DEMDocType, self)._get_index(index, required)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main workaround needed to get this to work in v6.2+

codekiln added 2 commits July 12, 2023 17:06
 mn/#3-support-latest-elasticsearch-dsl-6
 mn/#3-support-latest-elasticsearch-dsl-6
…t-elasticsearch-dsl-6

# Conflicts:
#	Makefile
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #97 (b12fd8c) into master (8b33c3d) will increase coverage by 0.04%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
+ Coverage   72.02%   72.06%   +0.04%     
==========================================
  Files          20       20              
  Lines        1594     1600       +6     
  Branches      243      244       +1     
==========================================
+ Hits         1148     1153       +5     
  Misses        358      358              
- Partials       88       89       +1     
Impacted Files Coverage Δ
...jango_elastic_migrations/management/commands/es.py 86.00% <ø> (ø)
...lastic_migrations/management/commands/es_update.py 80.65% <ø> (ø)
django_elastic_migrations/models.py 71.84% <ø> (ø)
django_elastic_migrations/indexes.py 74.44% <68.75%> (-0.04%) ⬇️
django_elastic_migrations/__init__.py 67.65% <100.00%> (ø)
django_elastic_migrations/exceptions.py 100.00% <100.00%> (ø)
..._elastic_migrations/management/commands/es_list.py 95.74% <100.00%> (+1.99%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@codekiln codekiln changed the title Fix #3 support elasticsearch-dsl-py v6.4 and fix bug in es-list Fix #3 support elasticsearch-dsl-py v6.4 and fix bug in es-list - PD-25495 Jul 13, 2023
 mn/#3-support-latest-elasticsearch-dsl-6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants