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

326 commits

Author SHA1 Message Date
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
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