Skip to content

Conversation

@zoedsoupe
Copy link
Member

@zoedsoupe zoedsoupe commented Jul 15, 2025

This pull request introduces significant improvements to the Supabase PostgREST library, focusing on enhanced query building, filter processing, and integration testing. Key changes include the addition of helper functions for headers and query parameters, extended support for complex filter conditions, refactored query-building logic, and comprehensive integration tests to ensure robust functionality.

Enhancements to filter processing:

Refactoring query-building logic:

  • lib/supabase/postgrest/query_builder.ex: Refactored insert and upsert methods to streamline conflict handling and header/query parameter construction using helper functions. Added maybe_add_conflict_query for cleaner conflict query management. [1] [2]

Addition of helper functions:

Comprehensive integration tests:

  • test/supabase/postgrest/integration_test.exs: Added integration tests to validate complex query chains, transformations, foreign table operations, edge cases, and method-specific behaviors, ensuring the library's reliability in real-world scenarios.

@zoedsoupe zoedsoupe changed the title 'fix: massive tests, fixed query param and filter minor bugs' fix: massive tests, fixed query param and filter minor bugs Jul 15, 2025
@zoedsoupe zoedsoupe merged commit 51b7747 into main Jul 15, 2025
15 checks passed
@zoedsoupe zoedsoupe linked an issue Jul 15, 2025 that may be closed by this pull request
@zoedsoupe zoedsoupe mentioned this pull request Jul 15, 2025
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.

Write more intensive automated tests

2 participants