Simplify filters and make cross control slots not show by default (#782)

* Simplify filters and make cross control slots not show by default
Also sort author levels by oldest levels first rather than newest levels first.

* Fix unit test expecting slots to sorted by timestamp descending

* Remove errant whitespace
This commit is contained in:
Josh 2023-06-05 17:53:41 -05:00 committed by GitHub
parent 2a85b6a136
commit a69d94054b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 114 additions and 58 deletions

View file

@ -49,7 +49,9 @@ public class SlotsController : ControllerBase
SlotQueryBuilder queryBuilder = this.FilterFromRequest(token).AddFilter(new CreatorFilter(targetUserId));
SlotSortBuilder<SlotEntity> sortBuilder = new SlotSortBuilder<SlotEntity>().AddSort(new FirstUploadedSort());
SlotSortBuilder<SlotEntity> sortBuilder = new SlotSortBuilder<SlotEntity>()
.AddSort(new FirstUploadedSort())
.SortDescending(false);
List<SlotBase> slots = await this.database.GetSlots(token, queryBuilder, pageData, sortBuilder);