cedadev / search-futures

Future Search Architecture
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Handling collection description changes #179

Open rhysrevans3 opened 1 year ago

rhysrevans3 commented 1 year ago

Collection description update workflow:

  1. User updates collection description
  2. Github action detects change and calls STAC updater with both old and new collection descriptions
  3. STAC updater finds effected assets (probably top down find collections -> items -> assets)
  4. Messages added to asset generator queue that includes old asset and flag that description has been updated.
  5. a. If id is changed add new asset and set old asset's status is set to removed b. Else update the existing asset and set it's status to updated
  6. STAC stocktake checks for removed or updated assets and adds message to item generator with old item and flag that description has been updated.
  7. Repeat for collection.