Skip to content

set_orders applies arbitrary orderings. #61

@helenst

Description

@helenst

I believe Orderable.set_orders does not work as it should. We are experiencing random orderings of items each time it is applied.

I think this is because the orders list that gets zipped up with the list of object pks comes from a set of objects pulled out of the database by filter - so it's arbitarily ordered. (Possibly database-specific, this is postgres). I think a solution could be to sort the orders list before zipping it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions