Skip to content

chore(deps): allow utopia-php/query 0.9 - #1085

Merged
loks0n merged 1 commit into
mainfrom
chore/allow-query-0.9
Nov 26, 2026
Merged

loks0n merged 1 commit into
mainfrom
chore/allow-query-0.9

Conversation

@loks0n

@loks0n loks0n commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Widens the constraint to ^0.8.0 || ^0.9.0.

Query 0.9 is 0.8 with the PHP sources removed. It requires ext-utopia, so Composer only picks it where the extension is installed, and everyone else stays on 0.8. The lock stays on 0.8.0, which keeps the lanes without the extension working. The extension lane already runs the SQL adapters against the same native classes 0.9 depends on.

Blocks the utopia-php/query 0.9.0 release.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Broadened the accepted compatibility range for the query library to include compatible 0.9 releases, alongside the existing 0.8 releases. This may make it easier to use the package with projects relying on newer supported versions.

0.9 is 0.8 with the PHP sources removed: it requires the utopia extension,
whose classes the extension lane here already runs against. The lock stays
on 0.8 so the lanes without the extension keep working.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@loks0n loks0n self-assigned this Nov 26, 2026
@appwrite

appwrite Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
257e73d Reviewed Reviewed 🔵 A · Mergeable after minor fixes 💬 Commented View review

The constraint can select 0.9 in valid ext-utopia configurations where the query library is disabled, causing missing classes at runtime.

The Composer constraint now allows either utopia-php/query 0.8 or 0.9. The lockfile continues to resolve query 0.8.0 while updating its content hash and lock metadata.

Note

Not approving while a bug finding is open: ext-utopia alone does not guarantee the query library is enabled

Findings (1)
Finding Where
🟡 ext-utopia alone does not guarantee the query library is enabled composer.json:57
Fix with agent prompt
### Issue 1
composer.json:57
**ext-utopia alone does not guarantee the query library is enabled**

Composer satisfies this alternative whenever the extension is installed, even if an application configures `utopia.libraries=validators` or another explicit list without `query`. Query 0.9 removes the PHP implementations, so `Utopia\Query\NativeQuery` and the other query classes are then unavailable at runtime; the 0.8 PHP fallback worked in that configuration.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Walkthrough (2)
File Change
composer.json Allows utopia-php/query 0.9 alongside 0.8.
composer.lock Refreshes lock metadata while keeping utopia-php/query at 0.8.0.

Reviewed 257e73d

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Composer constraint for utopia-php/query now accepts versions matching ^0.8.0 or ^0.9.0.

Changes: Query dependency range

Layer / File(s) Summary
Widen the query dependency constraint
composer.json
The version constraint changes from ^0.8.0 to `^0.8.0

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

  • utopia-php/database#1084: Adds an extension-backed CI lane and changes the utopia-php/query constraint to ^0.8.0, which this PR widens.

Suggested reviewers: appwrite, abnegate

Merge Risk: Minimal · up to 257e7 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "chore(deps): allow utopia-php/query 0.9" matches the only functional change in the changeset. The composer.json constraint for utopia-php/query now accepts ^0.8.0 or ^0.9.0. The title names…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore(deps): allow utopia-php/query 0.9" matches the only functional change in the changeset. The composer.json constraint for utopia-php/query now accepts ^0.8.0 or ^0.9.0. The title names the dependency and the new version, so a reviewer scanning history can identify the main change. The title does not mention the ext-utopia requirement or the retained 0.8 lock, but those are supporting details and not the main point.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 922c075 and 257e73d.

Files ignored due to path filters: 1

  • composer.lock is excluded by !**/*.lock
Files selected for processing: 1

  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · See the inline comments. Summary

Comment thread composer.json
"utopia-php/pools": "^2.0",
"utopia-php/mongo": "^1.5.4",
"utopia-php/query": "^0.8.0",
"utopia-php/query": "^0.8.0 || ^0.9.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ext-utopia alone does not guarantee the query library is enabled

Composer satisfies this alternative whenever the extension is installed, even if an application configures utopia.libraries=validators or another explicit list without query. Query 0.9 removes the PHP implementations, so Utopia\Query\NativeQuery and the other query classes are then unavailable at runtime; the 0.8 PHP fallback worked in that configuration.

Prompt To Fix With AI
This is a comment left during a code review.
Path: composer.json
Line: 57

Comment:
**ext-utopia alone does not guarantee the query library is enabled**

Composer satisfies this alternative whenever the extension is installed, even if an application configures `utopia.libraries=validators` or another explicit list without `query`. Query 0.9 removes the PHP implementations, so `Utopia\Query\NativeQuery` and the other query classes are then unavailable at runtime; the 0.8 PHP fallback worked in that configuration.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟡 Minor · bug · Reply if this doesn't apply.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not changing: Composer cannot see utopia.libraries, and an app that lists libraries without query and installs 0.9 fails at boot with a missing class, not silently.

@loks0n
loks0n merged commit 36d8916 into main Nov 26, 2026
31 checks passed
@loks0n
loks0n deleted the chore/allow-query-0.9 branch November 26, 2026 01:58
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