Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,13 @@ configurations: # verified, copy-pasteable configurations
- `display_name` is normalised for the catalog: no `(chapkit)` suffix (every
listed model is a chapkit service), and never a raw repository name.
- `channels.stable` must point at a version with `status: verified`.
- `attribution.author` credits the people who built the model. When the Chap
team packaged someone else's model as a chapkit service, say so in the
author line — `Author (adapted by Chap team)`. No personal contact
details: the listing carries no e-mail addresses or GitHub handles.
- `attribution.author` credits the people who built the model. Preserve an
author's requested wording. Otherwise, when the Chap team packaged someone
else's model as a chapkit service, use `Author (adapted by Chap team)`.
Affiliation markers can be Unicode superscripts (¹, ²); multiple affiliation
lines go in `attribution.organization` as a YAML literal block (`|-`).
No personal contact details: the listing carries no e-mail addresses or
GitHub handles.
- `versions[].verified_by` lists the three approving maintainers of the PR
that added the pin. `[]` on a verified pin means the pin was verified by
the merge gate itself without named approvals on record — true for the
Expand Down
7 changes: 5 additions & 2 deletions models/chapkit_ghr_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ source:
runtime_image: ghcr.io/dhis2-chap/chapkit-r-inla

attribution:
author: Global Health Resilience group, BSC (adapted by Chap team)
organization: Barcelona Supercomputing Center
author: >-
Carles Milà¹, Ania B. Kawiecki¹, Rachel Lowe¹,² on behalf of the BSC Global Health Resilience group
organization: |-
¹ Barcelona Supercomputing Center (BSC), Barcelona, Spain
² Catalan Institution for Research & Advanced Studies (ICREA), Barcelona, Spain
citation: >-
Lowe R, Lee SA, O'Reilly KM et al. (2021) Combined effects of
hydrometeorological hazards and urbanisation on dengue risk in Brazil: a
Expand Down
4 changes: 2 additions & 2 deletions site/src/components/author.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function AuthorLine({
{author}
</div>
{organization ? (
<div className="truncate text-[13px] text-ink-2">{organization}</div>
<div className="whitespace-pre-line text-[13px] text-ink-2">{organization}</div>
) : null}
</div>
);
Expand Down Expand Up @@ -43,7 +43,7 @@ export function AuthorPanel({
{author}
</div>
{organization ? (
<div className="mt-1 text-[15px] text-ink-2">{organization}</div>
<div className="mt-1 whitespace-pre-line text-[15px] text-ink-2">{organization}</div>
) : null}
{originalSource ? (
<a
Expand Down
11 changes: 11 additions & 0 deletions site/src/lib/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ describe("the real registry", () => {
}
});

it("preserves BSC's requested GHRmodel credit and affiliation lines", () => {
const ghr = registry.models.find((m) => m.id === "chapkit_ghr_model")!;
expect(ghr.attribution.author).toBe(
"Carles Milà¹, Ania B. Kawiecki¹, Rachel Lowe¹,² on behalf of the BSC Global Health Resilience group",
);
expect(ghr.attribution.organization).toBe(
"¹ Barcelona Supercomputing Center (BSC), Barcelona, Spain\n" +
"² Catalan Institution for Research & Advanced Studies (ICREA), Barcelona, Spain",
);
});

it("lists chapkit services only — every model has a published image", () => {
for (const model of registry.models) {
expect(model.source.image).toMatch(/^ghcr\.io\//);
Expand Down