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

Prototype to use settings in byPage method #20809

Closed
wants to merge 1 commit into from

Conversation

sarangan12
Copy link
Contributor

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

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@@ -91,6 +98,31 @@ export class VirtualMachineImageTemplatesImpl
}
}

/**
Copy link
Contributor Author

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

Copy link
Member

@deyaaeldeen deyaaeldeen left a 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) {
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
if (settings && settings.continuationToken) {
if (settings?.continuationToken) {

@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label May 13, 2022
@ghost
Copy link

ghost commented May 13, 2022

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.

@ghost ghost closed this May 20, 2022
@ghost
Copy link

ghost commented May 20, 2022

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.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity There has been no recent activity on this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants