Add all components allowing person depiction registration workflow #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "depiction-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
register-person-depictionsworkflow needs to run regularly (and be triggerrable) such that any depictions uploaded via the pool can become part of this repository in order to be rendered on the website.The actions are added to support the workflow, and models the setup at https://hub.psychoinformatics.de/www/www-from-model/src/branch/main.
Regarding the implication of overwriting existing portraits; currently the
git annex addurlcommand will fail when adding a url for a distribution that has a different checksum than the existing one, which is expected. But this won't make the workflow fail (by design). The implication is that new portrait uploads will not take precedence. We should decide on a convention for this use case, for example:git rmstep to the workflow code), orTo be taken into account with the above is the way in which the hugo template decides which portrait to render. In the Psyinf
www-from-modelscenario the hugo template takes the first match of aportrait.*wildcard: see the code. This means: priority could be decided by the upload registration script, but this priority should be marked for the hugo template step as well.Add all components allowing person depiction registration workflowto WIP: Add all components allowing person depiction registration workflowWIP: Add all components allowing person depiction registration workflowto Add all components allowing person depiction registration workflowThis feels like it would be simpler UX for a user, because they wouldn't need to remember adding a tag. If an
rmis undesirable, though, maybe there could be a way to have the editor automatically attach a tag in the background?Out of curiosity, if the tag-based approach is adopted, what would happen if I upload my picture (first time), then update (with a tag), and then update a second time (same tag?)?
I think a new upload should take precedence. In general, I think that is needs some form of signaling which particular item to take, whenever there is more than one.
I will merge this now. Changes can be made later.
Thanks!