AllenNeuralDynamics / aind-data-asset-indexer

MIT License
0 stars 0 forks source link

AIND Bucket Indexer should also update individual metadata files in S3 #55

Closed helen-m-lin closed 1 month ago

helen-m-lin commented 1 month ago

User story

As a user, I want to see changes updated in the core schema files in S3 after updating a metadata record in DocDB, so changes are synced in s3 and docdb.

Currently, the aind_buckets_indexer.py job will check for updates to records in DocDB and update the metadata.nd.json files in S3. We also want the individual metadata JSONs (subject, rig, etc) updated in the S3 buckets.

Acceptance criteria

Sprint Ready Checklist

Notes

Add any helpful notes here.

helen-m-lin commented 1 month ago

Discussed with @dyf and @saskiad, we can write the original core schema jsons to: s3://{bucket}/{s3_prefix}/original_metadata/{core_schema}.{date_stamp}.json.