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

Full mode #201

Merged
merged 5 commits into from
Aug 30, 2023
Merged

Full mode #201

merged 5 commits into from
Aug 30, 2023

Conversation

TimCsaky
Copy link
Contributor

@TimCsaky TimCsaky commented Aug 29, 2023

Description

  • remove full mode from the sync feature. (ticket: https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3334)
    logic still exists in controller and service if implemented at a later date
  • changed syncJob() to only sync metadata when version is new/modified
  • fix unit tests by mocking transaction, update sync requests validation schemas
  • update K6 script used for uploading objects using PUT request (instead of POST)

Types of changes

Breaking change (fix or feature that would cause existing functionality to change)

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

Signed-off-by: Jeremy Ho <jujaga@gmail.com>
@TimCsaky TimCsaky force-pushed the full-mode branch 2 times, most recently from 9daeeb6 to 303a2ac Compare August 29, 2023 23:47
jujaga and others added 3 commits August 29, 2023 17:21
Objects, Versions and Tags must always be updated no matter what, so we
modified the syncJob logic so that it determines whether it has to update
metadata as most of the time those values are not modifiable unless the
bucket is unversioned.

Signed-off-by: Jeremy Ho <jujaga@gmail.com>
@TimCsaky TimCsaky marked this pull request as ready for review August 30, 2023 16:20
@TimCsaky TimCsaky requested a review from wilwong89 August 30, 2023 16:21
@github-actions
Copy link

Coverage Report

Totals Coverage
Statements: 46.32% ( 2154 / 4650 )
Methods: 37.26% ( 234 / 628 )
Lines: 53.26% ( 1347 / 2529 )
Branches: 38.38% ( 573 / 1493 )

@norrisng-bc norrisng-bc reopened this Aug 30, 2023
@norrisng-bc norrisng-bc merged commit 0c543bf into release/sync Aug 30, 2023
@norrisng-bc norrisng-bc deleted the full-mode branch August 30, 2023 19:27
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.

4 participants