Commit Graph

643 Commits

Author SHA1 Message Date
Viktor Scharf
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
ownClouders
fe71854467 [tx] updated from transifex 2024-08-14 04:06:18 +00:00
Jörn Friedrich Dreyer
ad62bb1817 Merge pull request #9765 from owncloud/federated-user-roles
allow querying federated sharing roles
2024-08-13 16:49:48 +02:00
Jörn Friedrich Dreyer
99c6b6648e no need to introduce dedicated roles
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-13 16:10:19 +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
Jörn Friedrich Dreyer
8da4e265bd Update services/graph/pkg/unifiedrole/unifiedrole.go
Co-authored-by: kobergj <jkoberg@owncloud.com>
2024-08-13 11:53:10 +02:00
Jörn Friedrich Dreyer
f960ae4d64 add OCIS_ENABLE_OCM env var
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-12 13:48:23 +02:00
Ralf Haferkamp
5ef865a402 graph: Add some test coverage for ocm enabled users endpoint 2024-08-12 12:16:16 +02:00
Ralf Haferkamp
80e8a2ec1a (fix)graph: Always set UserType in /users responses
LDAP users without a UserType attribute get the UserType "Member"
by default. Federated users get the UserType "Federated".

Related #9702
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 Perekhod
c39bac17c4 the comments added to public functions 2024-08-06 14:25:30 +02:00
Roman Perekhod
21c6dda4f8 refactored the translation funcrions interface 2024-08-06 14:25:30 +02:00
Roman Perekhod
70fc7ecb92 The translate functions are separated semantically 2024-08-06 14:25:30 +02:00
Roman Perekhod
fc85837d82 added the iterator over slice and map 2024-08-06 14:25:30 +02:00
Roman Perekhod
90bd1fc403 the translator added to handlers 2024-08-06 14:25:30 +02:00
Jörn Friedrich Dreyer
7999e2969b do not force exit to let all services shutdown gracefully
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 14:02:52 +02:00
Jörn Friedrich Dreyer
9d1515e8fc rely on context from app
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 14:02:11 +02:00
Jörn Friedrich Dreyer
008f379a01 pass config context when running apps
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 13:30:42 +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
Benedikt Kulmann
f28a9b8c2f Merge pull request #9667 from owncloud/fix-env-var-description-email-in-results
[docs-only] fix env var description showing emails in results
2024-07-23 10:40:37 +02:00
Benedikt Kulmann
51d40c3f12 docs: fix env var description showing emails in results 2024-07-23 09:33:09 +02: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
ffe1542205 Merge pull request #9647 from 2403905/issue-9642
Fixed the channel lock in a workers pool
2024-07-18 21:17:44 +02:00
Roman Perekhod
7f9e018c7c Fixed the channel lock in a workers pool 2024-07-18 15:33:50 +02:00
Saw-jan
a93a74f9d1 fix: return 403 when non-admin tries to do admin requests 2024-07-18 09:39:36 +05:45
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
Michael Barz
3ea77d2b53 Merge pull request #9532 from owncloud/polish-secure-view
fix: polish secure view
2024-07-05 09:24:44 +02:00
Michael Barz
8cd2277f6d tests: fix unit tests 2024-07-04 17:34:10 +02:00
Michael Barz
7860cb8a6f fix: polish secure view 2024-07-04 17:14:40 +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
Christian Richter
b529eb8335 add missing errorcheck
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-06-24 12:07:26 +02: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
Michael Barz
b04f3209d4 chore: prepare release, bump version 2024-06-19 19:45:57 +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