feat: migrate to utopia-php/database query-lib#11649
feat: migrate to utopia-php/database query-lib#11649
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
✨ Benchmark results
⚡ Benchmark Comparison
|
|
Found 128 test failures on Blacksmith runners: Failures
|
🔄 PHP-Retry SummaryThe number of flaky tests is too large to display in a single comment. |
d6bbf3f to
8280bda
Compare
…, worker.php, cli.php
Summary
Database::VAR_*,INDEX_*,PERMISSION_*,RELATION_*string constants with typed enums (ColumnType,IndexType,PermissionType,RelationType,ForeignKeyAction,RelationSide)getSupportFor*()adapter methods withinstanceof Feature\*and$adapter->supports(Capability::*)createAttribute(),createIndex(),createRelationship()worker calls to useAttribute,Index,Relationshipvalue objectsaddHook()registration for all database hooks (Permissions,Tenancy,Relationships,Decorator,Lifecycle)->on()closures to typedLifecyclehooksMetadatadecorator hook to replaceprocessDocument()recursion in all document CRUD endpointsprocessDocument(),checkPermissions(),prepareRelationships()closures from endpointsAttribute/Indexvalue objects (~3000 lines removed)createAttributesFromCollection()bug (raw arrays passed to method expectingAttributeobjects)Test plan
testAggregateCount,testAggregateSum,testAggregateAvg,testAggregateMinMax,testGroupBy,testGroupByWithHaving,testDistinct,testCountDistinct,testAggregateWithFiltertestJoin,testLeftJoin,testJoinWithAggregationtestJoinDeniedWithoutCollectionPermission,testJoinRespectsDocumentPermissions,testJoinWithApiKeyBypassesDocumentPermissions,testJoinToNonexistentCollection🤖 Generated with Claude Code