Contract Filesize sorting and filtering #824
Replies: 1 comment
-
For Sorting Contracts on Filesize, as far as I've been able to test, the frontend needs an additional ContractFilterSortField in the hostd-types api.ts as well as an update to SortField type and a new array item in SortOptions in web/apps/hostd/contexts/contracts/types.ts. However that only adds the Order By option in the View and it DOES NOT order the contracts correctly from my testing. I believe that would require updating the buildOrderBy function and possibly the buildContractFilter in persist/sqlite/contracts.go for the api/contracts POST call field 'sortField' to work right? Thats probably the same backend code that would allow to create filters on whether or not the filesize is 0 ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
For hosts, contract data integrity is important.
In this regard, it'd be useful to sort on the contracts active disk utilization to see what contracts are using the most storage.
It'd also be useful to filter on contracts that have or do not have active data to 'Select All -> Run Integrity Check' (filesize not capacity I believe based on SiaFoundation/core#220)
Version
v2.3.5
What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?
docker on ubuntu
Anything else?
Maybe this feature would also be useful for renterd? Not sure about walletd.
Beta Was this translation helpful? Give feedback.
All reactions