Repository navigation
Conversation
The Appwrite SDK constraint sat at ^27.1 while appwrite/appwrite runs this package against 32.2.0, so a standalone install resolved an SDK five majors behind the one packages/abuse is exercised with. Nothing the TablesDB adapter calls moved between the two: the TablesDB service keeps its signatures (the create endpoints only gained a trailing optional description), Query, ID and TablesDBIndexType keep theirs, and the Row model it reads keeps id and data. The SDK's own requirements tightened to PHP >=8.5, psr/http-client ^1.0 and utopia-php/client ^0.6, all of which abuse already requires. TablesDBTest now covers setup() against a recording client, so the requests it makes are pinned without a backend: the table created with its columns and indexes inline and nothing polled, and the repair path a half-finished setup leaves behind, where each column goes through its own endpoint and the index types round trip through TablesDBIndexType. The same requests go out on 27.1 and on 32.2. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Thanks for contributing! This repository is a read-only mirror; development for this library happens in |
🟢 Tier S · Ready to merge
Updates the Appwrite PHP SDK requirement to
📂 Walkthrough · 4
Reviewed |
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Follow-up to appwrite/appwrite#15409 (code-scanning alert appwrite:appwrite:alert#4695) landing in the dependency this package tracks.
That fix is entirely server-side:
assertProviderType()andrequireAttachmentsScope()on the messaging module'sMessages\Action, soPATCH /v1/messaging/messages/{sms,push,email}/:messageIdcan only reach a message of its own provider type. It touchessrc/Appwrite/Platform/Modules/Messaging/**and the messaging e2e tests — noappwrite/appwriteSDK class, no API spec, and nothing underpackages/abuse. There is no API change here to adapt to.What the review did turn up is that the SDK constraint had drifted.
composer.jsonpinnedappwrite/appwrite: ^27.1, while appwrite/appwrite's rootcomposer.jsonrequires^32.2.0and its lock resolves 32.2.0 — so the code inpackages/abuseis exercised against 32.2.0 upstream, and a standalone install of this mirror resolved an SDK five majors behind it.Changed
appwrite/appwrite^27.1→^32.2.0.The adapter needed no changes. Reviewing 27.1.0 → 32.2.0 against everything
TimeLimit\Appwrite\TablesDBtouches:Services\TablesDBkeeps every signature the adapter calls.createTable,create{String,Datetime,Integer}ColumnandcreateIndexonly gained a trailing optional?string $description, after the arguments the adapter passes positionally.Query,IDandTablesDBIndexTypekeep theirs (TablesDBIndexTypegained aTRIGRAMcase;KEY(),UNIQUE()andfrom()are unchanged), andService::__construct(Client $client)still takes the client the adapter is handed.Models\Rowkeepsidanddata,RowListkeepsrowsandtotal, andColumnListstill hands back raw column payloads — the shaperesourceStatus()already accommodates.Models\ColumnIndexgained adescriptionproperty, which this package only ever reads throughlistIndexes().>=8.5,psr/http-client^1.0andutopia-php/client^0.6. abuse already requires all three, so resolution is unaffected.http://endpoint on a host forcinghttps://) now fails the call instead of being followed with the API key attached.Test Plan
TablesDBTestgains coverage ofsetup()through a recording client (SetupTablesDBClient), so the requests it makes are pinned without an Appwrite backend:TablesDBIndexType.Both tests pass unchanged on
appwrite/appwrite27.1.0 and 32.2.0, which is the compatibility claim above, stated as a test.Run on PHP 8.5.12 with 32.2.0 resolved: unit suite 49 tests / 160 assertions green;
TablesDBFixtureTestandDiscoveryTest9 tests / 81 assertions green, the fixture test driving the real SDK over HTTP against an owned endpoint, so the rewritten PSR-18 transport is covered; PHPStan level max clean; Rector dry run clean. TheE2E\Appwrite\TablesDBTestsuite was not run — it skips withoutAPPWRITE_ENDPOINT,APPWRITE_PROJECT_IDandAPPWRITE_API_KEYfor a disposable project.Note
This repository is a read-only mirror of
packages/abuse. The same one-line constraint bump and tests belong in appwrite/appwrite for the mirror to stay in sync.🤖 Generated with Claude Code