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

CLOUDP-222791: expose "include total" on paginated commands - Part 1 #2749

Merged
merged 5 commits into from
Mar 11, 2024

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Mar 11, 2024

Proposed changes

Jira ticket: CLOUDP-222791

This is the first part of two where we are introducing the omitCount for all the AtlasCLI list commands.

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@andreaangiolillo andreaangiolillo marked this pull request as ready for review March 11, 2024 17:39
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner March 11, 2024 17:39
@andreaangiolillo andreaangiolillo requested a review from a team March 11, 2024 17:39
@andreaangiolillo
Copy link
Collaborator Author

andreaangiolillo commented Mar 11, 2024

The doc review was performed in #2693

@andreaangiolillo andreaangiolillo requested a review from gssbzn March 11, 2024 17:40
Comment on lines +37 to +45
IncludeCount: !opts.OmitCount,
}
}

func (opts *ListOpts) NewAtlasListOptions() *store.ListOptions {
return &store.ListOptions{
PageNum: opts.PageNum,
ItemsPerPage: opts.ItemsPerPage,
IncludeCount: !opts.OmitCount,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the main change

Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

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

LGTM

@andreaangiolillo andreaangiolillo merged commit 83e3044 into master Mar 11, 2024
28 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-222791 branch March 11, 2024 18:55
@fmenezes fmenezes mentioned this pull request Apr 5, 2024
6 tasks
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