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

Bug fix: Sync public flag on object #260

Merged
merged 1 commit into from
May 2, 2024
Merged

Bug fix: Sync public flag on object #260

merged 1 commit into from
May 2, 2024

Conversation

TimCsaky
Copy link
Contributor

@TimCsaky TimCsaky commented May 2, 2024

Description

bug existed where public file would become non-public after sync.
logic we want is:

  • if object is marked as public in s3 then mark as public in coms db.
  • if s3 public attribute is false or undefined, keep coms public status.

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

codeclimate bot commented May 2, 2024

Code Climate has analyzed commit 7cf7aef and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 68.1% (0.0% change).

View more on Code Climate.

Copy link

github-actions bot commented May 2, 2024

Coverage Report

Totals Coverage
Statements: 61.11% ( 3049 / 4989 )
Methods: 50.99% ( 335 / 657 )
Lines: 68.15% ( 1832 / 2688 )
Branches: 53.65% ( 882 / 1644 )

lastSyncedDate: new Date().toISOString()
}, trx);

// if public flag changed mark as modified
Copy link
Contributor Author

@TimCsaky TimCsaky May 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is not important.
marking the object as modified does nothing.
we had intended to use the modified flag to determine if versions needed syncing as well.. but we currently always syn the versions (so long as an object exists)

@TimCsaky TimCsaky merged commit 71ee983 into master May 2, 2024
13 checks passed
@TimCsaky TimCsaky deleted the bug/sync-public branch September 17, 2024 19:34
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