Skip to content

[BD-19] Transition to the Elasticsearch 7.8.0 version - #104

Merged
dianakhuang merged 14 commits into
openedx:masterfrom
raccoongang:golub-sergey/BD-19/transition-from-ES1.5-to-ES7
Oct 22, 2020
Merged

[BD-19] Transition to the Elasticsearch 7.8.0 version#104
dianakhuang merged 14 commits into
openedx:masterfrom
raccoongang:golub-sergey/BD-19/transition-from-ES1.5-to-ES7

Conversation

@Golub-Sergey

@Golub-Sergey Golub-Sergey commented Aug 4, 2020

Copy link
Copy Markdown
Contributor

Description: transition from es1.5 to es7. Replaces index courseware_index with doc_types courseware_content and course_info to indexes courseware_content and course_info

Was done:

  • check code coverage and tests passing;
  • update code base;
  • update make file;
  • update travis ci.

Code coverage: 99%

Notes:

  • Changes to the edx-platform which apply edx-search updates

@openedx-webhooks

openedx-webhooks commented Aug 4, 2020

Copy link
Copy Markdown

Thanks for the pull request, @Golub-Sergey! I've created BLENDED-532 to keep track of it in Jira. More details are on the BD-19 project page.

When this pull request is ready, tag your edX technical lead.

@openedx-webhooks openedx-webhooks added blended PR is managed through 2U's blended developmnt program needs triage labels Aug 4, 2020
@stvstnfrd

Copy link
Copy Markdown

@Golub-Sergey I'm trying to run this locally for testing but having difficulty (CC: @dianakhuang).

Would you mind including a write-up of the steps you used to configure this to run in your devstack?

I think I'm running the right code/config everywhere (see below), but first, never got results for any queries and now, after some more manual fiddling, get errors.

I'm using this devstack branch [1] to run this version of search [2] via this version of platform [3].
Is there anything in particular that jumps our re:misconfiguration?
I've tried relying on publish-based index, manually re-indexed, used existing courses, created new courses, but still no luck.

@Golub-Sergey

Copy link
Copy Markdown
Contributor Author

@Golub-Sergey I'm trying to run this locally for testing but having difficulty (CC: @dianakhuang).

Would you mind including a write-up of the steps you used to configure this to run in your devstack?

I think I'm running the right code/config everywhere (see below), but first, never got results for any queries and now, after some more manual fiddling, get errors.

I'm using this devstack branch [1] to run this version of search [2] via this version of platform [3].
Is there anything in particular that jumps our re:misconfiguration?
I've tried relying on publish-based index, manually re-indexed, used existing courses, created new courses, but still no luck.

Hello, @stvstnfrd . Can you please use this version of the edx-platform. I tested locally this changes and it works and searches correctly. This branch was forked from #104 branch. Current version of edx-search lib without platform changes produces errors.

@Golub-Sergey
Golub-Sergey force-pushed the golub-sergey/BD-19/transition-from-ES1.5-to-ES7 branch from bec4646 to 6d218df Compare September 18, 2020 09:12

@stvstnfrd stvstnfrd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Golub-Sergey A few questions/suggestions, but I have this running successfully in my devstack now :)

Comment thread Makefile Outdated
Comment thread search/views.py
Comment thread docker-compose.yml
services:

test_elasticsearch:
image: elasticsearch:7.8.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hrmm, is there any way to (easily) keep this in sync w/ the value listed in the requirements file(s) below?
Otherwise, this will probably fall out of step.

I'm not sure how/if this is handled elsewhere in the ecosystem...

Not a deal-breaker, just curious...

Comment thread search/api.py
Comment thread search/tests/test_views.py
Comment thread search/elastic.py Outdated
@Golub-Sergey

Copy link
Copy Markdown
Contributor Author

@stvstnfrd Hello, I recreated pr to platfrom which applies edx-search lib changes to the edx-platform
https://github.com/edx/edx-platform/pull/25081
Can you, please, restart ci

@timmc-edx

Copy link
Copy Markdown

@stvstnfrd stvstnfrd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Golub-Sergey Okay, this looks good to me. Before merge, we'll want to bump the version number in setup.py. Given these breaking changes, we should probably bump up to a 2.0.0 release. Thoughts?

@Golub-Sergey

Copy link
Copy Markdown
Contributor Author

@Golub-Sergey Okay, this looks good to me. Before merge, we'll want to bump the version number in setup.py. Given these breaking changes, we should probably bump up to a 2.0.0 release. Thoughts?

Thats a good idea. Done.

@dianakhuang
dianakhuang merged commit 711e642 into openedx:master Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blended PR is managed through 2U's blended developmnt program merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants