NatLibFi / Annif

Annif is a multi-algorithm automated subject indexing tool for libraries, archives and museums.
https://annif.org
Other
195 stars 41 forks source link

Order of projects when using project configuration directory #647

Closed juhoinkinen closed 1 year ago

juhoinkinen commented 1 year ago

Since #584/#585 it has been possible to use a project configuration directory (projects.d by default) to contain multiple project configuration files.

A problem is that it seems not possible to set the order of projects that come from different files in a projects listing (all projects from one file come before the projects from the other file, no matter how the files are named; at the moment I'm not sure what dictates the order). This is a problem concerning web UI, when one would like to order the projects in a specific way.

I think it would be best that the order of "project blocks" (projects set in different configuration files) would obey the alphabetical order of the file names. That way the order could be set as wished by using e.g. 0-projects-yso.toml and 1-projects-hogwarts.toml etc.

osma commented 1 year ago

Yes, I agree that having the projects follow the file name order would make sense.