.. include:: /Includes.rst.txt .. _feature-1791887554: =================================================== Feature: Grouped lists and what depends on a record =================================================== Description =========== The employee lists, the leave requests and the schedule change requests are counted per group: by status, and by department, job position and location or by leave type, each named in the reader's language and counted with the search and every filter applied. A group is one value of a filter, so its rows are paged with that filter. The leave requests are sorted by their start or creation date as asked. Before a department is archived, the confirmation can name what depends on it: its employees today and its sub-departments, counted within the reader's scope. Archiving refuses with the same counts while they are assigned. Impact ====== The collection operations ``listEmployees``, ``listLeaveRequests`` and ``listScheduleChangeRequests`` take ``groupBy`` and answer ``meta.groups``; any other grouping key answers 400. ``listLeaveRequests`` sorts by ``startDate`` or ``createdAt`` only; another sort, until now ignored, answers 400. The new operation ``getRecordDependents`` answers for the record types the list registry names, and the 409 problem of ``archiveDepartment`` and the other structure entries carries ``dependents``. .. index:: API, package:adsum-core, package:adsum-leave, package:adsum-working-time