From ac1d9a194d86c066fb7cf3f72d04984f16e4bcbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Brychta?= Date: Wed, 3 Jul 2024 13:09:28 +0100 Subject: [PATCH] Replace old ingest inspector URLs with new ones (#1130) --- monitoring/daily_reporter/src/slack.py | 2 +- monitoring/daily_reporter/src/templates/report.html | 2 +- monitoring/end_to_end_bag_test/src/end_to_end_bag_test.py | 2 +- scripts/ss_get_ingest.py | 2 +- scripts/ss_retry_unpacking.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/monitoring/daily_reporter/src/slack.py b/monitoring/daily_reporter/src/slack.py index d69771b64e..ac3afe5058 100644 --- a/monitoring/daily_reporter/src/slack.py +++ b/monitoring/daily_reporter/src/slack.py @@ -29,7 +29,7 @@ def _get_slack_message(label, ingests): if ingests.get(status, []): result += "\n" + status.title() + ":" for i in ingests[status][:15]: - result += f"\n- – {i['space']}/{i['externalIdentifier']}" + result += f"\n- – {i['space']}/{i['externalIdentifier']}" if i["version"]: result += "/" + i["version"] diff --git a/monitoring/daily_reporter/src/templates/report.html b/monitoring/daily_reporter/src/templates/report.html index 0b97003140..270d5a66cd 100644 --- a/monitoring/daily_reporter/src/templates/report.html +++ b/monitoring/daily_reporter/src/templates/report.html @@ -169,7 +169,7 @@ {% for ingest in ingests_by_status[label].get(classification) | sort(attribute="lastModifiedDate", reverse=True) %} - {{ ingest.id }} + {{ ingest.id }} {{ ingest.space }} {{ ingest.externalIdentifier }} {{ ingest.version or "(no version)" }} diff --git a/monitoring/end_to_end_bag_test/src/end_to_end_bag_test.py b/monitoring/end_to_end_bag_test/src/end_to_end_bag_test.py index 702ecaea2b..8cc219b08a 100755 --- a/monitoring/end_to_end_bag_test/src/end_to_end_bag_test.py +++ b/monitoring/end_to_end_bag_test/src/end_to_end_bag_test.py @@ -53,7 +53,7 @@ def main(*args): print(ingest_location) ingest_id = ingest_location.split("/")[-1] - return f"https://wellcome-ingest-inspector.glitch.me/ingests/{ingest_id}" + return f"https://ingest-inspector.wellcomecollection.org/ingests/{ingest_id}" if __name__ == "__main__": diff --git a/scripts/ss_get_ingest.py b/scripts/ss_get_ingest.py index c3535cc4e9..d4e1dee581 100755 --- a/scripts/ss_get_ingest.py +++ b/scripts/ss_get_ingest.py @@ -7,7 +7,7 @@ The script will attempt to find the ingest ID in both the prod and staging APIs. For most use cases, you can use the web inspector: -https://wellcome-ingest-inspector.glitch.me/ +https://ingest-inspector.wellcomecollection.org This script is useful if you need to see the raw JSON response direct from the ingests API. We don't expose the raw JSON online -- it's publicly visible, diff --git a/scripts/ss_retry_unpacking.py b/scripts/ss_retry_unpacking.py index e7593dc51f..1b5d2d8686 100755 --- a/scripts/ss_retry_unpacking.py +++ b/scripts/ss_retry_unpacking.py @@ -65,4 +65,4 @@ def create_context(ingest): resp = sns.publish(TopicArn=topic_arn, Message=json.dumps(payload)) print(resp) - webbrowser.open(f"https://wellcome-ingest-inspector.glitch.me/ingests/{ingest_id}") + webbrowser.open(f"https://ingest-inspector.wellcomecollection.org/ingests/{ingest_id}")