Commit Graph

414 Commits

Author SHA1 Message Date
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 Perekhod 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 Haferkamp 254c9d7c26 graph: Address linting issues 2024-06-06 09:22:52 +02:00
Ralf 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
Ralf Haferkamp 96e59598d3 graph/users: small optimization for filter by role queries
When filtering by role assignment we now populate the
'appRoleAssignments' property of the returned users when the incoming
request contained and '$expand=appRoleAssignments'. This avoids having
to query the role assignments for all users in the result set a second
time.
The effect of this optimization depends a lot on the actual setup. In
single binary all-in-one installations it is rather small (this it saves
quite a few CPU cycles). In distributed setup it should be larger as it
reduces the number of network round trips to the settings service
significantly.
2024-06-06 09:22:52 +02:00
Ralf Haferkamp 1b47707e2f settings: Add spec and stubs for ListRoleAssignmentsFiltered request 2024-06-04 11:00:09 +02:00
Ralf Haferkamp c425c173c4 Fix capitalization of 'name' property in tests 2024-05-30 11:05:29 +02:00
Prarup Gurung 5327f90712 Used expirationDateTime key for graph api (#9278) 2024-05-30 11:05:29 +02:00
ownClouders 088f04eee0 [tx] updated from transifex 2024-05-24 00:41:58 +00:00
Roman Perekhod 434141d6fb Merge pull request #9197 from 2403905/issue-8876
fix the status code for multiple mount and unmount share
2024-05-23 09:07:27 +02:00
ownClouders 40e06135e8 [tx] updated from transifex 2024-05-23 00:44:58 +00:00
ownClouders bac37771e2 [tx] updated from transifex 2024-05-22 00:43:57 +00:00
Benedikt Kulmann 21a9992980 feat: add image and photo metadata to search (#8504)
* feat: add image and photo metadata to search
2024-05-21 10:21:15 +02:00
Roman Perekhod 8d30bd59f1 fix the status code for multiple mount and unmount share 2024-05-17 15:43:46 +02:00
Alex 9406da351b Fix typo in password.go (#9177)
* Fix typo in password.go
2024-05-15 15:07:27 +02:00
Jannik Stehle 779bf33fcc refactor: rename GetShares to GetSharesForResource
Rename this method to make more clear what it is about.
2024-05-14 10:30:42 +02:00
Jannik Stehle e74d041b72 tests: add unit tests for getting drive items via id 2024-05-14 10:30:42 +02:00
Jannik Stehle 4404235efa feat: add endpoint for getting drive items via id 2024-05-14 10:30:42 +02:00
Florian Schade e48ac55034 fix: provide more tests for the update drive endpoint, it now also considers regular error cases 2024-05-14 10:30:42 +02:00
Florian Schade 9e6bf2af3c enhancement: return a drive item from the update share drive item api endpoint 2024-05-14 10:30:42 +02:00
Florian Schade 5b4e83c9bf enhancement: use error codes in the drive item api 2024-05-14 10:30:42 +02:00
Florian Schade 4841240bff enhancement: add get share service method 2024-05-14 10:30:42 +02:00
ownClouders 22a7ee7545 [tx] updated from transifex 2024-05-04 00:07:01 +00:00
ownClouders 947c56196c [tx] updated from transifex 2024-05-03 00:07:35 +00:00
ownClouders 3309b9c93c [tx] updated from transifex 2024-05-01 00:42:11 +00:00
Florian Schade f34bb510b0 enhancement: inject the creation time into sharing permissions 2024-04-25 11:54:54 +02:00
Florian Schade b8ed049487 Enhancement: Ability to Change Share Item Visibility in Graph API (#8750)
* Enhancement: Ability to Change Share Item Visibility in Graph API

Introduce the `PATCH /graph/v1beta1/drives/{driveID}/items/{itemID}` Graph API endpoint which allows updating individual Drive Items.

* fix: failing tests

* fix: consider siblings when updating shares

* fix: reduce sharing service provider interface
2024-04-22 17:24:45 +02:00
Roman Perekhod cd539311a5 fix unmount item from share 2024-04-15 14:43:13 +02:00
ownClouders 2ce8b84452 [tx] updated from transifex 2024-04-13 01:21:30 +00:00
Jörn Friedrich Dreyer 7a635738fa always use error interface when returning errors (#8816)
* always use error interface when returning errors

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix: use non pointer Error

* fix: errorcode evaluation

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Florian Schade <f.schade@icloud.com>
2024-04-12 10:30:49 +02:00
Ralf Haferkamp 9ca9b78b2b fix(sharing-ng): Adapt role conditions to match resource types
This switches our hardcode unfied role conditions to better reflect what
we're actually using them before. The new conditions also allow to differentiate
between roles elgitible for files, folders or drive roots.
Which means that the `/permissions` endpoint is now able to populate the
`roles.allowedValues` field with the correct roles for type of the resource
it is called for.

Fixes: #8331
2024-04-12 10:09:13 +02:00
ownClouders 01c2d9810a [tx] updated from transifex 2024-04-12 01:22:48 +00:00
jkoberg c1b28d4e18 enhancement(graph): improve translation context string
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-04-11 09:13:00 +02:00
Roman Perekhod 78d69e155c Merge pull request #8817 from 2403905/issue-8724
fix creating the drive item
2024-04-10 12:58:58 +02:00
Roman Perekhod 207b1acdc1 fix creating the drive item 2024-04-10 12:09:22 +02:00
Jörn Friedrich Dreyer a0b107009f Merge pull request #8578 from owncloud/next-before-making-calls
always select next before making calls
2024-04-10 09:46:31 +02:00
ownClouders 6f008307b2 [tx] updated from transifex 2024-04-10 00:43:30 +00:00
Jörn Friedrich Dreyer 6f897efbc1 actually return the error
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-04-09 17:30:14 +02:00
Jörn Friedrich Dreyer d9c9650afd always select next before making calls
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-04-09 16:10:50 +02:00
Roman Perekhod 38f9698973 fix removing groups from space 2024-04-09 09:34:18 +02:00
Ralf Haferkamp 80ef8ca458 fix(sharing-ng): Fix setPassword call for spaceroot
Requests to /raph/v1beta1/drives/{driveid}/root/permissions/{permissionid}setPassword
were rooted to the wrong method.
2024-04-08 12:33:26 +02:00