Skip to content

Missing sort parameter in pageables of the services #44

Description

@trivesc

Category: Bug
Severity: High

With new versions of devon4j it seems that its necessary to have a sort inside the pageable, even if its empty. This part of the explanation seems missing both in frontend and backend.
For example:

 getCurrentlyAttendedAccessCode(): Observable<AccessCode> {
    const filters: FilterAccessCode = new FilterAccessCode();
    const pageable: Pageable = new Pageable();

    filters.endTime = null;
    pageable.pageNumber = 0;
    pageable.pageSize = 1;
    pageable.sort = new Array();
    filters.pageable = pageable;

This means the interface has to change too:

export class Pageable {
    pageSize: number;
    pageNumber: number;
    sort: Sort[];
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions