-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Prototype to use settings in byPage method #20809
Conversation
@@ -91,6 +98,31 @@ export class VirtualMachineImageTemplatesImpl | |||
} | |||
} | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following lines are moved for viewing the code easily. They are not actual code changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, did you test it?
): AsyncIterableIterator<ImageTemplate[]> { | ||
let result = await this._list(options); | ||
let result; | ||
if (settings && settings.continuationToken) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if (settings && settings.continuationToken) { | |
if (settings?.continuationToken) { |
Hi @sarangan12. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
Hi @sarangan12. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing "/reopen" if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the "no-recent-activity" label; otherwise, this is likely to be closed again with the next cleanup pass. |
Packages impacted by this PR
None. This PR is created as a Prototype to show the changes required for Issue Azure/autorest.typescript#1199. We do not have to merge this PR.
Issues associated with this PR
Azure/autorest.typescript#1199
Describe the problem that is addressed by this PR
During the discussion with @deyaaeldeen, he has pointed out that the settings parameter should be used in the byPage method. And, the token in the settings must be used as the next url. I believe this code change will satisfy that requirement.
(Another requirement on maxPageSize is not done here yet. I am working on that)
@deyaaeldeen Could you please take a look at this PR and let me know if it satisfy the ask?
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists