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:
@@ -94,6 +94,11 @@ jsonpath "$.items" count == 1
|
||||
jsonpath "$.items[0].resource.id" == {{file_id}}
|
||||
jsonpath "$.items[0].resource_type" == "file"
|
||||
jsonpath "$.items[0].resource.name" == "hello-renamed.txt"
|
||||
# Caller-flag contract — every row on /api/favorites/resources IS
|
||||
# favorited by construction (the listing SQL hardcodes
|
||||
# `TRUE AS is_favorite`). `is_shared` is a real per-row EXISTS.
|
||||
jsonpath "$.items[0].resource.is_favorite" == true
|
||||
jsonpath "$.items[0].resource.is_shared" == false
|
||||
|
||||
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user