Skip to content

Commit

Permalink
Merge branch 'main' into 4678-update-rest-api-changlog
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo authored Nov 30, 2024
2 parents 9ae38cb + 649464f commit 74f17cf
Show file tree
Hide file tree
Showing 16 changed files with 585 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ jobs:
- name: Watch cl-es-sweep-indexer rollout status
run: kubectl rollout status -n ${{ env.EKS_NAMESPACE }} deployment/cl-es-sweep-indexer

- name: Rollout cl-iquery-probe
run: kubectl set image -n ${{ env.EKS_NAMESPACE }} deployment/cl-iquery-probe cl-iquery-probe=freelawproject/courtlistener:${{ steps.vars.outputs.sha_short }}-prod
- name: Watch cl-iquery-probe rollout status
run: kubectl rollout status -n ${{ env.EKS_NAMESPACE }} deployment/cl-iquery-probe


# Watch "cronjobs" in k9s
- name: Update cronjobs
Expand Down
14 changes: 7 additions & 7 deletions cl/api/templates/migration-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ <h4 class="v-offset-below-3">
<div class="col-xs-12 col-md-8 col-lg-6">
<h1 id="about">V4 API Migration Guide</h1>
<p class="overview lead">
After several years of planning and development we have released v4 of our APIs.
After several years of planning and development, we have released v4 of our APIs.
</p>
<p>
This upgrade responds to feedback we have received over the years and should be much better for our users — faster, more featureful, more scalable, and more accurate.
</p>
<p>
Unfortunately, we couldn't make these new APIs completely backwards compatible so this guide explains what's new.
Unfortunately, we couldn't make these new APIs completely backwards compatible, so this guide explains what's new.
</p>

<h2 id="support">Support</h2>
Expand Down Expand Up @@ -71,10 +71,10 @@ <h2 id="timeline-changes">Timeline for Changes</h2>
</p>
<h2 id="what-if-do-nothing">What If I Do Nothing?</h2>
<p>
You might be fine. Most of the database and search APIs are only changing slightly and v3 will be supported for some period of time.
You might be fine. Most of the database and search APIs are only changing slightly, and v3 will be supported for some period of time.
But you should read this guide to see if any changes are needed to your application.
</p>
<p>The remainder of this guide is in three section:</p>
<p>The remainder of this guide is in three sections:</p>
<ul>
<li>New features you can expect</li>
<li>How to migrate database APIs</li>
Expand All @@ -90,7 +90,7 @@ <h3 id="cursor-pagination">Cursor-based pagination</h3>
<h3 id="elasticsearch">ElasticSearch</h3>
<p>v4 of the Search API is powered by ElasticSearch instead of Solr. This is a huge upgrade to our API and search engine.
</p>
<p>Some of the improvements include:</p>
<p>Some improvements include:</p>
<ul>
<li>In v4, all PACER cases are now searchable. In v3 you only got results if a case had a docket entry.
</li>
Expand All @@ -107,12 +107,12 @@ <h3 id="elasticsearch">ElasticSearch</h3>
<li>Camelcase words like "McDonalds" are more searchable.</li>
<li>Highlighting is more consistent and can be disabled for better performance.</li>
</ul>
<li>Emojis and unicode characters are now searchable.</li>
<li>Emojis and Unicode characters are now searchable.</li>
<li>Docket number and other fielded searches are more robust.</li>
<li>Timezone handling is more consistent.</li>
<li>We've added a number of new searchable fields.</li>
</ul>
<p>For more details please<a href="https://free.law/2024/01/18/new-recap-archive-search-is-live/" target="_blank"> see our blog</a>.</p>
<p>For more details, please<a href="https://free.law/2024/01/18/new-recap-archive-search-is-live/" target="_blank"> see our blog</a>.</p>
<h2 id="breaking-changes">Breaking Changes to v3 of the Search API</h2>
<p>We cannot continue running Solr forever, but we can do our best to support v3 of the API. To do this, on <strong>November 25, 2024</strong>,
v3 of the Search API will be upgraded to use ElasticSearch. We expect this to support most uses, but it will cause some breaking changes, as outlined in this section.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def handle(self, *args, **options):
iterations_completed = 0
r = get_redis_interface("CACHE")
testing = True if testing_iterations else False
while True and settings.IQUERY_PROBE_DAEMON_ENABLED:
while True and settings.IQUERY_CASE_PROBE_DAEMON_ENABLED:
for court_id in court_ids:
if r.exists(f"iquery:court_wait:{court_id}"):
continue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ def get_pdfs(
throttle.update_min_items(min_items)

logger.info(
f"Court cycle completed for: {row.court_id}. Current iteration: {cycle_checker.current_iteration}. Sleep 2 seconds "
f"Court cycle completed for: {row.court_id}. Current iteration: {cycle_checker.current_iteration}. Sleep 1 second "
f"before starting the next cycle."
)
time.sleep(2)
time.sleep(1)
logger.info(f"Processing row id: {row.id} from {row.court_id}")
c = chain(
process_free_opinion_result.si(
Expand Down
Loading

0 comments on commit 74f17cf

Please sign in to comment.