Skip to content

chore(deps): take utopia-php/database 8.3.12 - #14723

Merged
HarshMN2345 merged 2 commits into
mainfrom
chore-database-8.3.12
Oct 21, 2026
Merged

HarshMN2345 merged 2 commits into
mainfrom
chore-database-8.3.12

Conversation

@HarshMN2345

Copy link
Copy Markdown
Member

What changed

Bumps utopia-php/database from 8.3.10 to 8.3.12.

  • 8.3.12 (utopia-php/database#1044): when a row is created or updated with a many-to-one, one-way one-to-one, or one-to-many child relationship, the user needs only read permission on the related row again. Since 8.0.1 these links needed update, so creating a row that pointed at a read-only table failed with 401 No permissions provided for action 'update'. Many-to-many links, and changes made to a related row, still need update.
  • 8.3.11 (utopia-php/database#1043): retries the cache invalidation a write waits on before refusing it.

Tested

Links by the key on the written row (many-to-one, one-way one-to-one,
one-to-many child) need only read permission on the related row again,
as before 8.0.1 (utopia-php/database#1044). Also takes the cache
invalidation retry from 8.3.11 (utopia-php/database#1043).
@luxor-code-review

luxor-code-review Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR updates the utopia-php/database dependency constraint in composer.json from its previous floor to ^8.3.12, a patch-level bump that pulls in upstream fixes without changing any application code.

Files Change
composer.json Raises the utopia-php/database constraint to ^8.3.12.

The composer.lock file is not included in the diff, so the resolved version will be determined at install time.

Reviewed commit: b2721e3

@ghost

ghost commented Oct 21, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

Updates the utopia-php/database requirement and lockfile from 8.3.10 to 8.3.12, bringing in the relationship-permission and cache-invalidation retry changes. Adds a nested-permissions regression test covering the relationship types and permission cases affected by the upgrade.

Latest changes: The newest commit adjusts the nested-permissions matrix so a many-to-one link succeeds with read permission alone, including under document security, while the other tested relationship types still require update permission.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 3
File Change
composer.json Raises the required utopia-php/database version to 8.3.12.
composer.lock Locks utopia-php/database to 8.3.12.
tests/unit/Databases/NestedPermissionsTest.php Adds nested relationship permission coverage, including read-only many-to-one links.

Reviewed the commits since b2721e3 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost 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 S · Looks good to merge. Summary

@github-actions

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

19 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (12)
  • php.appwrite.secret-compare-timing (5)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → chore-database-8.3.12 (after).

Metric Before After Change
🚀 Requests/sec 189.82 200.14 🟢 +5.4%
⏱️ Latency P50 87.71 ms 86.42 ms ⚪ -1.5%
⏱️ Latency P95 221.63 ms 206.48 ms 🟢 -6.8%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 86.42 206.48 12,540 200.14 -15.15
Account 159.05 294.32 660 11.34 -47.41
TablesDB 83.45 156.25 6,820 112.32 -17.45
Storage 80.62 198.72 3,300 55.69 +6.82
Functions 122.89 234.84 1,760 30.5 -17.95

Top API waits (after)

API request Max wait (ms)
account.name.update 450.12
account.prefs.update 445.74
functions.create 392.63
account.get 384.47
storage.files.create 382.19

database 8.3.12 lets a many-to-one link to a stored document go through
with read permission on it, as before 8.0.1, so the nested permission
cases no longer expect that link to be refused without update.
@HarshMN2345
HarshMN2345 merged commit 8f3da7a into main Oct 21, 2026
7 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.

1 participant