Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2186 from bensteinberg/update-es-71716
Browse files Browse the repository at this point in the history
Update Elasticsearch
  • Loading branch information
bensteinberg authored Jan 8, 2024
2 parents e3a6377 + 4c7a358 commit 00bb5a8
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion capstone/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
redis:
image: redis:6.0.15
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.15
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.16
environment:
- node.name=es01
- bootstrap.memory_lock=true
Expand Down
6 changes: 5 additions & 1 deletion capstone/scripts/tests/test_cap_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ def test_export_cap_static(reset_sequences, case_factory, jurisdiction_factory,
with django_assert_num_queries(select=8):
summarize_cap_static(str(tmp_path))

# fix up last_updated timestamps for consistent comparison
# fix up last_updated and date_added timestamps for consistent comparison
for path in tmp_path.rglob('*/*/*/**/*.json'):
path.write_text(re.sub(
r'"last_updated": "[^"]+"',
'"last_updated": "2023-12-01T01:01:01.0000001+00:00"',
path.read_text()))
path.write_text(re.sub(
r'"date_added": "[^"]+"',
'"date_added": "2023-12-01"',
path.read_text()))

# compare temp dir to test_data/cap_static
cap_static_dir = Path(settings.BASE_DIR, 'test_data/cap_static')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -76,7 +76,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -118,7 +118,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -76,7 +76,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -118,7 +118,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"analysis": {},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -76,7 +76,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -118,7 +118,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -76,7 +76,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down Expand Up @@ -118,7 +118,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"last_updated": "2023-12-01T01:01:01.0000001+00:00",
"provenance": {
"date_added": "2023-12-05",
"date_added": "2023-12-01",
"source": "Harvard",
"batch": "2018"
},
Expand Down

0 comments on commit 00bb5a8

Please sign in to comment.