Skip to content

Commit 27b3c6a

Browse files
Events Page (#82)
1 parent eeb15b1 commit 27b3c6a

File tree

11 files changed

+94
-2
lines changed

11 files changed

+94
-2
lines changed

docs/_includes/events.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2>Events Consumed</h2>
1313

1414
<li>
1515
<a href="{{event.url | relative_url}}">
16-
{{ event.title }} - {{ event.type }}
16+
{{ event.nice_name }} - {{ event.title }} - {{ event.type }}
1717
<ul>
1818
{% for producer in producedby %}
1919
<li>
@@ -45,7 +45,7 @@ <h2>Events Produced</h2>
4545

4646
<li>
4747
<a href="{{event.url | relative_url}}">
48-
{{ event.title }} - {{ event.type }}
48+
{{ event.nice_name }} - {{ event.title }} - {{ event.type }}
4949
</a>
5050
<ul>
5151
{% for consumer in consumedby %}

docs/collections/_events/mesh-file-found.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: mesh-file-found
33
type: uk.nhs.notify.digital.letters.mesh.file.found.v1
44
nice_name: MeshFileFound
5+
service: Mesh Services
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/collections/_events/mesh-file-saved.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: mesh-file-saved
33
type: uk.nhs.notify.digital.letters.mesh.file.saved.v1
44
nice_name: MeshFileSaved
5+
service: Mesh Services
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/collections/_events/mesh-status-report-sent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: mesh-status-report-sent
33
type: uk.nhs.notify.digital.letters.mesh.status.report.sent.v1
44
nice_name: StatusReportSent
5+
service: Mesh Services
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/collections/_events/mesh-timer-schedule-expired.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: mesh-timer-schedule-expired
33
type: uk.nhs.notify.digital.letters.mesh.schedule.exipred.v1
44
nice_name: ScheuleRetrieveMeshFileListTimerExpired
5+
service: Mesh Services
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/collections/_events/pdm-file-saved.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: pdm-file-saved
33
type: uk.nhs.notify.digital.letters.pdm.file.saved.v1
44
nice_name: FileSaved
5+
service: PDM Services
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/collections/_events/pdm-file-uploaded.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: pdm-file-uploaded
33
type: uk.nhs.notify.digital.letters.pdm.file.uploaded.v1
44
nice_name: FileUploaded
5+
service: PDM Services
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/collections/_events/reporting-daily-report-generated.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
title: reporting-daily-report-generated
3+
nice_name: DailyReportGenerated
4+
service: Digital Letter Status Reports
35
type: uk.nhs.notify.digital.letters.reporting.daily.report.generated.v1
46
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
57
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json

docs/collections/_events/timer-time-expired.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: timer-time-expired
33
type: uk.nhs.notify.digital.letters.timer.time.exipred.v1
44
nice_name: TimerExpired
5+
service: Event Bus
56
schema_envelope: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event.schema.json
67
schema_data: https://nhsdigital.github.io/nhs-notify-standards/cloudevents/nhs-notify-example-event-data.schema.json
78
---

docs/events.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
# Feel free to add content and custom Front Matter to this file.
3+
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
4+
5+
layout: page
6+
title: Events
7+
parent: Home
8+
has_children: true
9+
nav_order: 1.1
10+
description: Events
11+
summary: Events
12+
is_not_draft: false
13+
last_modified_date: 2024-05-28
14+
owner: NHS Notify
15+
author: Ross Buggins
16+
---
17+
18+
{% assign sorted_events = site.events | group_by: "service" %}
19+
{% assign serviceSorteds = sorted_events | sort: "name" %}
20+
21+
<table>
22+
<tr>
23+
<th>Service</th>
24+
<th>Nice Name</th>
25+
<th>Title</th>
26+
<th>Type</th>
27+
<th>Produced By</th>
28+
<th>Consumed By</th>
29+
<th>Envelope</th>
30+
<th>Data</th>
31+
</tr>
32+
33+
{% for service_sorted in serviceSorteds %}
34+
{% assign nameSortedService = service_sorted.items | sort: "nice_name" %}
35+
{% for event in nameSortedService %}
36+
<tr>
37+
<td>
38+
{% assign service = site.pages | where_exp:"service", "service.title == event.service" | first %}
39+
<a href="{{service.url | relative_url}}">{{ event.service }}</a>
40+
41+
</td>
42+
<td>
43+
<a href="{{event.url | relative_url}}">{{ event.nice_name }}</a>
44+
</td>
45+
<td>
46+
<a href="{{event.url | relative_url}}">{{ event.title }}</a>
47+
</td>
48+
<td>
49+
<a href="{{event.url | relative_url}}">{{ event.type }}</a>
50+
</td>
51+
<td>
52+
{% assign producedby = site.pages | where_exp:"producer", "producer.events-raised contains event.title and producer.c4type == 'code'" %}
53+
<ul>
54+
{% for producer in producedby %}
55+
<li>
56+
<a href="{{producer.url | relative_url}}">{{ producer.title }}</a>
57+
</li>
58+
{% endfor %}
59+
</ul>
60+
</td>
61+
<td>
62+
{% assign consumedby = site.pages | where_exp:"consumer", "consumer.events-consumed contains event.title and consumer.c4type == 'code'" %}
63+
<ul>
64+
{% for consumer in consumedby %}
65+
<li>
66+
<a href="{{consumer.url | relative_url}}">{{ consumer.title }}</a>
67+
</li>
68+
{% endfor %}
69+
</ul>
70+
</td>
71+
<td>
72+
<a href="{{ event.schema_envelope}}">{{ event.schema_envelope | split: "/" | last}}</a>
73+
</td>
74+
<td>
75+
<a href="{{ event.schema_data }}">{{ event.schema_data | split: "/" | last}}</a>
76+
</td>
77+
</tr>
78+
{% endfor %}
79+
{% endfor %}
80+
</table>

0 commit comments

Comments
 (0)