Skip to content

test(postgrest)- Cover HEAD count with embedded filters - #1588

Open
Pranava-Pai-N wants to merge 1 commit into
supabase:mainfrom
Pranava-Pai-N:fix/postgrest-head-embedded-resource-count
Open

test(postgrest)- Cover HEAD count with embedded filters#1588
Pranava-Pai-N wants to merge 1 commit into
supabase:mainfrom
Pranava-Pai-N:fix/postgrest-head-embedded-resource-count

Conversation

@Pranava-Pai-N

Copy link
Copy Markdown

What kind of change does this PR introduce?

Bug fix regression test for PostgREST HEAD requests with embedded-resource filters.

What is the current behavior?

Queries using head=True, an exact count, and an embedded-resource filter can fail when the select parameter is missing:

'ref' is not an embedded resource in this request

Please link any relevant issues here.
#1585

What is the new behavior?

  • Add sync and async regression tests confirming that HEAD requests retain:
  • The embedded-resource select expression
  • The embedded-resource filter
  • The count=exact preference
  • The HEAD HTTP method

Additional context

The current implementation already preserves the select parameter for HEAD requests. This PR adds regression coverage to prevent that behavior from breaking in the future.

@Pranava-Pai-N
Pranava-Pai-N requested review from a team and o-santi as code owners August 24, 2026 18:53
@Pranava-Pai-N Pranava-Pai-N changed the title Test Postgrest - Cover HEAD count with embedded filters test(postgrest)- Cover HEAD count with embedded filters Aug 24, 2026
@Pranava-Pai-N

Copy link
Copy Markdown
Author

@o-santi Could you please review this PR solves issue #1585 and suggest any changes

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant