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

Add ListPackages() to persistence service #1031

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

djjuhasz
Copy link
Collaborator

Refs #988

This continues the work toward #988 by adding a ListPackages() method to the persistence service that includes a count of the total search results returned (before paging), as well as allowing filtering, sorting, and paging of the search.

Other changes:

  • Add a telemetry wrapper for the ListPackages() method to provide extra performance and debugging data
  • Add additional commentary for the Filter.Page() method
  • Add many unit tests for the ListPackages() functionality

@djjuhasz djjuhasz requested a review from jraddaoui September 27, 2024 21:13
@djjuhasz djjuhasz force-pushed the dev/issue-988-add-list-package-method branch from cdda311 to 0a12381 Compare September 27, 2024 21:24
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 68.42105% with 12 lines in your changes missing coverage. Please review.

Project coverage is 54.31%. Comparing base (e2cc8b3) to head (f69f41c).
Report is 52 commits behind head on main.

Files with missing lines Patch % Lines
internal/persistence/telemetry.go 0.00% 8 Missing ⚠️
internal/persistence/ent/client/package.go 86.66% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1031      +/-   ##
==========================================
+ Coverage   54.22%   54.31%   +0.09%     
==========================================
  Files         103      103              
  Lines        5957     5995      +38     
==========================================
+ Hits         3230     3256      +26     
- Misses       2475     2485      +10     
- Partials      252      254       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@djjuhasz djjuhasz force-pushed the dev/issue-988-add-list-package-method branch from 0a12381 to ae41938 Compare September 27, 2024 21:41
Copy link
Collaborator

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @djjuhasz!

internal/persistence/ent/client/package.go Outdated Show resolved Hide resolved
internal/persistence/ent/client/package_test.go Outdated Show resolved Hide resolved
Refs #988

This continues the work toward #988 by adding a `ListPackages()` method
to the persistence service that includes a count of the total search
results returned (before paging), as well as allowing filtering,
sorting, and paging of the search.

Other changes:
- Add a telemetry wrapper for the `ListPackages()` method to provide
  extra performance and debugging data
- Add additional commentary for the `Filter.Page()` method
- Add many unit tests for the `ListPackages()` functionality
@djjuhasz djjuhasz force-pushed the dev/issue-988-add-list-package-method branch from 3644b66 to f69f41c Compare October 1, 2024 17:36
@djjuhasz djjuhasz merged commit 3f4c090 into main Oct 1, 2024
15 checks passed
@djjuhasz djjuhasz deleted the dev/issue-988-add-list-package-method branch October 1, 2024 19:55
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