Skip to content

Commit

Permalink
Replace old ingest inspector URLs with new ones (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
StepanBrychta committed Jul 3, 2024
1 parent 0d69500 commit ac1d9a1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion monitoring/daily_reporter/src/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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- <https://wellcome-ingest-inspector.glitch.me/ingests/{i['id']}|`{i['id']}`> – {i['space']}/{i['externalIdentifier']}"
result += f"\n- <https://ingest-inspector.wellcomecollection.org/ingests/{i['id']}|`{i['id']}`> – {i['space']}/{i['externalIdentifier']}"
if i["version"]:
result += "/" + i["version"]

Expand Down
2 changes: 1 addition & 1 deletion monitoring/daily_reporter/src/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
{% for ingest in ingests_by_status[label].get(classification) | sort(attribute="lastModifiedDate", reverse=True) %}
<tr class="status-{{ ingest.status }}">
<td class="ingest_id">
<a href="https://wellcome-ingest-inspector.glitch.me/ingests/{{ ingest.id }}">{{ ingest.id }}</a></td>
<a href="https://ingest-inspector.wellcomecollection.org/ingests/{{ ingest.id }}">{{ ingest.id }}</a></td>
<td>{{ ingest.space }}</td>
<td>{{ ingest.externalIdentifier }}</td>
<td>{{ ingest.version or "(no version)" }}</td>
Expand Down
2 changes: 1 addition & 1 deletion monitoring/end_to_end_bag_test/src/end_to_end_bag_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
2 changes: 1 addition & 1 deletion scripts/ss_get_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/ss_retry_unpacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit ac1d9a1

Please sign in to comment.