feat(fileDto, folderDto): add is_favorite + is_shared
- provide is_shared and is_favorite information in DTO, information propagated as badge/buttons per items
regarding performances I try to be minimalis on SQL to prevent any perf regression
- remove old set of sharedids and favoriteids (was not functionnal anymore)
- fix date picker (no past selection) in grant
- fix contextmenu close on /files section
This commit is contained in:
@@ -107,6 +107,10 @@ jsonpath "$.parent_id" == {{home_folder_id}}
|
||||
# D0 §14 provenance — self-creation: both fields stamp the caller.
|
||||
jsonpath "$.created_by" == "{{admin_user_id}}"
|
||||
jsonpath "$.updated_by" == "{{admin_user_id}}"
|
||||
# Caller-flag contract — fresh folder: not favorited, no grants on it.
|
||||
# Wire contract is "always present bool" — never null, never absent.
|
||||
jsonpath "$.is_favorite" == false
|
||||
jsonpath "$.is_shared" == false
|
||||
|
||||
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
@@ -176,6 +180,9 @@ jsonpath "$.size" == 32
|
||||
jsonpath "$.mime_type" == "text/plain"
|
||||
# D0 §14 provenance — uploader's id stamps both fields on a fresh upload.
|
||||
jsonpath "$.created_by" == "{{admin_user_id}}"
|
||||
# Caller-flag contract — fresh upload: not favorited, no grants on it.
|
||||
jsonpath "$.is_favorite" == false
|
||||
jsonpath "$.is_shared" == false
|
||||
jsonpath "$.updated_by" == "{{admin_user_id}}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user