Closed kcullion closed 2 years ago
This looks good @demariadaniel ! Didn't specify in ticket, but can you just make the default order on the File ID column, in descending order (so the newer files come to the front). And show that it's sorted on that column, it's built into the table component I think to show that blue bar on the column its sorted on.
Also @demariadaniel is it an easy fix to make the "table tsv" download have the same column order, from left to right, as the file repo table in the UI?
@kcullion Yes actually it looks like that can be done pretty easily
Great, thanks for looking into that @demariadaniel . Please add that as part of the feedback for this ticket :)
As per slack discussion with Dan and Linda, we will leave the sort order as is and fix that after the release, as it's a bigger fix than we anticipated.
From Dan:
OK so issue with sorting by file id, technically FL999 > FL1000 -- files above 999 are getting pushed to the back of the line, because of a quirk of how JavaScript works.
I can order the File IDs such that it starts at 999 and descending for now. Do we want that?
Getting it so file ids >999 display first is going to require extra logic on the API.
API ticket for this: https://github.com/icgc-argo/platform-api/issues/521
I see the table download now has the columns in the right order in QA. Thanks so much Dan!
this is working as expected in staging. I see the file id in the table tsv download and not the manifest so that's correct!
File Repository
File Entity page