Need an improved depiction prioritization and registration workflow #27

Open
opened 2026-06-03 14:00:47 +00:00 by jsheunis · 0 comments
Member

We have the situation that we've predicted for a while, where there are multiple depictions for the same person, and one is the preferred one. The current depiction registration workflow does not deal well with that.

I've updated the get-depiction-urls script (locally) to also log the submission date of the metadata record. This is what the script output looks like now (this is already information in the public domain):

portrait	persons/adina-wagner	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s31538--54607e9bd4e519071f8d8997bb4f1ed71a1213227c6560a3ac217429d821c9c7.png	2026-03-19T16:39:46.703510
portrait	persons/alex-waite	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s52647--c569a3b27c63f2abcd02dd456307b0dfaf41e1e627b21900658277a455c82af7.png	2026-06-02T11:51:25.688201
portrait	persons/benjamin-poldrack	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s54301--64368969c42d6d26ff6babadd02a428f14b210820d0e1c5a27e9926ebee97597.png	2026-06-02T11:51:25.879831
portrait	persons/christian-moench	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s41221--51cd49c8cca91bf1000e81f04ba3b27db8824a08a07878475d02118b856d05bd.png	2026-06-02T11:51:25.965860
portrait	persons/jenna-swarthout-goddard	webp	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s85768--181271df5a78bfb1eb62eda48a8e84d586f790348bd775cf210fc8f14b5455cd.webp	2026-03-31T12:03:41.413840
portrait	persons/laura-waite	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s39984--2f4aa139afd846b1ed4535eb7194d20fd1f6b591e21dd236b4578822c164be2e.png	2026-06-02T11:51:25.790885
portrait	persons/michael-hanke	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s43712--473a738edd10c976c664d883ade337048e1834ea5007a2212d6521b021109cd3.png	2026-05-18T15:19:08.379141
portrait	persons/michal-szczepanik	webp	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s22160--ca2bf500455a30b926c4ae46dd01e397f37698407479cd518ae5c79af4233beb.webp	2026-03-23T16:03:55.185852
portrait	persons/michal-szczepanik	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s75564--6c3b31baff7ec0b38032a43fd6b41075e71f0de4371eefdc0c0a85988541d7af.png	2026-06-02T12:25:07.929831
portrait	persons/stephan-heunis	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s48879--ad72b88b3284f79b1e2ae32c75db8482a1edaf2b2300ee220b1eaaf2cef69c13.png	2026-02-26T11:16:21.664396
portrait	persons/stephan-heunis	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s48879--ad72b88b3284f79b1e2ae32c75db8482a1edaf2b2300ee220b1eaaf2cef69c13.png	2026-02-26T11:16:21.664396
portrait	persons/venkatesh-hariharapura-shivashankar	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s113489--241100e1adcffd2022cd3a376592b446736cb4e6d310e78f6c99bccbdf9f4425.png	2026-06-02T12:25:08.112002
portrait	persons/venkatesh-hariharapura-shivashankar	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s879308--bc5562c29896b6bb63cd8ed8e4d13bedbbd79b02960d8e1156551595fe0feb52.png	2026-03-23T15:36:51.419170
logo	datasets/studyforrest	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s6784--7876750ba85f76c6ba6386fdac10a8db24960f7672dc62878b6bb593fea466f9.png	2026-05-20T10:39:22.602134
logo	instruments/64c502e7-d63e-4403-8cb9-b4c60f122b0d	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s456763--3c090483f6e9969568614c38395983935a0d2800b50d3bfdc5da47bac2cf38b4.svg	2026-05-18T15:16:49.510539
logo	instruments/794b80ba-cae1-4fc1-b6d2-8b56c0ff4644	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s157921--a5154408bfe72f12f3c16a5aadeacdf6af21c75b3f9f193134bc94344b7aecbe.png	2026-05-20T22:47:37.308996
depiction	instruments/7b23e72f-3fa5-4aad-b421-a3c1eaea9718	jpg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s84738--3f1e6bab9005d4950a2080e2692ab29257b6bd7b4e78787a4720d9e419fe306f.jpg	2026-05-18T15:16:49.667780
depiction	instruments/7b23e72f-3fa5-4aad-b421-a3c1eaea9718	jpg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s51202--058b1ce48272be29d052a36dbaad84c064059035bb24d6308a682efabf25c2c7.jpg	2026-05-18T15:16:49.698994
logo	instruments/b8dc8b0a-4408-46f4-9f47-c1d3ae747fac	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s5508--0089690988a2a20d6ae11976a82f0798e126c73c75808303b9c2be0ebf0566ef.svg	2026-04-23T11:35:45.241444
logo	instruments/case-e	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s1448085--e284f8a8973854d1816331452612d6289089fe20a78ace64bc98b2b9ccf98086.png	2026-05-18T15:16:49.619312
logo	instruments/datalad	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s12523--b4a89fa597ffe7ea38d1b4dbd43f17ab4e83bf062a23ba2f1c87948fad96b01b.svg	2026-05-20T17:59:42.705190
logo	instruments/git-annex-wheel	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s5032--302b9da57961fbce464944580aa7b491ed86f98b15e4e3eafc86a6b116a53f73.svg	2026-05-20T17:35:56.566553
logo	instruments/trr379_hub	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s1846--36e779ff193879a07e14fe17151f5feeafb666e1a0f3f8e40726426dab8bd739.svg	2026-05-18T15:20:39.888511
logo	projects/a605574d-ee49-4ad4-8348-599b632ed5eb	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s11071--6981b86478d71d1f3e51aa872a525b6724d56551bbe3ba59e784a4d0c9ef45f4.svg	2026-05-22T11:32:35.916437
logo	projects/abcd-j	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s58352--c8c6e08a23f92622c8f4472d13f20a96ed7c68830934ee7ade86462e1c81d088.svg
logo	projects/abcd-j	svg	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s58352--c8c6e08a23f92622c8f4472d13f20a96ed7c68830934ee7ade86462e1c81d088.svg
logo	projects/sfb1451	webp	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp
logo	projects/sfb1451	webp	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp
logo	projects/studyforrest	png	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s6784--7876750ba85f76c6ba6386fdac10a8db24960f7672dc62878b6bb593fea466f9.png	2026-05-20T10:39:22.602134
depiction	publications/d3399cd6-b993-4b75-b386-0edb776b83e7	gif	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s51024684--e98c9bf3a35400c3bbeda033cc833eb2df226d61dee64c5ca57b7da54bb35d4c.gif	2026-05-19T09:54:26.842822

So it basically outputs a line per distribution, which means: possibly multiple lines per depiction, and possibly multiple depictions per person.

There's currently no clean mapping of these variabilities into the hugo realm. The website workflow takes these lines and calculates a target file name from the type and extension, then deletes that file if it already exists and then does addurl. And it processes all lines from top to bottom.

This leaves lots of room for weird undesired behaviour.

One uncertainty regarding the addurl part of the workflow: https://hub.psychoinformatics.de/www/www-from-model/src/branch/main/.forgejo/workflows/register-depictions.yaml#L56-L62

            while IFS=$'\t' read -r depiction_type curie ext url; do
              export targetfile="content/${curie}/${depiction_type}.${ext}"; \
                echo "Register $targetfile" ; \
                test -e "$targetfile" && git rm -f "$targetfile"; \
                (git annex addurl --raw --relaxed --file="$targetfile" "$url" && git annex get "$targetfile") || \
                (echo "addurl failed for $url, continuing..." && git restore --staged $targetfile && rm -f $targetfile)
            done <<< "$depiction_urls"

let's say it processes two lines in order:

logo	projects/sfb1451	webp	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp
logo	projects/sfb1451	webp	https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp

and we assume that logo.webp file existed beforehand. My understanding is that the script will remove the file, then addurl with the first url (which is the one in the private repo). Then for the second line it will remove that file again, then addurl with the second url (the public repo). I.e. after the workflow finished the only known url for that file would be the last one (public).

This needs to be changed.

We have the situation that we've predicted for a while, where there are multiple depictions for the same person, and one is the preferred one. The current depiction registration workflow does not deal well with that. I've updated the `get-depiction-urls` script (locally) to also log the submission date of the metadata record. This is what the script output looks like now (this is already information in the public domain): ``` portrait persons/adina-wagner png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s31538--54607e9bd4e519071f8d8997bb4f1ed71a1213227c6560a3ac217429d821c9c7.png 2026-03-19T16:39:46.703510 portrait persons/alex-waite png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s52647--c569a3b27c63f2abcd02dd456307b0dfaf41e1e627b21900658277a455c82af7.png 2026-06-02T11:51:25.688201 portrait persons/benjamin-poldrack png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s54301--64368969c42d6d26ff6babadd02a428f14b210820d0e1c5a27e9926ebee97597.png 2026-06-02T11:51:25.879831 portrait persons/christian-moench png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s41221--51cd49c8cca91bf1000e81f04ba3b27db8824a08a07878475d02118b856d05bd.png 2026-06-02T11:51:25.965860 portrait persons/jenna-swarthout-goddard webp https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s85768--181271df5a78bfb1eb62eda48a8e84d586f790348bd775cf210fc8f14b5455cd.webp 2026-03-31T12:03:41.413840 portrait persons/laura-waite png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s39984--2f4aa139afd846b1ed4535eb7194d20fd1f6b591e21dd236b4578822c164be2e.png 2026-06-02T11:51:25.790885 portrait persons/michael-hanke png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s43712--473a738edd10c976c664d883ade337048e1834ea5007a2212d6521b021109cd3.png 2026-05-18T15:19:08.379141 portrait persons/michal-szczepanik webp https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s22160--ca2bf500455a30b926c4ae46dd01e397f37698407479cd518ae5c79af4233beb.webp 2026-03-23T16:03:55.185852 portrait persons/michal-szczepanik png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s75564--6c3b31baff7ec0b38032a43fd6b41075e71f0de4371eefdc0c0a85988541d7af.png 2026-06-02T12:25:07.929831 portrait persons/stephan-heunis png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s48879--ad72b88b3284f79b1e2ae32c75db8482a1edaf2b2300ee220b1eaaf2cef69c13.png 2026-02-26T11:16:21.664396 portrait persons/stephan-heunis png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s48879--ad72b88b3284f79b1e2ae32c75db8482a1edaf2b2300ee220b1eaaf2cef69c13.png 2026-02-26T11:16:21.664396 portrait persons/venkatesh-hariharapura-shivashankar png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s113489--241100e1adcffd2022cd3a376592b446736cb4e6d310e78f6c99bccbdf9f4425.png 2026-06-02T12:25:08.112002 portrait persons/venkatesh-hariharapura-shivashankar png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s879308--bc5562c29896b6bb63cd8ed8e4d13bedbbd79b02960d8e1156551595fe0feb52.png 2026-03-23T15:36:51.419170 logo datasets/studyforrest png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s6784--7876750ba85f76c6ba6386fdac10a8db24960f7672dc62878b6bb593fea466f9.png 2026-05-20T10:39:22.602134 logo instruments/64c502e7-d63e-4403-8cb9-b4c60f122b0d svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s456763--3c090483f6e9969568614c38395983935a0d2800b50d3bfdc5da47bac2cf38b4.svg 2026-05-18T15:16:49.510539 logo instruments/794b80ba-cae1-4fc1-b6d2-8b56c0ff4644 png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s157921--a5154408bfe72f12f3c16a5aadeacdf6af21c75b3f9f193134bc94344b7aecbe.png 2026-05-20T22:47:37.308996 depiction instruments/7b23e72f-3fa5-4aad-b421-a3c1eaea9718 jpg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s84738--3f1e6bab9005d4950a2080e2692ab29257b6bd7b4e78787a4720d9e419fe306f.jpg 2026-05-18T15:16:49.667780 depiction instruments/7b23e72f-3fa5-4aad-b421-a3c1eaea9718 jpg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s51202--058b1ce48272be29d052a36dbaad84c064059035bb24d6308a682efabf25c2c7.jpg 2026-05-18T15:16:49.698994 logo instruments/b8dc8b0a-4408-46f4-9f47-c1d3ae747fac svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s5508--0089690988a2a20d6ae11976a82f0798e126c73c75808303b9c2be0ebf0566ef.svg 2026-04-23T11:35:45.241444 logo instruments/case-e png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s1448085--e284f8a8973854d1816331452612d6289089fe20a78ace64bc98b2b9ccf98086.png 2026-05-18T15:16:49.619312 logo instruments/datalad svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s12523--b4a89fa597ffe7ea38d1b4dbd43f17ab4e83bf062a23ba2f1c87948fad96b01b.svg 2026-05-20T17:59:42.705190 logo instruments/git-annex-wheel svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s5032--302b9da57961fbce464944580aa7b491ed86f98b15e4e3eafc86a6b116a53f73.svg 2026-05-20T17:35:56.566553 logo instruments/trr379_hub svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s1846--36e779ff193879a07e14fe17151f5feeafb666e1a0f3f8e40726426dab8bd739.svg 2026-05-18T15:20:39.888511 logo projects/a605574d-ee49-4ad4-8348-599b632ed5eb svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s11071--6981b86478d71d1f3e51aa872a525b6724d56551bbe3ba59e784a4d0c9ef45f4.svg 2026-05-22T11:32:35.916437 logo projects/abcd-j svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s58352--c8c6e08a23f92622c8f4472d13f20a96ed7c68830934ee7ade86462e1c81d088.svg logo projects/abcd-j svg https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s58352--c8c6e08a23f92622c8f4472d13f20a96ed7c68830934ee7ade86462e1c81d088.svg logo projects/sfb1451 webp https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp logo projects/sfb1451 webp https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp logo projects/studyforrest png https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s6784--7876750ba85f76c6ba6386fdac10a8db24960f7672dc62878b6bb593fea466f9.png 2026-05-20T10:39:22.602134 depiction publications/d3399cd6-b993-4b75-b386-0edb776b83e7 gif https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s51024684--e98c9bf3a35400c3bbeda033cc833eb2df226d61dee64c5ca57b7da54bb35d4c.gif 2026-05-19T09:54:26.842822 ``` So it basically outputs a line per distribution, which means: possibly multiple lines per depiction, and possibly multiple depictions per person. There's currently no clean mapping of these variabilities into the hugo realm. The website workflow takes these lines and calculates a target file name from the type and extension, then deletes that file if it already exists and then does addurl. And it processes all lines from top to bottom. This leaves lots of room for weird undesired behaviour. One uncertainty regarding the addurl part of the workflow: https://hub.psychoinformatics.de/www/www-from-model/src/branch/main/.forgejo/workflows/register-depictions.yaml#L56-L62 ``` while IFS=$'\t' read -r depiction_type curie ext url; do export targetfile="content/${curie}/${depiction_type}.${ext}"; \ echo "Register $targetfile" ; \ test -e "$targetfile" && git rm -f "$targetfile"; \ (git annex addurl --raw --relaxed --file="$targetfile" "$url" && git annex get "$targetfile") || \ (echo "addurl failed for $url, continuing..." && git restore --staged $targetfile && rm -f $targetfile) done <<< "$depiction_urls" ``` let's say it processes two lines in order: ``` logo projects/sfb1451 webp https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/f1a8ef1c-6d8a-40e3-970f-4634390d961f/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp logo projects/sfb1451 webp https://hub.psychoinformatics.de/git-annex-p2phttp/git-annex/cedde37c-416a-41fd-87e0-4ac100df4bf7/key/SHA256E-s18846--15936a17e294bf9017dcfec46f889eb82d1873c074fd02f5c34f46aa54c02a22.webp ``` and we assume that `logo.webp` file existed beforehand. My understanding is that the script will remove the file, then `addurl` with the first url (which is the one in the private repo). Then for the second line it will remove that file again, then `addurl` with the second url (the public repo). I.e. after the workflow finished the only known url for that file would be the last one (public). This needs to be changed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
www/www-from-model#27
No description provided.