Skip to content

fix(python): quote fql anchor values - #253

Open
kkkhs wants to merge 7 commits into
FraiseHQ:mainfrom
kkkhs:fix/python-quote-fql-values
Open

fix(python): quote fql anchor values#253
kkkhs wants to merge 7 commits into
FraiseHQ:mainfrom
kkkhs:fix/python-quote-fql-values

Conversation

@kkkhs

@kkkhs kkkhs commented Aug 31, 2026

Copy link
Copy Markdown

Pull Request

Type of change

  • Bug fix
  • New feature
  • Refactor / internal cleanup
  • Docs
  • Other:

Description of the changes

Quote Python SDK topic/entity clause values as FQL values, and quote recall terms that contain syntax-significant characters.

Motivation for the changes

This keeps model- or user-supplied anchors and recall terms from being parsed as FQL structure or rejected by the parser. Closes #234.

Breaking change?

  • No
  • Yes — details below
If yes, fill this in

What breaks:

Before → after:

// before

// after

Migration:

How it was tested

  • uvx --from uv==0.11.0 uv run --package fraise-sdk --all-extras pytest sdk/python/src/tests/query_test.py -m 'not integration'
  • make test-py UV_CMD='uvx --from uv==0.11.0 uv'
  • git diff --check
  • uvx --from ruff==0.16.0 ruff check --config=pyproject.toml sdk/python/src/fraise_sdk/query.py sdk/python/src/tests/query_test.py sdk/python/src/tests/client_test.py
  • uvx --from ruff==0.16.0 ruff format --check --config=pyproject.toml sdk/python/src/fraise_sdk/query.py sdk/python/src/tests/query_test.py sdk/python/src/tests/client_test.py
  • Not run: make test-integration-py UV_CMD='uvx --from uv==0.11.0 uv' (local environment has no docker binary).
  • Not completed: make lint-py UV_CMD='uvx --from uv==0.11.0 uv' (local Git is 2.20.1 and pre-commit calls git ls-files --deduplicate).

Checklist

  • Tests pass locally
  • Added/updated tests for the change (or explained why not)
  • Docs updated if behavior changed

Notes for reviewers

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kkkhs kkkhs closed this Sep 2, 2026
@kkkhs kkkhs reopened this Sep 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
@kkkhs
kkkhs marked this pull request as ready for review September 2, 2026 15:08
Copilot AI lite review requested due to automatic review settings September 2, 2026 15:08
@FraiseHQ FraiseHQ deleted a comment from github-actions Bot Sep 5, 2026
@RonsenbergVI
RonsenbergVI self-requested a review September 5, 2026 15:56
RonsenbergVI
RonsenbergVI previously approved these changes Sep 5, 2026

@RonsenbergVI RonsenbergVI left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

@RonsenbergVI
RonsenbergVI self-requested a review September 14, 2026 07:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: SDK interpolates unescaped anchors and colon-bearing terms into FQL

2 participants