Problem:
- Threads not being show when opening ticket
- No JS or other apparent UI errors
Error in Apache logs:
#!/usr/bin/env python3 | |
import csv, ijson, sys | |
items = ijson.items(sys.stdin, "data.documentaryUnits.items.item") | |
csvout = csv.writer(sys.stdout, quoting = csv.QUOTE_MINIMAL) | |
for item in items: | |
for description in item["descriptions"]: | |
row = [ |
query exampleQuery($cursor: Cursor) { | |
repositories(after: $cursor) { | |
items { | |
id | |
description { | |
name | |
} | |
} | |
pageInfo { | |
nextPage |
#!/usr/bin/env python3 | |
# Fetch id, name, and scope-content data for documentary units | |
# and write as tab-separated values. | |
import sys, requests, csv, json | |
if len(sys.argv) < 1: | |
sys.stderr.write("usage: history.py <initial-api-url>\n") | |
sys.exit(1) |
#!/usr/bin/env python3 | |
# Fetch id, name, and scope-content data for documentary units | |
# and write as tab-separated values. | |
import sys, requests, csv, urllib | |
if len(sys.argv) < 1: | |
sys.stderr.write("usage: scopecontent.py <initial-api-url>\n") | |
sys.exit(1) |
#!/usr/bin/env python | |
import sys, requests | |
if len(sys.argv) < 1: | |
print("usage: scopecontent.py <url>") | |
sys.exit(1) | |
def scope_content(url): | |
r = requests.get(url, headers={"Authorization": "Bearer EHRI-Dev"}) |
implicit def longMapReads[T](implicit r: Reads[T]): Reads[Map[Long, T]] = Reads[Map[Long, T]] { jv => | |
jv.validate[Map[String, T]].flatMap { obj => | |
obj.foldLeft[JsResult[Map[Long,T]]](JsSuccess(Map.empty)) { | |
case (JsSuccess(o, p), (k, v)) => | |
try { | |
JsSuccess(o + (k.toLong -> v)) | |
} catch { | |
case e: IllegalArgumentException => | |
val e = ValidationError(s"Value: '$k' cannot be converted to a Long") | |
JsError(p, e) |
package controllers; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.CompletionStage; | |
import akka.actor.ActorRef; | |
import akka.actor.ActorSystem; | |
import akka.actor.Props; | |
import akka.actor.UntypedActor; | |
import com.google.inject.Inject; |
# First, log into the EHRI staging server | |
# Actually open a bunch of shells | |
# In one of them, tail the following file, which will give us some information | |
# about what goes wrong when something inevitably goes wrong | |
tail -f /opt/webapps/neo4j-version/data/log/console.log | |
# Next, in another shell, copy the file(s) to be ingested to the server | |
# and place them in /opt/webapps/data/import-data/de/de-002409 | |
# (de-002409 is ITS's EHRI ID.) |
2744470 / 2053936 | |
text/RG-50.030.0001_trs_en.txt Warsaw 0.009380871 | |
text/RG-50.030.0001_trs_en.txt 19 0.002966492 | |
text/RG-50.030.0001_trs_en.txt Varka 0.0020976267 | |
text/RG-50.030.0001_trs_en.txt Gesha 0.0020976267 | |
text/RG-50.030.0001_trs_en.txt Slovakia 0.0020976267 | |
text/RG-50.030.0001_trs_en.txt Amy 0.0020976267 | |
text/RG-50.030.0001_trs_en.txt wasa 0.0020976267 | |
text/RG-50.030.0001_trs_en.txt upa 0.0020976267 | |
text/RG-50.030.0002_trs_en.txt Lodz 0.006228336 |