Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add second order_by parameter, as created_at might not be unique #3658

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 13, 2024

  1. Add second order_by parameter, as created_at might not be unique

    Resources included by decorators are ordered by 'created_at', which only
    has a resolution in seconds. This may lead to arbitrary ordering. To
    ensure a consistent ordering, 'guid', which has already been utilized by
    the SequelPaginator for secondary ordering, has been added to the
    decorators as well.
    
    Additional database statements aim to return the oldest or newest
    entries from a selection. For those, 'id' has been added as the second
    'order_by' parameter.
    
    The specs testing the results of included resources have been improved
    to ensure a specific ordering by setting a definitive creation date. In
    some instances, the matcher has been changed from 'match_array' to 'eq',
    enabling the tests to verify the order of elements.
    philippthun committed May 13, 2024
    Configuration menu
    Copy the full SHA
    42cdeda View commit details
    Browse the repository at this point in the history