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

feat(getallassets) : add support for include_fields in request to limit the response. #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anjali9791
Copy link

Related to: #48

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5729062398

  • 43 of 52 (82.69%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.06%) to 87.634%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/store/postgres/asset_repository.go 34 35 97.14%
core/asset/filter.go 7 15 46.67%
Totals Coverage Status
Change from base Build 5675602266: -0.06%
Covered Lines: 5988
Relevant Lines: 6833

💛 - Coveralls

Comment on lines +29 to +33
fields := flt.IncludeFields

var builder sq.SelectBuilder
if len(fields) == 0 {
builder = r.getAssetSQL().Offset(uint64(flt.Offset))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these changes necessary since search assets can also serve a similar purpose using ES?

Last time we came across changing these functionalities - we were aligning on enhancing the searchAssets API itself and consolidate both APIs into one. Context - raystack#201 (comment)

@anjali9791 @sudo-suhas

PS. search API also supports pagination now.

Choose a reason for hiding this comment

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

Thanks for bringing this up @bsushmith. In my initial discussion with @anjali9791 I missed bringing it up.

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.

5 participants