Chia-Network / cadt

Climate Action Data Trust
Apache License 2.0
35 stars 13 forks source link

FEAT: [CADT] Create reprocessing feature where organizations periodically check for owned mirrors and publish a mirror if it has not yet published a mirror for a subscribed singleton #951

Open ccornick opened 1 year ago

ccornick commented 1 year ago

CADT is meant to be a network of data publishers where you can get data from any mirror that is published.

CADT publishes mirrors ONLY IF you have an organization (CADT logs show "no home org detected, skipping mirror")

This means that when someone firsts runs CADT, they don't publish a mirror for the governance node and any orgs they have subscribed to. They only publish mirrors for their own org once they have created it, and any new subscriptions they add.

We should have a process that periodically checks if you have subscribed singletons that you DO NOT have a mirror for, and if those are detected, then a mirror is published.

Or in theory we could just take out the step where CADT checks for homeorg in order to publish a mirror.

ccornick commented 11 months ago

We can just do a check when org is created and make sure mirrors are present for subscribed-to orgs, if not add.