Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: copy core schema jsons in s3 and keep in sync with docdb #57

Merged
merged 19 commits into from
May 31, 2024

Conversation

helen-m-lin
Copy link
Collaborator

@helen-m-lin helen-m-lin commented May 24, 2024

closes #55

Utils:

  • copy_then_overwrite_core_json_files: Copies core jsons to /original_metadata, then update all top level jsons with new metadata.nd.json.
  • sync_core_json_files: Syncs top level jsons with fields from metadata.nd.json. Use md5hash for checking updates.
  • added some other helper functions

AindPopulateMetadataJsonJob:

  • When a metadata.nd.json is created, call copy_then_overwrite_core_json_files

AindIndexBucketJob:

  • _process_docdb_record: on docdb updates, call sync_core_json_files, or copy_then_overwrite_core_json_files if /original_metadata doesn't already exist.
  • _process_prefix: If adding new metadata.nd.json to docdb, call copy_then_overwrite_core_json_files

@helen-m-lin helen-m-lin changed the title feat: copy s3 core metadata jsons to /original_metadata and keep core jsons in sync on docdb updates feat: copy original core metadata jsons in s3 and keep core jsons in sync with docdb May 24, 2024
@helen-m-lin helen-m-lin changed the title feat: copy original core metadata jsons in s3 and keep core jsons in sync with docdb feat: copy core schema jsons in s3 and keep in sync with docdb May 24, 2024
@helen-m-lin helen-m-lin requested a review from jtyoung84 May 24, 2024 21:57
@helen-m-lin helen-m-lin marked this pull request as ready for review May 24, 2024 21:57
@helen-m-lin helen-m-lin merged commit e529276 into main May 31, 2024
3 checks passed
@helen-m-lin helen-m-lin deleted the feat-55-core-schema-s3 branch May 31, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIND Bucket Indexer should also update individual metadata files in S3
2 participants