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

Use isLatest db value in object search query #222

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Use isLatest db value in object search query #222

merged 2 commits into from
Oct 17, 2023

Conversation

TimCsaky
Copy link
Contributor

We need to update our search objects query to take advantage of the isLatest boolean we added to the db schema (previously we used createdAt date desc to work out latest).

This change fixes a bug where soft deleted files are showing up in bcbox.

Description

Types of changes

Bug fix (non-breaking change which fixes an issue)

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

@codeclimate
Copy link

codeclimate bot commented Oct 16, 2023

Code Climate has analyzed commit 862f097 and detected 0 issues on this pull request.

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

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

View more on Code Climate.

@github-actions
Copy link

Coverage Report

Totals Coverage
Statements: 58.04% ( 2649 / 4564 )
Methods: 47.98% ( 297 / 619 )
Lines: 64.74% ( 1592 / 2459 )
Branches: 51.14% ( 760 / 1486 )

@jujaga jujaga merged commit 4ecf7b6 into master Oct 17, 2023
15 of 16 checks passed
@TimCsaky TimCsaky deleted the isLatest branch October 17, 2023 17:50
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.

None yet

3 participants