Skip to content

Sync Buckets recursively #295

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

Merged
merged 3 commits into from
Apr 1, 2025
Merged

Sync Buckets recursively #295

merged 3 commits into from
Apr 1, 2025

Conversation

TimCsaky
Copy link
Contributor

@TimCsaky TimCsaky commented Mar 3, 2025

Creates missing child 'buckets' in COMS db
Syncs provided bucket and all child buckets
Uses object sync queue

add a new ?recursive=true query param to the /bucket/:bucketId/sync endpoint.
Probably need to pull down locally to test with BCBox (modifying the bcbox sync request to include the recursive query param.
see: https://github.com/bcgov/bcbox/blob/410ae8ba73f8662a0341d64b05da14c76473f50b/frontend/src/services/bucketService.ts#L67

Description

Types of changes

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

github-actions bot commented Mar 3, 2025

Coverage Report

Totals Coverage
Statements: 57.42% ( 3048 / 5308 )
Methods: 47.43% ( 332 / 700 )
Lines: 64.16% ( 1826 / 2846 )
Branches: 50.51% ( 890 / 1762 )

TimCsaky added 2 commits April 1, 2025 15:47
Synchronise the COMS database with all subfolders
@TimCsaky TimCsaky force-pushed the sync branch 2 times, most recently from a7e5b3b to 088a89e Compare April 1, 2025 22:52
@TimCsaky TimCsaky merged commit d916f17 into master Apr 1, 2025
13 checks passed
TimCsaky added a commit that referenced this pull request Apr 1, 2025
Sync Buckets recursively
TimCsaky added a commit that referenced this pull request Apr 1, 2025
Sync Buckets recursively
TimCsaky added a commit that referenced this pull request Apr 1, 2025
Sync Buckets recursively
@TimCsaky TimCsaky deleted the sync branch April 29, 2025 21:04
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.

2 participants