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

ReportService - GetReportsByNextToken if nextToken is empty request first page #692

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

SDP190
Copy link
Contributor

@SDP190 SDP190 commented Dec 27, 2023

ReportService - GetReportsByNextToken if nextToken is empty request first page

Currently, there is the public GetReportsByNextToken method so clients can call to get the next page of reports, this is an important method cause - unlike the ReportService.GetReportsAsync method which loops until reports are retrieved - this gives control to the user whether to continue asking for next page of reports or to stop.
However, there is no (public method) way to retrieve the initial page of reports. This revision changes the code in ReportService.GetReportsByNextTokenAsync such that if the ParameterReportList.nextToken parameter is empty the first page will be retrieved.

Note: We may want to rename this method to: "GetReportsPage" ?

…en request the first page

Currently there is GetReportsByNextToken to get the next page of reports, however, there is no (public method) way to retrieve the initial page of reports. This revision makes that if nextToken is empty the first page will be retrieved. Note: We can rename this method to: "GetReportsPage" ?
@abuzuhri abuzuhri merged commit 45e8cbf into abuzuhri:main Dec 30, 2023
1 check passed
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