AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

List of storage accounts loads initial list out of alphabetical order

Open Chris-Johnston opened this issue 4 years ago • 4 comments

Storage Explorer Version: 1.12.0 Build Number: 20200116.10 Platform/OS: Windows 10 1909 Architecture: x64 Regression From: n/a

Bug Description

When listing storage accounts under a subscription with a large number of accounts (enough so that the "Load More" button appears) in the "Explorer" side-bar, it's possible for accounts to be missing from the alphabetical order until all results are shown. The top N results are taken, then sorted, instead of the results being sorted, and the top N results taken.

Steps to Reproduce

  1. Connect Azure Storage Explorer to a Subscription which contains enough Storage Accounts so that the "Load more" button appears at the bottom of the list.
  2. Notice that the first page of results are in alphabetical order. Note the range of alphabetical names in the results shown.
  3. Click "Load more".
  4. Notice that more results have been loaded. The results appear in alphabetical order, but in the same range of names that were in step 2.

Expected Experience

The behavior that I expect would have the initial list of storage accounts appear like this:

- My Subscription's Storage Accounts
  > A
  > B
  > C
  > ...
  > M
  [Load More]

In this case, only accounts with names A-M fit in the top N storage account names when sorted alphabetically.

When I click "Load More", I expect more/all of the storage accounts to appear:

- My Subscription's Storage Accounts
  > A
  > B
  > ...
  > M
  > N
  > ...
  > Z

In alphabetical order, showing everything from A-Z.

Actual Experience

The behavior that I experience is that the initial list of storage accounts can appear like this:

- My Subscription's Storage Accounts
  > A
  > B
  > N
  > Z
  [Load More]

Note that the range of results covers A-Z, but I might not see accounts "C" or "M" in this list.

When I click "Load More", I see all of my storage accounts in sorted order.

- My Subscription's Storage Accounts
  > A
  > B
  > ...
  > M
  > N
  > ...
  > Z

Additional Context

This issue only affects my subscriptions that have many storage accounts under them, enough so that the "Load more" button appears. This may also affect other lists, this is the only one that I have encountered.

Chris-Johnston avatar May 19 '20 19:05 Chris-Johnston

Hey @Chris-Johnston, I was about to answer with a "no, the APIs don't let us do this", but I think I may have found some new APIs that might finally make this possible. I'll get back to you on this. :)

MRayermannMSFT avatar May 19 '20 22:05 MRayermannMSFT

Cool!

Chris-Johnston avatar May 19 '20 23:05 Chris-Johnston

@Chris-Johnston I'll be looking to investigate what I found. I don't have any timelines to share though. I'll update this issue once I do.

MRayermannMSFT avatar Jun 22 '20 17:06 MRayermannMSFT

Any news on this? This makes the process of browsing storage explorer a lot more tedious than it should be.

Davidsv avatar Jul 29 '22 13:07 Davidsv