1
0
Fork 0
mirror of synced 2024-08-19 04:01:38 +12:00
Commit graph

510 commits

Author SHA1 Message Date
Prateek Banga
54ea98afb5 updated logic to skip checking permission if no change in new document 2023-07-27 02:03:10 +05:30
Prateek Banga
0fc0255a38 Skipping checking permission of relations that are not being updated 2023-07-27 02:02:34 +05:30
prateek banga
301af0d3fe fixes lint issues and adds status in list attributes query support 2023-07-27 01:24:47 +05:30
Prateek Banga
98a226dae9 adds collection and database calls for better error messages 2023-07-27 01:20:16 +05:30
Prateek Banga
a6abc7c4e8 add support of queries in list indexes 2023-07-27 01:19:48 +05:30
Prateek Banga
165268cb71 remove unnecessary db call 2023-07-27 01:17:19 +05:30
Prateek Banga
a842d7eeae fix queries param description 2023-07-27 01:17:10 +05:30
Prateek Banga
ead77d6cad Add support for queries in List attributes endpoint 2023-07-27 01:16:34 +05:30
Bishwajeet Parhi
f160c55ecb Chore: remove encrypt param on update Atrribute and tests as well 2023-07-26 11:25:25 +05:30
Bishwajeet Parhi
a15551368f Merge branch 'master' into feat-add-encrypt-param 2023-07-26 11:20:06 +05:30
Prateek Banga
f7c02d9308 removes extra db call and uses document find method 2023-07-24 23:41:49 +05:30
Prateek Banga
7d412b4741 adds get db call and get collection call 2023-07-24 12:02:28 +05:30
Prateek Banga
d569c17764 Merge branch 'master' of https://github.com/appwrite/appwrite into change-use-find-instead-iterating-index-array 2023-07-21 00:49:15 +05:30
Prateek Banga
b700336d45 fix get index route to use find 2023-07-20 14:52:05 +05:30
Steven Nguyen
187f3dc6ff
Update get logs APIs to return userId from data
The audit userId is actually the internal id and the user id is in the
data attribute.
2023-07-19 22:49:51 -07:00
Prateek Banga
8328dac86b lint issues 2023-07-19 14:08:02 +05:30
Prateek Banga
131e9658a5 change to use findOne instead of iterating index array 2023-07-19 14:04:35 +05:30
Damodar Lohani
4fd5c72f34 Merge branch 'master' into feat-1.4.x-with-1.3.x-master 2023-07-19 07:39:37 +00:00
Steven Nguyen
300d916621
Update get logs APIs to return userId from data
The audit userId is actually the internal id and the user id is in the
data attribute.
2023-07-12 10:27:57 -07:00
Bishwajeet Parhi
07df99c817 update description 2023-07-11 19:16:22 +05:30
Damodar Lohani
f59d3563f4 Merge remote-tracking branch 'origin/feat-db-pools-master' into feat-db-pools-db-pools-master-sync 2023-07-10 03:06:48 +00:00
Bishwajeet Parhi
f71fdfb0b9 chore: add encrypt param on update string attr + unit tests 2023-07-08 20:58:41 +05:30
Prateek Banga
f24cf729c3 fixed relationship update bug in two way type 2023-07-07 23:50:06 +05:30
Bishwajeet Parhi
e98e1db046 chore: fix trailing comma 2023-06-22 11:55:27 +05:30
Bishwajeet Parhi
cb35d2dbbe chore: fix missing nullable required param 2023-06-22 11:53:29 +05:30
Bishwajeet Parhi
ee30a3e9f4 chore: refactor tests and param positioning changes 2023-06-22 09:59:09 +05:30
Bishwajeet Parhi
7ce10023c0 chore: add tests and remove encrypt param on url,enum,ip,email 2023-06-21 16:15:00 +05:30
Bishwajeet Parhi
4efd178f40 remove encrypt on non string attributes 2023-06-21 15:22:04 +05:30
Bishwajeet Parhi
3aabaeb8be Merge branch 'master' into feat-add-encrypt-param 2023-06-21 15:12:47 +05:30
faisalill
7e8f6f748a fixed incorrect audity activity on document create 2023-06-17 00:20:37 +05:30
Jake Barnby
95b06c660a
Add index validator 2023-06-15 17:29:03 +12:00
Damodar Lohani
57411db2d3 upadate to use refactored collections config 2023-06-15 00:34:12 +00:00
Jake Barnby
031f8270ff
Merge remote-tracking branch 'origin/1.4.x' into validator-mv
# Conflicts:
#	composer.lock
2023-06-15 12:28:32 +12:00
Jake Barnby
b7f4f57521
Add new error message to differentiate between missing data and missing data + permissions for document updates 2023-06-07 13:51:24 +12:00
shimon
d820d93ac7 databases worker 2023-06-04 19:25:56 +03:00
Bishwajeet Parhi
0d3b50a07d Merge remote-tracking branch 'upstream/master' into feat-add-encrypt-param 2023-06-01 21:46:31 +05:30
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
Bishwajeet Parhi
08746d0390 chore: misc fixes 2023-05-30 12:47:55 +05:30
Bishwajeet Parhi
967ac1b82c chore: remove nullable param 2023-05-30 12:34:32 +05:30
Bishwajeet Parhi
69504bfaac add encrypt param 2023-05-30 12:30:10 +05:30
Jake Barnby
c61e54f69b
Set min length to 0 for default value when creating or updating a string attribute 2023-05-30 14:52:59 +12:00
Bishwajeet Parhi
68c56daba1 add extra check for admin modes 2023-05-26 17:08:09 +05:30
Bishwajeet Parhi
2873918cc5 Update databases.php
fix: tests
2023-05-24 22:56:58 +05:30
Bishwajeet Parhi
e496419572 remove formatting updates 2023-05-24 22:24:57 +05:30
Bishwajeet Parhi
6fc176d508 chore: add admin mode assertion for create collection 2023-05-24 17:58:40 +05:30
Bishwajeet Parhi
4706e6580d chore: add new checks 2023-05-24 15:39:08 +05:30
shimon
432ee72071 Merge branch 'feat-db-pools' of github.com:appwrite/appwrite into refactor-workers
 Conflicts:
	app/cli.php
	app/console
	app/controllers/api/account.php
	app/controllers/api/functions.php
	app/controllers/api/teams.php
	app/controllers/shared/api.php
	app/init.php
	app/worker.php
	app/workers/builds.php
	app/workers/certificates.php
	app/workers/deletes.php
	app/workers/functions.php
	app/workers/mails.php
	src/Appwrite/Event/Event.php
	src/Appwrite/Event/Mail.php
2023-05-22 18:41:24 +03:00
Bishwajeet Parhi
c2a13b079e chore: lowercase 2023-05-19 12:54:07 +05:30
Bishwajeet Parhi
40f70faa89 Feat: Add enable param in Database and Collection 2023-05-18 18:55:22 +05:30
fogelito
aae6b932d3 remove unnecessary hint 2023-05-16 17:49:12 +03:00
fogelito
f6153b7626 Use array instead of variadic 2023-05-16 15:56:20 +03:00
fogelito
d55dc7a5b2 Merge branch 'master' of github.com:appwrite/appwrite into validator-mv 2023-05-07 12:23:02 +03:00
Christy Jacob
60f51580a7
Merge pull request #5246 from singhbhaskar/fix-4960-Database-usage-screen-shows-500-error-when_APP_USAGE_STATS-is-disabled
Fix: Updated error when _APP_USAGE_STATS is disabled
2023-05-04 20:47:50 +05:30
fogelito
c51d4b386b Merge branch 'master' of github.com:appwrite/appwrite into validator-mv
 Conflicts:
	composer.json
	composer.lock
2023-05-03 14:56:03 +03:00
Jake Barnby
2eafda4ee2
Fix update document merging existing data after pre-processing instead of before 2023-05-02 19:53:11 +12:00
fogelito
5e4ff01568 getByType 2023-05-01 12:18:50 +03:00
fogelito
36dee1f345 Alias change 2023-04-27 15:10:07 +03:00
fogelito
9e5af4c046 Alias change 2023-04-27 15:01:40 +03:00
fogelito
0460b59cdc Namespace Changes 2023-04-27 14:59:05 +03:00
fogelito
e631453e3b documents name changes 2023-04-27 09:59:55 +03:00
fogelito
9dcf4c0984 validations changes 2023-04-25 14:35:49 +03:00
Bhaskar Singh
3865f48d32 Moved check for _APP_USAGE_STATS
to create init hook for App
2023-04-21 23:09:01 +05:30
Steven Nguyen
3f72b738fa
Fix related creates 2023-04-20 18:44:53 -07:00
Steven Nguyen
e8dee9296c
Fix update document not merging existing data 2023-04-20 10:10:51 -07:00
Steven Nguyen
4113ae7ca5
Allow updating document with read-only relationship
A user should be able to update a document without touching the
relationship.

Relates: https://github.com/appwrite/appwrite/issues/5404
2023-04-19 17:21:41 -07:00
Steven Nguyen
37afb82d1c
Delegate permissions check to database layer 2023-04-19 17:21:41 -07: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
Steven Nguyen
50bb69290f
Ensure collections are created with permissions and documentSecurity 2023-04-19 17:21:41 -07:00
Jake Barnby
0dea80c9da
Cache whether relation is a list 2023-04-14 22:03:16 +12:00
Jake Barnby
975b044de0
Iterate relation by reference on update 2023-04-13 16:08:53 +12:00
Jake Barnby
c7317b0468
Fix auto-setting custom ID on nested documents 2023-04-13 15:59:57 +12:00
Jake Barnby
f869252d90
Remove redundant import 2023-04-12 03:00:09 +12:00
Jake Barnby
f00bd7dac7
Merge remote-tracking branch 'origin/1.3.x' into feat-relations-2
# Conflicts:
#	composer.lock
2023-04-11 17:25:26 +12:00
Jake Barnby
7f8f34793e
Merge remote-tracking branch 'origin/1.3.x' into doc-db-relationships
# Conflicts:
#	composer.lock
2023-04-11 15:57:35 +12:00
Jake Barnby
5485346b5e
Fail validation on nested attribute query 2023-04-11 15:40:14 +12:00
Jake Barnby
e123188b0a
Fix list document total 2023-04-10 20:51:38 +12:00
Jake Barnby
d44f69df09
Delete collection relationships from deletes worker 2023-04-06 15:40:39 +12:00
Jake Barnby
deb2751cbf
Fix copy error 2023-04-06 02:57:37 +12:00
Jake Barnby
b252fe847f
Add custom delete restricted error 2023-04-06 00:54:44 +12:00
Jake Barnby
1bf15a7cc2
Update database + console 2023-04-05 20:13:51 +12:00
Jake Barnby
599a0d0781
Catch, clear cache and re-throw for unhandled exceptions on attribute create 2023-04-05 18:48:57 +12:00
Jake Barnby
4624241d32
Update app/controllers/api/databases.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2023-04-05 18:19:40 +12:00
Jake Barnby
2153f65893
Update app/controllers/api/databases.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2023-04-05 18:19:25 +12:00
Jake Barnby
ed8911e0a6
Remap internal attributes when updating existing document 2023-04-03 22:45:10 +12:00
Jake Barnby
6aba92bf8b
Add missing instanceof checks 2023-04-03 22:39:31 +12:00
Jake Barnby
460d52f948
Add unique ID when no ID passed for nested documents 2023-04-03 20:21:28 +12:00
Jake Barnby
3d95f7e129
Fix cache invalidation when deleting database 2023-04-03 15:51:44 +12:00
Jake Barnby
3cfbdf07b7
Fix cache invalidation when updating attributes 2023-04-03 15:43:14 +12:00
Jake Barnby
fec374fe59
Delete two way relationship attributes on collection delete 2023-03-31 19:56:35 +13:00
Jake Barnby
bcf5b4bfab
Update related two way attribute 2023-03-31 18:38:37 +13:00
Jake Barnby
3bbe6d4da8
Disallow updating two-way 2023-03-31 18:19:46 +13:00
Jake Barnby
578d4d1619
Disallow index creation on relationship attributes 2023-03-31 18:06:50 +13:00
Jake Barnby
939a0c5591
Add missing instanceof check 2023-03-31 17:56:25 +13:00
Jake Barnby
bf4e2df45b
Allow 'unique()' for nested document IDs 2023-03-31 17:33:21 +13:00
fogelito
05d7badd60 Delete related on 2 way 2023-03-30 20:36:24 +03:00
Damodar Lohani
41d22fb50b Merge remote-tracking branch 'origin' into feat-db-pools-master-sync-2 2023-03-30 08:02:31 +00:00
Jake Barnby
07d90aa4c4
Manually add the side to the attributes table 2023-03-30 20:41:18 +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
Vincent (Wen Yu) Ge
19d5ea03b9 Updates links for query page 2023-03-29 19:38:39 +00:00
Jake Barnby
bfc54c4590
Delete original attribute if two-way attribute creation fails 2023-03-29 20:28:59 +13:00
Jake Barnby
161eb0b66f
Create two-way attribute on related collection 2023-03-29 19:26:58 +13:00
Jake Barnby
f25bfa805b
Fix more name collisions 2023-03-29 16:30:47 +13:00
Jake Barnby
d23a2e2040
Database side permission check for list document count 2023-03-29 16:05:53 +13:00
Jake Barnby
1958cef3d2
Merge remote-tracking branch 'origin/feat-relations-2' into feat-relations-2 2023-03-29 14:43:09 +13:00
Jake Barnby
970ae8d0ad
Reset array keys for list documents 2023-03-29 14:38:43 +13:00
Jake Barnby
96e1440ee6
Fix name collision 2023-03-29 14:37:56 +13:00
Jake Barnby
ecaca00463
Force arrays for relation permissions checks 2023-03-29 14:33:53 +13:00
Jake Barnby
e80d13076f
Consistent attribute ordering 2023-03-29 13:37:51 +13:00
Jake Barnby
15d1badafb
Update param desc 2023-03-29 13:37:03 +13:00
Jake Barnby
ac82726364
Update app/controllers/api/databases.php
Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
2023-03-29 13:33:27 +13:00
fogelito
3c9cb0ab80 Strict WhiteList options 2023-03-28 16:24:18 +03:00
Jake Barnby
f69d222a5a
Inline permissions checks 2023-03-28 22:02:49 +13:00
Jake Barnby
5f7f44f939
Reduce nesting and handle arrays for nested ID set 2023-03-28 16:10:12 +13:00
Jake Barnby
fa64cc33ea
Add missing check for update 2023-03-27 20:08:02 +13:00
Jake Barnby
1cf25199ab
Recurse through nested documents to set collection ID 2023-03-27 19:03:00 +13:00
Jake Barnby
0465fb2268
Lint..? 2023-03-27 15:56:11 +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
Jake Barnby
d76d573e7c
Update attribute subquery to flatten relationship attributes 2023-03-25 16:28:07 +13:00
Jake Barnby
48b018fd9d
Merge remote-tracking branch 'origin/1.3.x' into feat-relations-2 2023-03-24 20:53:41 +13:00
Jake Barnby
6cddb38290
Fix for count 2023-03-24 20:30:41 +13:00
Jake Barnby
1885f9e87c
Add graphql tests 2023-03-24 18:08:50 +13:00
Jake Barnby
24d1163703
Fix params 2023-03-24 16:57:56 +13:00
Jake Barnby
b6cfe43681
Clean up 2023-03-24 16:46:02 +13:00
fogelito
969cff5e41 New Queries Activation 2023-03-23 16:08:38 +02:00
Torsten Dittmann
010481bafc feat: change url for updating attributes 2023-03-23 11:25:40 +01:00
Jake Barnby
7a089f8861
Use specific document validator for select queries on get document 2023-03-23 17:59:23 +13:00
Jake Barnby
2e44434ab8
Parse queries after validation 2023-03-23 17:55:31 +13:00
Jake Barnby
f974477ecc
Use plain param to allow validating against collection attributes 2023-03-23 17:32:44 +13:00
Jake Barnby
0643a94b12
Update signatures 2023-03-23 16:58:41 +13:00
fogelito
60c54e2d10 Select Validator 2023-03-22 23:10:47 +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
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
Torsten Dittmann
d59b4d17bb fix: update attribute review 2023-03-20 10:13:23 +01:00
fogelito
eee29940bb Some tests 2023-03-19 19:09:17 +02:00
Bhaskar Singh
ac2085ffa8 Updated error when _APP_USAGE_STATS is disabled
for usage
2023-03-18 22:12:36 +05:30
fogelito
79bfa025cb Merge branch 'feat-database-update-attribute' of github.com:appwrite/appwrite into feat-relations-2
 Conflicts:
	app/controllers/api/databases.php
	composer.json
	composer.lock
2023-03-16 12:14:37 +02:00
fogelito
44de884ee5 convert relatedOptions to options 2023-03-16 09:31:48 +02:00
fogelito
40152fbd6c Model relationshipOptions 2023-03-14 15:18:30 +02:00
fogelito
f255484fd4 Model relationship 2023-03-14 10:24:53 +02:00
fogelito
b1cc4ada4c relationType 2023-03-13 12:11:38 +02:00
fogelito
f5f51c4fc9 Worker $relatedCollection 2023-03-13 11:46:03 +02:00
fogelito
5fc3f5bc3a Worker 2023-03-13 11:34:41 +02:00
fogelito
b6c279b576 add relatedCollectionInternalId 2023-03-13 10:45:54 +02:00
fogelito
b116d24486 Document options 2023-03-13 10:33:07 +02:00