Commit Graph
451 Commits
Author SHA1 Message Date
Florian Schade 4b09399ab9 chore: merge master 2024-08-27 18:22:13 +02:00
Florian Schade 2f9c6c86ea Merge branch 'master' into toggle-unified-roles 2024-08-27 17:43:05 +02:00
Jörn Friedrich Dreyer 6dc6fdacf4 list ocm shares in sharedByMe
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-27 12:39:37 +02:00
Jörn Friedrich Dreyer 18037f530e fix listing ocm properties
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-26 16:42:59 +02:00
Jörn Friedrich Dreyer 84e87cd722 set the configured protocol transport for service metadata
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-23 20:51:17 +02:00
Jörn Friedrich DreyerandGitHub 9177684ad4 Merge pull request #9905 from owncloud/list-ocm-permissions
List OCM permissions as graph drive item permissions
2024-08-23 14:41:40 +02:00
Jörn Friedrich Dreyer 6d465575f4 List OCM permissions as graph drive item permissions
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-23 11:36:45 +02:00
jkoberg d335d635b3 feat(graph): add TRANSLATION_PATH envvar
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-08-23 11:08:29 +02:00
Florian Schade 43ba95190f enhancement: show permission actions if no role is set when converting space permissions to libregraph permissions 2024-08-21 16:50:34 +02:00
Florian Schade e348ac290e enhancement: only use allowed roles for the graph service 2024-08-21 14:08:39 +02:00
Florian Schade 196c988b8c enhancement: add unified roles filters 2024-08-21 14:08:38 +02:00
Florian Schade 4638280d21 enhancement: add allowed role validation to the go-playground validator 2024-08-21 14:08:29 +02:00
Florian Schade 56537e94fc enhancement: do not enable all roles by default.
from now on, not all unified roles are enabled by default, instead the available roles are hand-picked in the default setup.

For advanced use-cases, the administrator is capable to enable the desired set of available roles.

Picking roles is not easy since the uid is NOT humanly readable, therefore a cli is contained which lists the available, disabled and enabled roles.
2024-08-21 14:08:27 +02:00
Ralf Haferkamp 8476da2f7b fix(graph): treat memberOf and userType as read-only attributes
Fixes: #9858
2024-08-20 17:58:20 +02:00
Jörn Friedrich Dreyer a3c7bd3182 bump libre graph api
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-19 14:20:20 +02:00
Ralf Haferkamp cfefec96b6 graph: add identities property to non-admin response of GetUsers
Fixes: #9813
2024-08-15 10:49:13 +02:00
Viktor ScharfandGitHub c33c180dbd Merge pull request #9788 from rhafer/filter-usertype
feat(graph): add support for filtering users by type
2024-08-14 10:11:25 +02:00
Jörn Friedrich DreyerandGitHub ad62bb1817 Merge pull request #9765 from owncloud/federated-user-roles
allow querying federated sharing roles
2024-08-13 16:49:48 +02:00
Ralf Haferkamp 99df9bd3bb graph: allow regular users to filter users by userType 2024-08-13 14:40:12 +02:00
Ralf Haferkamp 23ba6e4755 feat(graph): add support for filtering users by type
This add support for equality filters on the `userType` property of users
for the /users endpoint.

It also changes the behavior of the /users endpoint to only return
federated users when explicitly request via a `userType` filter.

E.g. to search for federated users with matching "albert" you can use:

`$filter=userType eq 'Federated'&$search="albert"`

Related Issue: #9702
2024-08-13 14:16:16 +02:00
Ralf Haferkamp 80631bd941 graph: remove some code duplication 2024-08-13 14:16:16 +02:00
Ralf Haferkamp 5355b449c1 cleanup(graph): move ocm user search to separate function 2024-08-13 14:16:16 +02:00
Ralf HaferkampandRalf Haferkamp 5ef865a402 graph: Add some test coverage for ocm enabled users endpoint 2024-08-12 12:16:16 +02:00
Jörn Friedrich Dreyer 966b4e1422 allow querying federated sharing roles
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-12 11:29:39 +02:00
jkoberg 58798a18ec feat(graph): adjust to l10n pkg
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-08-06 14:25:30 +02:00
Roman Perekhodandjkoberg 21c6dda4f8 refactored the translation funcrions interface 2024-08-06 14:25:30 +02:00
Roman Perekhodandjkoberg 70fc7ecb92 The translate functions are separated semantically 2024-08-06 14:25:30 +02:00
Roman Perekhodandjkoberg fc85837d82 added the iterator over slice and map 2024-08-06 14:25:30 +02:00
Roman Perekhodandjkoberg 90bd1fc403 the translator added to handlers 2024-08-06 14:25:30 +02:00
Jörn Friedrich Dreyer d1fd65466f reuse default node id when registering services
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 13:07:54 +02:00
ownClouders 4a6b0f04f6 [tx] updated from transifex 2024-07-24 04:33:21 +00:00
ownClouders 747f0f3f9f [tx] updated from transifex 2024-07-23 03:41:36 +00:00
ownClouders 6c82a6560b [tx] updated from transifex 2024-07-22 00:41:37 +00:00
Jannik Stehle 752c0df4e9 fix: missing invitation in permission responses
Fixes a bug where the `invitation` property is missing in the response when creating, listing or updating graph permissions.
2024-07-19 11:52:35 +02:00
Roman Perekhod 7f9e018c7c Fixed the channel lock in a workers pool 2024-07-18 15:33:50 +02:00
Ralf Haferkamp 26b4927ed8 Address go-vet reported issues
mainly "copylocks: return copies lock value" related things
2024-07-11 16:59:25 +02:00
Ralf Haferkamp ff6674f97b Fix fallout of reva bump
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
ownClouders aa6041abb6 [tx] updated from transifex 2024-07-04 00:07:14 +00:00
ownClouders 23ab60c24c [tx] updated from transifex 2024-07-02 04:03:21 +00:00
ownClouders 46c2d74260 [tx] updated from transifex 2024-07-02 00:05:09 +00:00
Jörn Friedrich Dreyer ab338884c6 rudimentary OCM support in graph
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-06-24 12:07:21 +02:00
Florian Schade 11fb3eb3c0 fix(sharing-ng): permission listings for personal and virtual drive items 2024-06-21 13:57:24 +02:00
Florian Schade 3280b22ffe enhancement: add error origin information to the errorcode package 2024-06-19 15:57:35 +02:00
ownClouders f74f656ba9 [tx] updated from transifex 2024-06-13 00:52:52 +00:00
Roman PerekhodandGitHub 457c0178b4 Merge pull request #9331 from 2403905/issue-9151
fixed the error translation from the statusCodeError type into a corresponding graph api  Error representation
2024-06-12 11:19:55 +02:00
ownClouders 50bed11e01 [tx] updated from transifex 2024-06-12 00:49:40 +00:00
Roman Perekhod eb95a2859d fixed the error translation from the statusCodeError type into a corresponding graph api Error representation 2024-06-11 22:42:45 +02:00
ownClouders c7b3940bf8 [tx] updated from transifex 2024-06-11 00:50:09 +00:00
Ralf HaferkampandRalf Haferkamp 254c9d7c26 graph: Address linting issues 2024-06-06 09:22:52 +02:00
Ralf HaferkampandRalf Haferkamp 184bd5d0d3 graph/users: use ListRoleAssignmentsFiltered when filtering by role
When filtering users by role-assignment we now use the new ListRoleAssignmentsFiltered
request to the settings service instead calling ListRoleAssignments for every single user.
This reduces the number of network roundtrips to the settings service to one (was one per
user before).

Related Issue: #8938
2024-06-06 09:22:52 +02:00