Commit graph

260 commits

Author SHA1 Message Date
Damodar Lohani
729db1aa17 fix date format 2024-05-09 03:08:27 +00:00
Eldad Fux
c53de9fb6b Merge branch 'main' of github.com:appwrite/appwrite into feat-eldad4-coroutines 2024-05-08 18:21:55 +01:00
Damodar Lohani
b27f70ee81 ignore few tests 2024-05-08 06:08:23 +00:00
Jake Barnby
aeea5e8328
Merge pull request #7341 from appwrite/collection-not-found
databases.php collection not found
2024-04-29 21:04:31 +12:00
Jake Barnby
ab7a5f4575
Fix test 2024-04-29 19:07:16 +12:00
Matej Bačo
9616de7576 Merge branch 'main' into refactor-usage-sn-1.5.x 2024-04-26 13:11:21 +02:00
Jake Barnby
476074cc5b
Add test 2024-04-23 15:20:25 +12:00
fogelito
e15afe65c0 Fix error 2024-04-18 11:33:17 +03:00
fogelito
6c92962468 composer.lock 2024-04-18 11:29:57 +03:00
fogelito
0e8bc6b4b4 Fix bad copy 2024-04-18 11:25:03 +03:00
fogelito
a7318fdf8b Chnage message 2024-04-18 09:26:11 +03:00
fogelito
f73f8c9ae1 Move test tp base 2024-04-09 18:24:01 +03:00
Matej Bačo
d091b37a15 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-02 18:42:17 +02:00
fogelito
b7103e9462 tests serviceStatusForDatabases 2024-03-21 22:59:09 +02:00
fogelito
cdb521a311 Try to reproduce 2024-03-21 22:23:19 +02:00
fogelito
d1be965e8c disable serviceStatusForDatabases 2024-03-21 22:20:39 +02:00
Damodar Lohani
b409efc492 fix path 2024-03-10 08:01:10 +00:00
Matej Bačo
efeb898be1 Import fixes 2024-03-07 15:29:42 +01:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
Damodar Lohani
5f4970befd fix path 2024-03-04 12:49:56 +00:00
Damodar Lohani
86dc85f3a4 fix file path 2024-03-04 12:17:35 +00:00
Jake Barnby
44ec1502f0
Merge remote-tracking branch 'origin/main' into 1.5.x 2024-02-26 18:35:25 +13:00
Utkarsh Ahuja
faeb9aa8d4 tests: internal id in query select 2024-02-25 14:22:12 +00:00
Jake Barnby
957f08a3ef
Fix max int test 2024-02-24 01:55:00 +13:00
fogelito
6c064430fb Merge branch '1.5.x' of github.com:appwrite/appwrite into json_syntax_error 2024-02-12 17:41:42 +02:00
fogelito
103fec1664 parseQueries 2024-02-08 18:10:25 +02:00
fogelito
98a6b96af9 Hardcode size and orders 2024-02-08 15:01:20 +02:00
fogelito
a782e20315 Merge branch '1.5.x' of github.com:appwrite/appwrite into json-parsing
 Conflicts:
	app/controllers/api/account.php
	composer.json
	composer.lock
	src/Appwrite/Platform/Tasks/CalcTierStats.php
	tests/e2e/Services/Account/AccountBase.php
2024-01-25 17:44:05 +02:00
Bradley Schofield
2b31c76918 Update DatabasesBase.php 2024-01-25 10:04:41 +00:00
Torsten Dittmann
80193175f1 test: fix database validator descriptions 2024-01-24 15:56:43 +01:00
fogelito
667abce8f5 Create indexes & query contains 2024-01-21 18:22:02 +02:00
fogelito
3689435176 Arrays tests 2024-01-21 10:10:18 +02:00
Jake Barnby
51b2019ab6
Merge remote-tracking branch 'origin/1.5.x' into json-parsing
# Conflicts:
#	composer.lock
2024-01-09 13:56:01 +13:00
fogelito
dc203a494e Syntax change 2023-12-20 12:55:09 +02:00
Jake Barnby
121521d7c5
Merge remote-tracking branch 'origin/1.5.x' into json-parsing
# Conflicts:
#	composer.lock
#	src/Appwrite/Platform/Tasks/DeleteOrphanedProjects.php
#	src/Appwrite/Platform/Tasks/Hamster.php
2023-12-15 18:22:08 +13:00
fogelito
310baef77f $queries to String 2023-12-10 20:05:33 +01:00
Christy Jacob
28d00668bd fix: failing tests 2023-12-09 00:48:34 +01:00
Christy Jacob
aa7d1a87f4 fix: failing tests 2023-12-09 00:27:35 +01:00
fogelito
630debdb84 Test 2023-12-06 19:07:29 +01:00
fogelito
cc81553cc5 orQueriesTest 2023-12-06 18:19:11 +01:00
Prateek Banga
ab35b75c37 fix test message 2023-11-17 20:14:55 +05:30
Prateek Banga
228b813994 fixes test case 2023-11-17 20:06:28 +05:30
Jake Barnby
354211950f
Add timeout test 2023-10-19 17:06:57 +13:00
Jake Barnby
efd25d6a70
Merge remote-tracking branch 'origin/feat-git-integration' into feat-framework-router-v2
# Conflicts:
#	app/controllers/api/users.php
#	composer.json
#	composer.lock
#	tests/e2e/Services/Storage/StorageBase.php
2023-08-22 17:58:42 -04:00
Jake Barnby
942705b5f3
Fix database upgrade 2023-08-21 23:25:55 -04:00
Jake Barnby
7cd995ac3c
Apply suggestions from code review 2023-08-11 12:29:55 -04:00
prateek banga
02d4b6b612 fix test case by adding internal attributes 2023-08-10 15:14:23 +05:30
prateek banga
185d09d764 adds more queries in tests, upgrade db library 2023-08-10 00:11:18 +05:30
Damodar Lohani
18407ce6ff remove failing alias and alias tests 2023-07-31 05:53:27 +00:00
prateek banga
484ad8280e fixes test case assertion 2023-07-27 02:29:14 +05:30
Prateek Banga
a6abc7c4e8 add support of queries in list indexes 2023-07-27 01:19:48 +05:30
Prateek Banga
ead77d6cad Add support for queries in List attributes endpoint 2023-07-27 01:16:34 +05:30
Jake Barnby
0363993f13
Fix errors 2023-06-15 17:28:35 +12:00
Jake Barnby
e44e4e7766
Merge pull request #5603 from appwrite/hotfix-route-mismatch
Update framework to fix route mismatches
2023-05-30 23:33:17 +12:00
Jake Barnby
d2bfe46fca
Set min length to 0 for default value when creating or updating a string attribute
(cherry picked from commit c61e54f69b)
2023-05-30 19:42:13 +12:00
Jake Barnby
bab804b8e1
Fix tests
(cherry picked from commit 0661f1f889)
2023-05-30 18:29:20 +12:00
Jake Barnby
c2e711b021
Update framework to fix route mismatches
(cherry picked from commit d42f6738a9)

# Conflicts:
#	composer.lock
2023-05-30 18:29:04 +12:00
Jake Barnby
30237ccfb1
Add test for updating existing document with relationship 2023-05-02 20:27:09 +12:00
Steven Nguyen
611dd9b86c
Return 404 if a user doesn't have access to a collection
It is better to return 404 so that an end user doesn't know if the
collection actually exists but they don't have access or they really
don't have access.
2023-04-19 17:21:41 -07:00
Jake Barnby
c7317b0468
Fix auto-setting custom ID on nested documents 2023-04-13 15:59:57 +12:00
Jake Barnby
84f4c757c3
Fix test 2023-04-11 16:21:22 +12:00
Jake Barnby
6591778f90
Fix query tests 2023-04-05 23:04:12 +12:00
Jake Barnby
eb8258d548
Fix tests 2023-03-31 21:29:02 +13:00
Jake Barnby
939a0c5591
Add missing instanceof check 2023-03-31 17:56:25 +13:00
fogelito
05d7badd60 Delete related on 2 way 2023-03-30 20:36:24 +03:00
Jake Barnby
2f709a2e89
Fix test 2023-03-30 22:05:35 +13:00
Jake Barnby
ed54d9861f
Add back validation for fulltext index on search queries 2023-03-30 19:57:56 +13:00
Jake Barnby
9468c238de
Remove conflicts 2023-03-30 13:01:58 +13:00
fogelito
5aff6969db add relations into attributes collection 2023-03-29 23:31:49 +03:00
fogelito
0638fec40d related attributes call tests 2023-03-29 18:43:54 +03:00
fogelito
1af33d1af7 related attributes call tests 2023-03-29 18:34:49 +03:00
Jake Barnby
505ffc91ae
Fix existing tests 2023-03-28 22:08:36 +13:00
fogelito
18be424fc0 Test list attributes 2023-03-27 18:24:02 +03:00
Jake Barnby
948f04e71c
Lint 2023-03-27 19:26:27 +13:00
Jake Barnby
1cf25199ab
Recurse through nested documents to set collection ID 2023-03-27 19:03:00 +13:00
Jake Barnby
275c6bb3a0
Set databaseId for all nested documents 2023-03-27 15:42:36 +13:00
Jake Barnby
64ee75e80d
Revert "Extract $options on get attributes list"
This reverts commit 0ef6f32a10.
2023-03-27 12:18:47 +13:00
Jake Barnby
9ac08b496b
Merge remote-tracking branch 'origin/feat-relations-2' into feat-relations-2 2023-03-27 12:18:29 +13:00
fogelito
0ef6f32a10 Extract $options on get attributes list 2023-03-26 19:39:26 +03:00
fogelito
276b1de2b0 Disable 2 way for ManyToOne relation test 2023-03-26 16:27:07 +03:00
Jake Barnby
ac8d4fcb2a
Add relationships to attribute response model tests 2023-03-25 16:29:40 +13:00
Jake Barnby
a48ce855c7
Move tests 2023-03-24 18:56:49 +13:00
Jake Barnby
24d1163703
Fix params 2023-03-24 16:57:56 +13:00
Jake Barnby
2775a92cdf
Add more tests 2023-03-24 16:48:50 +13:00
fogelito
e62e5c405a Select from parent and related 2023-03-23 18:34:49 +02:00
fogelito
3a7d00519f some tests assertArrayHasKey 2023-03-23 18:05:22 +02:00
fogelito
6539f15178 Fix return on test 2023-03-23 16:23:14 +02:00
fogelito
617a2c5fc8 New Queries Activation 2023-03-23 16:13:50 +02:00
fogelito
fad9ecd389 New Queries Activation 2023-03-23 16:11:02 +02:00
fogelito
969cff5e41 New Queries Activation 2023-03-23 16:08:38 +02:00
Jake Barnby
588d6651a2
Update tests 2023-03-23 18:34:13 +13:00
fogelito
60c54e2d10 Select Validator 2023-03-22 23:10:47 +02:00
fogelito
319698dab4 libraries 2023-03-22 19:14:41 +02:00
fogelito
34467de87d Update relationship get Attribute 2023-03-22 18:44:12 +02:00
fogelito
a824b46df0 Update relationship 2023-03-22 17:49:08 +02:00
fogelito
433b3be9ed $oneToMany tests 2023-03-21 19:52:25 +02:00
fogelito
e06e890279 query validators ignore nested 2023-03-21 14:32:05 +02:00
fogelito
a5f3af62bd Extract model options 2023-03-20 13:20:24 +02:00
fogelito
0c6f9bdb01 delete relation attribute 2023-03-19 19:31:15 +02:00
fogelito
eee29940bb Some tests 2023-03-19 19:09:17 +02:00
fogelito
038f4fc073 Some relation tests 2023-03-16 18:28:08 +02:00
fogelito
ca3efdf562 create relation 2023-03-12 16:04:18 +02:00
Steven Nguyen
85a2d623a6
Update APIs to check X-Appwrite-Timestamp header
Appwrite will refer to the X-Appwrite-Timestamp header for when the
request was originally sent and reject the request if the Timestamp
is older than the updatedAt timestamp of the document.
2023-03-07 10:54:52 -08:00
Jake Barnby
a28eaa80cf
Add test asserting indexes not required 2023-02-28 16:52:11 +13:00
Jake Barnby
b8c11a5643
Fix test 2023-02-21 13:38:19 +13:00
fogelito
91db596b42 remove static $dateValidator 2022-12-19 13:21:09 +02:00
fogelito
bdc3e9f935 $dateValidator 2022-12-15 10:51:27 +02:00
fogelito
d7a833faef Changing Role + Permissions namespace 2022-12-14 18:07:45 +02:00
fogelito
8ade726932 Changing Role + Permissions namespace 2022-12-14 18:04:06 +02:00
fogelito
f96128e14f Changing Id 2022-12-14 17:42:25 +02:00
Torsten Dittmann
d45464c6c8 fix: boolean attribute default value 2022-09-30 11:27:19 +02:00
Steven Nguyen
3da21ff2fc Update document model
1. Rename document.$collection to document.$collectionId
2. Add document.$databaseId
2022-09-14 00:53:37 +00:00
Matej Bačo
c3d04848f4 Mark permissions optional param 2022-09-01 13:14:15 +00:00
Matej Bačo
889eaff418 Merge remote-tracking branch 'origin/feat-list-users-queries' into feat-list-endpoints-queries 2022-08-29 08:52:28 +00:00
Jake Barnby
0389be522e Only give current user create access in create collection test 2022-08-27 20:29:32 +12:00
Jake Barnby
790276fced Review test updates 2022-08-27 15:16:37 +12:00
Matej Baco
fd1068a600 Merge branch 'feat-list-users-queries' into feat-list-endpoints-queries 2022-08-25 10:56:06 +02:00
Jake Barnby
e0a1f4b8fe Database test updates 2022-08-25 01:32:52 +12:00
Matej Bačo
4645fcd0c8 Fix tests 2022-08-24 10:31:47 +00:00
Matej Bačo
bd7395cb44 Bug fixing, upgrade tests to new syntax 2022-08-24 09:22:13 +00:00
fogelito
9c82a842b6 tests for database + account 2022-08-15 19:08:17 +03:00
Jake Barnby
77a28a2de7 Don't use ID helper with existing ID's 2022-08-15 23:24:31 +12:00
Jake Barnby
613a0f8006 ID and test fixes 2022-08-15 02:22:38 +12:00
Jake Barnby
9c260164ef Merge remote-tracking branch 'origin/feat-datetime-attributes-with-database-query-update' into refactor-permissions-inc-queries-update-datetime-fixes
# Conflicts:
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	composer.json
#	composer.lock
2022-08-14 23:46:34 +12:00
Jake Barnby
6a5de3e0b6 Merge remote-tracking branch 'origin/fix-datetime-attributes' into refactor-permissions-inc-queries-update-datetime-fixes
# Conflicts:
#	app/config/collections.php
#	app/controllers/api/databases.php
#	app/controllers/api/projects.php
#	app/controllers/api/teams.php
#	composer.json
#	composer.lock
#	tests/e2e/Services/Account/AccountBase.php
#	tests/e2e/Services/Databases/DatabasesBase.php
#	tests/e2e/Services/Functions/FunctionsCustomServerTest.php
#	tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
#	tests/e2e/Services/Storage/StorageBase.php
#	tests/e2e/Services/Storage/StorageCustomClientTest.php
#	tests/e2e/Services/Storage/StorageCustomServerTest.php
#	tests/e2e/Services/Teams/TeamsBase.php
#	tests/e2e/Services/Webhooks/WebhooksBase.php
#	tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php
#	tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php
#	tests/unit/Auth/AuthTest.php
2022-08-14 23:11:05 +12:00
Jake Barnby
b007acfa95 ID updates 2022-08-14 22:33:36 +12:00
Steven
610ec1a6a4 Update database query syntax 2022-08-14 05:44:55 +00:00
Jake Barnby
fe5d3a1892 Use permission helpers 2022-08-14 17:21:11 +12:00
Jake Barnby
68cc919aaa Test fixes 2022-08-14 02:10:28 +12:00
Steven
1abe9d4c01 Merge branch '0.16.x' into fix-datetime-attributes 2022-08-12 22:54:33 +00:00
Jake Barnby
d2b9102f84 Merge remote-tracking branch 'origin/0.16.x' into refactor-permissions-inc-console-fix
# Conflicts:
#	tests/e2e/Services/Databases/DatabasesBase.php
#	tests/e2e/Services/Databases/DatabasesCustomServerTest.php
2022-08-13 00:54:27 +12:00
fogelito
db5d737235 Merge branch '0.16.x' of github.com:appwrite/appwrite into origin/datetime-api
 Conflicts:
	tests/e2e/Services/Databases/DatabasesBase.php
2022-08-09 14:37:21 +03:00
Jake Barnby
216486a4c6 Fix DB tests 2022-08-09 18:03:41 +12:00
Jake Barnby
8317b167ce Databases test fixes 2022-08-08 23:00:03 +12:00
Jake Barnby
62b1eba836 Replace write refs 2022-08-05 17:23:18 +12:00
Jake Barnby
1ab86c9331 Role reference updates 2022-08-03 16:17:49 +12:00
Jake Barnby
9a182d615a Refactor databases to use new permissions 2022-08-02 21:18:49 +12:00
fogelito
3df0ba27fd testPersistantCreatedAt 2022-08-01 17:00:57 +03:00
Torsten Dittmann
6db2ce2a40 fix: datetime structure validator 2022-08-01 13:43:30 +02:00
fogelito
13474985dc tests need to fix error 500 on line 2096 2022-07-31 16:06:50 +03:00
fogelito
468692f5e4 some more tests 2022-07-31 15:32:41 +03:00
fogelito
d6760bfbee fix tests $created and datetime queries 2022-07-31 13:07:15 +03:00
fogelito
a587547e2c queries tests for datetime and more 2022-07-28 18:24:17 +03:00
fogelito
ba40ac4e90 Change models Class name 2022-07-28 13:26:22 +03:00
fogelito
3cc23c8e5b Add attribute datetime 2022-07-25 12:18:08 +03:00
fogelito
95fc47048a Add attribute datetime 2022-07-25 12:09:51 +03:00
fogelito
b58c04c28b Add attribute datetime 2022-07-25 11:53:41 +03:00
Bradley Schofield
74a53af316 Fix Tests 2022-07-18 14:22:23 +01:00
Torsten Dittmann
5604a6837f Merge branch '0.16.x' of https://github.com/appwrite/appwrite into origin/datetime-attributes 2022-07-14 14:14:05 +02:00
fogelito
f676a0bf9e change test validations from strings to datetime 2022-07-12 19:44:58 +03:00