azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

"Save as ..." actions don't respect result set sorting

Open Charles-Gagnon opened this issue 2 years ago • 4 comments

  1. Run query with results
  2. Sort results so they're in a different order than the initial results
  3. Use one of the "Save as" actions (such as "Save as JSON")

The file is generated, but the items are in the initial order. They should be in the displayed order.

Likely similar issue as https://github.com/microsoft/azuredatastudio/pull/18973

Charles-Gagnon avatar Apr 12 '22 23:04 Charles-Gagnon

@alanrenmsft Assigning this to you for triaging

Charles-Gagnon avatar Apr 12 '22 23:04 Charles-Gagnon

this is not a regression, when filtering/sorting is introduced, I didn't implement what you have described. It is fair to ask for this feature, but on the other hand, the filtering/sorting are just manipulating the client side data, when serialized, user may want all the data.

putting this in backlog and if users vote we can revisit it.

alanrenmsft avatar Apr 13 '22 00:04 alanrenmsft

This is more noticeable when you select items and export those. Instead of the items you've selected you get completely different items. I'd definitely consider that functionality a bug.

Charles-Gagnon avatar Apr 13 '22 00:04 Charles-Gagnon

agreed, the select items and export scenario is confusing, let me move this to June release and take a look.

alanrenmsft avatar Apr 13 '22 01:04 alanrenmsft