-
Notifications
You must be signed in to change notification settings - Fork 106
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
Refactor Elasticsearch management commands #5367
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #5367 +/- ##
===========================================
- Coverage 85.79% 85.57% -0.23%
===========================================
Files 81 81
Lines 8181 8201 +20
===========================================
- Hits 7019 7018 -1
- Misses 1162 1183 +21
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
64ee917
to
e7ac02b
Compare
Since we are removing the initialize_current_legal_docs from the CLI, should we remove it from the README along with initialize_archived_mur_docs? |
Yes, Thank you reminder. |
8387413
to
57ab5df
Compare
018d279
to
20c25a1
Compare
2429aa4
to
d528d8e
Compare
Test advisory_opinion:
original_alias and original_index, swapping_index are not indexes. Rephrase the log message to original index and alias, swapping index etc...
|
8cd230a
to
fef42ea
Compare
Move all the log msg inside the condition
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fec-jli Thanks a bunch for refactoring elasticsearch service code and fixing many underlying bug in existing code. It's a rough task but you made it look easy. All tasks worked well except update_mapping_and_reload_legal_data case_index
and update_mapping_and_reload_legal_data
due to elasticsearch v7 index limitations which we can revisit when we upgrade to elasticsearch v8. Overall, you did an amazing job @fec-jli
fef42ea
to
cf6c3be
Compare
Note:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incredible work, @fec-jli. Thank you so much! All worked well for me.
Summary (required)
This PR refactor all ES management commands, fix some function bugs, make function reliable and easy to maintain in the future.
Also fix case document category description display bug #5369
Completion criteria
AutoAdd/update Case, AO test casesRequired reviewers
1-2 devs
Impacted areas of the application
Elasticsearch management (index, upload legal data, repository, snapshot.)
Update ES mapping and reload data flowchart
How to test
Part One: test partial commands on local
http://127.0.0.1:5000/v1/legal/search/
Part Two: deploy test branch on dev and repeat Part One test, then test all other commands(tasks), you can ignore repository management commands
Increase api instance first:
cf scale api -i 2 -m 2G