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:
@@ -738,6 +738,16 @@ jsonpath "$.items[0].resource.updated_by" == "{{alice_user_id}}"
|
||||
jsonpath "$.items[1].resource.name" == "adam-renamed-logo.jpg"
|
||||
jsonpath "$.items[1].resource.created_by" == "{{alice_user_id}}"
|
||||
jsonpath "$.items[1].resource.updated_by" == "{{adam_user_id}}"
|
||||
# Caller-flag contract on the listing endpoint. Neither row
|
||||
# favorited by Alice → is_favorite = false. The `perm_folder_id`
|
||||
# tree carries a role_grant on the FOLDER (Adam as Editor), not
|
||||
# on `perm-test-child` or `adam-renamed-logo.jpg` — so both
|
||||
# child rows should carry is_shared = false; the grant on the
|
||||
# parent doesn't cascade to per-child EXISTS.
|
||||
jsonpath "$.items[0].resource.is_favorite" == false
|
||||
jsonpath "$.items[0].resource.is_shared" == false
|
||||
jsonpath "$.items[1].resource.is_favorite" == false
|
||||
jsonpath "$.items[1].resource.is_shared" == false
|
||||
|
||||
# ── Thumbnail push (Update) succeeds ────────────────────────
|
||||
PUT {{base_url}}/api/files/{{perm_file_id}}/thumbnail/preview
|
||||
|
||||
Reference in New Issue
Block a user