iop-alliance / okh-search

A self-hostable, federated search for open source hardware
https://search.openknowhow.org
MIT License
10 stars 9 forks source link

When Are Remote Lists Indexed #78

Open jmwright opened 1 year ago

jmwright commented 1 year ago

There is a remoteLists section of the search engine configuration file that holds third-party manifest lists. Are the contents of those lists only indexed when they are added, or are they periodically re-indexed? I ask because if they are re-indexed periodically, it would be possible to add a remoteLists entry for a list maintained by a bot.

Currently I'm thinking the bot would run in a GitHub Action and would do it's own indexing of okh*.yml files, then add any that don't exist on any other lists to it's own list. Then, if it's own list has changed since the last index, open a PR on it's own repo so that there could be some human review before merging. Once merged, the changes would be available to search.openknowhow.org, which would be pointing at the list.json file in the bot's repo.