Jake Barnby and Claude Opus 4.6
ecf0b4a1dd
fix: change $sequence to string type to support MongoDB UUID7 values
...
The Document and Row response models were casting $sequence to (int),
which destroyed UUID7 values on MongoDB. On MongoDB, $sequence is the
internal _id field which is a UUID7 string, not an auto-increment integer.
The (int) cast converted UUID7 values like "019c56a9-df6d-73fa-8d48-..."
to 19, making $sequence queries fail validation with 400.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 00:29:38 +13:00
Jake Barnby and Claude Opus 4.6
7708f13ebd
fix: revert database package, add debug output for $sequence query failures
...
- Revert utopia-php/database to 5.1.2 (the Sequence validator fix
incorrectly assumed $sequence is always integer, but on MongoDB
internal collections it uses UUID7)
- Revert Base.php change
- Add detailed error messages to testGetDocumentWithQueries and
testGetRowWithQueries to capture actual $sequence values and API
error responses for debugging
- Keep Messaging scheduledAt fix (30s initial, 15s rescheduled)
- Keep Functions auth retry improvement (10 retries with project refresh)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 00:09:31 +13:00
Jake Barnby and Claude Opus 4.6
5cf272b21a
fix: add $sequence to SELECT query in testGetDocumentWithQueries
...
The SELECT query didn't include $sequence, so accessing
$response['body']['$sequence'] returned null. The subsequent
Query::equal('$sequence', [null.'']) produced an empty string
which is invalid for the integer $sequence field, causing 400.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 22:02:09 +13:00
Jake Barnby
b7ce686d73
Merge branch '1.8.x' into feat-mongodb
2026-02-13 07:18:26 +00:00
Jake Barnby and Claude Opus 4.6
6f56c9c2ee
fix: Gate spatial index null tests on adapter capability
...
PostgreSQL supports spatial indexes on nullable columns and required
spatial attributes on existing data, unlike MariaDB. Expose
supportForSpatialIndexNull console variable and condition test
assertions accordingly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 06:22:53 +13:00
Jake Barnby and Claude Opus 4.6
e3c58a8c05
fix: Correct test capability gates and GraphQL dependencies
...
- Change spatial test gates from getSupportForRelationships() to
getSupportForSpatials() in both Legacy and TablesDB DatabasesBase
- Add both relationship AND spatial gates for spatial relationship tests
- Add missing @depends for float, email, and datetime attributes/columns
in GraphQL Server tests to ensure schema is complete before document/row
creation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 05:06:48 +13:00
Jake Barnby and Claude Opus 4.6
74b4c44bde
fix: Gate relationship test on adapter support in TablesDB
...
MongoDB doesn't support relationships, so testInvalidRelationshipDocumentId
returns 400 instead of 202. Skip the test when the adapter lacks support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 04:59:00 +13:00
fogelito
b2aa2cc247
typo
2026-02-12 16:36:37 +02:00
fogelito
5756b58d4d
$tableId
2026-02-12 15:59:34 +02:00
fogelito
2cb98a87c8
tablesdb
2026-02-12 15:58:39 +02:00
fogelito
db6a3342c0
fix tests
2026-02-12 15:52:39 +02:00
Jake Barnby
5590f0bcd0
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# .env
# .github/workflows/tests.yml
# app/controllers/api/projects.php
# app/controllers/api/teams.php
# app/init/registers.php
# app/views/install/compose.phtml
# composer.json
# composer.lock
# docker-compose.yml
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Create.php
# src/Appwrite/Platform/Tasks/Install.php
# src/Appwrite/Platform/Tasks/Upgrade.php
# tests/e2e/Services/Databases/Legacy/DatabasesBase.php
# tests/e2e/Services/Databases/TablesDB/DatabasesBase.php
2026-02-12 23:35:21 +13:00
Jake Barnby
4f7337759f
Expose row bytes used/bytes free on table/collection
2026-02-05 22:53:04 +13:00
Jake Barnby
e70739a3c0
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# Dockerfile
# app/controllers/api/account.php
# app/controllers/api/avatars.php
# app/controllers/api/console.php
# app/controllers/api/projects.php
# app/controllers/api/storage.php
# app/controllers/api/teams.php
# app/http.php
# app/init/database/filters.php
# app/init/registers.php
# app/init/resources.php
# app/views/install/compose.phtml
# composer.json
# composer.lock
# docker-compose.yml
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Update.php
# src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php
# src/Appwrite/Platform/Tasks/Install.php
# tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
2026-02-05 01:01:03 +13:00
premtsd-code
71670f8169
Merge branch '1.8.x' into fix-10612-validate-relationship-document-id
2026-01-28 11:17:50 +00:00
Prem Palanisamy
7f3ea98924
refactor: use array_is_list() and assertEventually helper
2026-01-27 13:00:29 +00:00
Prem Palanisamy
63e6a51af1
test: add assertion for relationship column polling
2026-01-26 15:45:42 +00:00
Prem Palanisamy
1ee2539ce0
fix: generate unique ID before validation per coderabbit suggestion
2026-01-26 15:45:42 +00:00
Prem Palanisamy
aed9816d1e
fix: validate relationship document ID
2026-01-26 13:48:32 +00:00
Darshan
16f9c35850
update: tests.
2026-01-04 12:09:11 +05:30
ArnabChatterjee20k
70395cfacc
added tableid and collectionid in increment and decrement
2025-12-13 23:43:51 +05:30
Darshan
ef5f0ed6b4
update: to use placeholders.
2025-12-11 15:26:45 +05:30
Jake Barnby
a8cf0a6176
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# app/controllers/api/teams.php
# app/init/resources.php
# composer.lock
# tests/e2e/Services/Databases/Legacy/DatabasesBase.php
# tests/e2e/Services/Databases/TablesDB/DatabasesBase.php
2025-12-10 20:12:27 +13:00
Jake Barnby
aec7f27ce4
Fix tests
2025-12-08 23:20:40 +13:00
Jake Barnby
2139a4d742
Format
2025-11-26 23:49:21 +13:00
Jake Barnby
092f623373
Fix tests
2025-11-26 22:49:39 +13:00
Jake Barnby
2776925540
Tests via console features
2025-11-25 21:11:01 +13:00
Jake Barnby
d8d970e03e
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# app/controllers/api/account.php
# app/controllers/api/messaging.php
# app/controllers/api/projects.php
# app/controllers/api/storage.php
# app/controllers/api/teams.php
# app/controllers/api/users.php
# composer.lock
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Decrement.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Increment.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Get.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/XList.php
# src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php
# src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php
# src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php
# src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Update.php
2025-11-20 17:46:19 +13:00
Jake Barnby
600da2a504
Add operator support
2025-10-31 11:47:20 +13:00
Jake Barnby
1e1df1ce2d
Fix skips
2025-10-24 00:06:58 +13:00
Jake Barnby
3f473f2790
Fix checks
2025-10-23 23:40:27 +13:00
Jake Barnby
94d02aff4f
Fix DB tests
2025-10-21 01:24:50 +13:00
Jake Barnby
4b0eddcc84
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# composer.json
# composer.lock
2025-10-07 18:16:02 +13:00
Jake Barnby
2566f4d98e
Add tostring
2025-10-06 14:16:01 +13:00
Jake Barnby
24f6da5610
Add assertions on tables DB
2025-10-06 13:47:21 +13:00
Jake Barnby
6881df6ae5
Fix expectations
2025-10-04 22:55:07 +13:00
Jake Barnby
faf837e389
Update db for index validation fix
2025-10-02 15:29:27 +13:00
Jake Barnby
3ecd7e6a95
Fix fts create on array
2025-10-01 22:02:41 +13:00
Jake Barnby
408bca400b
Fix spatial tests
2025-10-01 19:33:11 +13:00
Jake Barnby
f3460db369
Fix fulltext error
2025-10-01 12:30:48 +13:00
Jake Barnby
766c3293d2
Fix index text checks
2025-10-01 00:47:07 +13:00
Jake Barnby
daeb721995
Fix tests
2025-09-30 23:44:26 +13:00
shimon
ceda513083
Merge branch '1.8.x' of github.com:appwrite/appwrite into feat-mongodb-pulls
...
# Conflicts:
# composer.lock
# src/Appwrite/Platform/Workers/StatsUsage.php
# tests/e2e/Services/Databases/TablesDB/DatabasesBase.php
2025-09-21 15:55:11 +03:00
Jake Barnby
c1782f6f58
Don't remove required attributes
2025-09-19 15:28:41 +12:00
ArnabChatterjee20k
52ceddcd5a
linting
2025-09-17 20:02:36 +05:30
ArnabChatterjee20k
c5e9ec3969
added cases for checking default added or not
2025-09-17 20:00:10 +05:30
ArnabChatterjee20k
5b09ebe54b
added cases for with default values
2025-09-17 19:46:06 +05:30
ArnabChatterjee20k
4815780476
Add spatial column validation during required mode and tests for existing data in databases
2025-09-17 18:01:29 +05:30
shimon
b1e55702c8
Refactor MongoDB test cases for improved readability and consistency. Adjust whitespace in conditional statements and remove redundant test methods related to spatial columns. Add new tests for spatial distance queries and update existing tests to ensure proper functionality.
2025-09-16 19:14:09 +03:00
shimon
f16eba2f9f
Update PHPUnit configuration to stop on failure set to false, and clean up whitespace in multiple files for consistency. Adjust comments and ensure proper formatting in test cases and API handling.
2025-09-16 19:13:38 +03:00