-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
feat(search): Rips out SOLR indexing pipeline #4791
Conversation
Semgrep found 4
You are using environment variables inside django app. Use |
This commit streamlines the merge_rss_feed_contents helper by removing the unnecessary return of Recap document IDs. It now returns only the relevant tuples containing docket IDs.
This commit streamlines the send_alerts_and_webhooks method by removing the return of Recap document IDs. It now returns an empty list to indicate successful completion.
This commit removes the unnecessary type import from Scorched.
This commit removes the helper method for building SOLR date ranges, as it's no longer needed.
14762fb
to
05d233d
Compare
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.
Nothing major. A couple more things we can delete, one feature we should upgrade, and I think we're there. Pretty easy to review, really.
cl/citations/tasks.py
Outdated
# transcation block. Trigger a single update as well, if | ||
# required. |
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.
This whole step is removed, so we can remove the comment about it.
# transcation block. Trigger a single update as well, if | |
# required. | |
# transcation block. |
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.
alright!
|
||
# Opinion | ||
search_list = [] | ||
text_template = loader.get_template("indexes/opinion_text.txt") |
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.
I think everything in the cl.search.templates.indexes directory can be removed, right?
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.
That's correct. I'll remove the directory
@@ -17,15 +16,13 @@ def health_check(request: HttpRequest) -> JsonResponse: | |||
"""Check if we can connect to various services.""" | |||
is_redis_up = check_redis() | |||
is_postgresql_up = check_postgresql() | |||
is_solr_up = check_solr() |
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.
Let's add an Elastic health check here, no?
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.
Sure! That's a great idea.
@mlissner I've implemented the changes you suggested. |
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.
AWESOME! 💀
This PR addresses #4726
This PR includes the following changes:
Removes
scorched
dependency.Updates the settings module to clean up SOLR env vars.
Removes Solr health check
Removes custom
save
andas_search_dict
methods from models.Refactors AudioFactory class to stop using the
index
argument in hooks.Updates admin classes to remove custom methods that were previously used to index data to Solr.
Removes Solr-specific admin utility functions.
Removes the normalize_search_dicts helper.
Renames
solr_list
toextract_solr_field_values
to better reflect its purpose.Removes the following test classes:
EmptySolrTestCase
,SolrTestCase
andIndexedSolrTestCase
Deletes the following commands:
add_parallel_citations.py
import_columbia.py
cl_get_ftm_ids.py
cl_update_index.py