refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.95k stars 1.96k forks source link

fix(supabase): nested embedded resources sorting #6025

Closed youssefsiam38 closed 1 week ago

youssefsiam38 commented 3 weeks ago

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

When sorters value is

[
    {
        "field": "posts.categories.tags",
        "order": "asc"
    }
]

The resulted url query param

posts.order=categories.tags.asc

What is the new behavior?

When sorters value is

[
    {
        "field": "posts.categories.tags",
        "order": "asc"
    }
]

The resulted url query param

posts.categories.order=tags.asc

Notes for reviewers

Postgrest documentation

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: df5600f315f05f62591e43fe1ed8df703a5ffc54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------- | ----- | | @refinedev/supabase | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR