* unifiedrole: Add CS3ResourcePermissionsToLibregraphActions
Add function to convert CS3ResourcePermsissions to libregraph actions
* unifiedrole: Fix strings for the UnifiedRoleConditionSelf
The "Self/Owner/Grantee" string are not part the the constraint value
* graph: Move getRoleDefinitionList to unifiedrole module
rename it to GetBuiltinRoleDefinitionList and make it public
* graph: turn libregraph resource actions into string constants
* graph/sharedbyme: Set the correct roles (or actions) on permissions
Try to map CS3 resource permissions on a share to one of the default libregraph
UnifiedRoleDefinitions. If a match if found return the roleid in 'permissions.roles'
attribute of the response. If no match if found convert the
ResourcePermissions in to `libre.graph.permissions.actions` and return
those in the response.
* bump reva to latest edge
To get https://github.com/cs3org/reva/pull/4336
* graph: Import unified role related code from reva
The UnifiedRole related types are pretty specific to the graph service.
Maintaining them as part of reva makes things more complex that required.
* chore: add failing cases to the expected failures
---------
Co-authored-by: Florian Schade <f.schade@icloud.com>
drives.go implemented a local user/group cache (ttl based) to speed up repeated
user and group lookups. This commit moves the implementation to the 'identity' module
to make it usable outside of drives.go.
Set the exipration date, grantedToV2 and link attributes on the
permissions.
The displayName for users and groups isn't expanded yet (only the "id" is set)
Also, the "roles" attribute cannot be populated yet.
This adds a still incomplete implementation of the new /me/drives/sharedByMe
endpoint. For now it only sets the driveItem Id property. The 'permissions' relation
is not supported yet.
This endpoint is added to the /v1beta1 route, to indicate that it is
still imcomplete and might require changes.
* Add audio facet to search protobuf message
* Add audio metadata to search index
* Return audio facet from search if available
* Store audio metadata in arbitrary metadata
* Add audio facet to driveItems listings
* Make tests coding style more consistent
* Fix tests
* Add changelog
* Make valueToString code more defensive
* Log status code as well
- Use var for common errors
- Add the addition error message to the Error() output of errorcode.Error
- in PatchEducationSchool() use errorcode.RenderError() to turn the errorcode
in to the right HTTP Status (instead of return 500 always)