Skip to content

fix(operations): use GET for schema_changes operation - #165

Merged
tharropoulos merged 2 commits into
typesense:masterfrom
abhirajadhikary06:fix/schema-changes-get-method
Nov 27, 2026
Merged

tharropoulos merged 2 commits into
typesense:masterfrom
abhirajadhikary06:fix/schema-changes-get-method

Conversation

@abhirajadhikary06

@abhirajadhikary06 abhirajadhikary06 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #164

Summary

Fixes Operations.perform("schema_changes") and AsyncOperations.perform("schema_changes") sending POST instead of GET to /operations/schema_changes.

Changes

  • Update AsyncOperations.perform in src/typesense/async_/operations.py to call self.api_call.get(...) when operation_name == "schema_changes", keeping self.api_call.post(...) for all other operations.
  • Apply the corresponding sync update in src/typesense/sync/operations.py.
  • Add unit tests (via respx) and integration tests for schema_changes (sync and async) in tests/operations_test.py.

Testing

  • Verified py_compile on all modified files.
  • Verified Operations.perform with httpx.MockTransport (GET /operations/schema_changes, POST /operations/vote) and AsyncOperations.perform with AsyncMock.
  • Please run the full CI suite (run-unasync.py --check, ruff, mypy, and pytest) against a live Typesense instance.

@abhirajadhikary06

Copy link
Copy Markdown
Contributor Author

@tharropoulos can you review this pr ?

@tharropoulos
tharropoulos merged commit 9b91f2a into typesense:master Nov 27, 2026
4 checks passed
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.

operations.perform("schema_changes") sends POST instead of GET

3 participants