SkynetLabs / skynet-accounts

Other
8 stars 5 forks source link

Implement filtering feature for /uploads and /downloads enpoints #154

Open meeh0w opened 2 years ago

meeh0w commented 2 years ago

Overview

For the new Account Dashboard, we need a way to filter and sort the uploaded and downloaded files on /uploads and /downloads endpoints.

Needed filters:

Needed sort orders:

image
ro-tex commented 2 years ago

@meeh0w can you give me the specific column names you want to use, i.e. filename for file name? If not, I can define them, that's also fine by me.

As discussed previously, we don't have file type information for skylnks, so implementing sorting on that will not be possible at this time. If we decide that we need this kind of information (and the sorting), we can implement that under a separate issue but such a change is very much out of scope for this one. cc @ChrisSchinnerl

Also out of scope is the filtering of small files. That features is not fully designed, so I have created a separate issue for it in https://github.com/SkynetLabs/skynet-accounts/issues/179.

meeh0w commented 2 years ago

@ro-tex Well, I didn't expect the column names to change with this feature. I'd keep them consistent with GET /user/uploads response, so frontend is prepared to use: