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

Added paging support for storage list commands. #5419

Merged
merged 5 commits into from
Feb 7, 2018

Conversation

williexu
Copy link
Contributor


Closes: #3745

-"nextMarker" property added to every result of list output
-list commands now have --num-result and --marker as parameters.
-minor fixes, and added tests

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

  • Each command and parameter has a meaningful description.
  • Each new command has a test.

(see Authoring Command Modules)

@promptws
Copy link

View a preview at https://prompt.ws/r/Azure/azure-cli/5419
This is an experimental preview for @microsoft users.

@williexu williexu requested a review from troydai January 27, 2018 02:36
@williexu williexu added the Storage az storage label Jan 27, 2018
@williexu williexu force-pushed the storagedir branch 2 times, most recently from 458b15e to b11e4bc Compare January 29, 2018 00:09
Copy link
Contributor

@troydai troydai left a comment

Choose a reason for hiding this comment

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

Aside from minor issues. Looks good to me.

item.next_marker = next_marker
return item

return list(map(set_marker, result))
Copy link
Contributor

Choose a reason for hiding this comment

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

@williexu williexu closed this Feb 5, 2018
@williexu williexu deleted the storagedir branch February 5, 2018 20:40
@williexu williexu restored the storagedir branch February 5, 2018 20:49
@williexu williexu reopened this Feb 5, 2018
@promptws
Copy link

promptws commented Feb 5, 2018

View a preview at https://prompt.ws/r/Azure/azure-cli/5419
This is an experimental preview for @microsoft users.

@troydai
Copy link
Contributor

troydai commented Feb 6, 2018

Please rebase. And does Aaron have any feedback of this?

@williexu williexu merged commit 4e8ba81 into Azure:dev Feb 7, 2018
williexu added a commit that referenced this pull request Feb 7, 2018
derekbekoe pushed a commit that referenced this pull request Feb 8, 2018
* Revert "[AKS] list available k8s versions, add tab completers, refactor code (#5475)"

This reverts commit 1326d2f.

* Revert "Added paging support for storage list commands. (#5419)"

This reverts commit 4e8ba81.
LukaszStem pushed a commit to LukaszStem/azure-cli that referenced this pull request Feb 21, 2018
* check if dir exists instead of path

* added paging, broke

* resolved problems with non-listgenerator provided to transformer

* history, setup version, tests

* review feedback
LukaszStem pushed a commit to LukaszStem/azure-cli that referenced this pull request Feb 21, 2018
* Revert "[AKS] list available k8s versions, add tab completers, refactor code (Azure#5475)"

This reverts commit 1326d2f.

* Revert "Added paging support for storage list commands. (Azure#5419)"

This reverts commit 4e8ba81.
@williexu williexu deleted the storagedir branch April 4, 2018 19:21
@haroldrandom haroldrandom added the Storage az storage label Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage az storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The server side paging scenario in storage commands is not completed.
4 participants