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

[discuss] Don't generate shortcuts for list functions #935

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

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Jun 3, 2024

Changes

The ListByZZZ functions don't use the same pagination as the main functions.

By definition, the shortcut functions are generated only if there are required request parameters. Therefore, they should either return the same paginator, or not exist at all.

Tests

n/a

@pietern pietern requested a review from mgyucht June 3, 2024 09:18
@pietern pietern changed the title Don't generate shortcuts for list functions [discuss] Don't generate shortcuts for list functions Jun 3, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 7.13%. Comparing base (29bdcf3) to head (515ea4c).
Report is 1 commits behind head on main.

Files Patch % Lines
service/compute/library_utilities.go 0.00% 4 Missing ⚠️
openapi/code/method.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #935      +/-   ##
========================================
- Coverage   7.13%   7.13%   -0.01%     
========================================
  Files        281     281              
  Lines      64583   64596      +13     
========================================
  Hits        4609    4609              
- Misses     59666   59677      +11     
- Partials     308     310       +2     

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

@@ -183,11 +183,19 @@ func (a *LibrariesAPI) Wait(ctx context.Context, wait Wait,
o(&i)
}
result, err := retries.Poll(ctx, i.Timeout, func() (*ClusterLibraryStatuses, *retries.Err) {
status, err := a.ClusterStatusByClusterId(ctx, wait.ClusterID)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the only place where we explicitly use shortcut?

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.

3 participants