Skip to content

GraphQl: Fix ordering handling#328

Merged
iLLiCiTiT merged 8 commits into
developfrom
bugfix/graphql-ordering-fix
May 15, 2026
Merged

GraphQl: Fix ordering handling#328
iLLiCiTiT merged 8 commits into
developfrom
bugfix/graphql-ordering-fix

Conversation

@iLLiCiTiT
Copy link
Copy Markdown
Member

Changelog Description

Make sure to use correct keys when order is descendent.

Additional review information

Make sure that ascending order uses after, endCursor and hasNextPage and descending order uses before, startCursor and hasPreviousPage.

Testing notes:

  1. Descending sorting should work correctly (can be defined for get_events or get_activities).

@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label May 14, 2026
@iLLiCiTiT iLLiCiTiT self-assigned this May 14, 2026
@iLLiCiTiT iLLiCiTiT requested a review from BigRoy May 14, 2026 15:45
Copy link
Copy Markdown
Member

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just one thing that stood out.

Comment thread ayon_api/graphql.py Outdated
@BigRoy BigRoy changed the title QraphQl: Fix ordering handling GraphQl: Fix ordering handling May 14, 2026
@iLLiCiTiT iLLiCiTiT merged commit c981cd5 into develop May 15, 2026
3 checks passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/graphql-ordering-fix branch May 15, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants