-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
29e4253
to
4f1ad8d
Compare
83d8ff4
to
be6d025
Compare
9170e4d
to
0c1146e
Compare
@individual-it fyi, I needed to rebase this PR to get #56 in |
3b3a8a6
to
41db407
Compare
This reverts commit 157669e.
…ocis-settings into filter-settings-by-permissions
}{ | ||
{"space", | ||
" ", | ||
"{\"id\":\"ocis-settings\",\"code\":400,\"detail\":\"must be in a valid format\",\"status\":\"Bad Request\"}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're using the go-micro
errors in our handlers now. You can define expected errors in tests like this:
merrors.New("ocis-settings", "must be in a valid format", 400),
@individual-it
Can you adjust tests accordingly? The only thing I would like to add to this PR is, that the |
if |
No, the details should not be |
@individual-it pushed a commit that fixes the error details on micro call com.owncloud.api.settings BundleService.GetBundle '{"bundle_id": "38071a68-456a-4553-846a-fa67bf5596cc"}'
error calling com.owncloud.api.settings.BundleService.GetBundle: {"id":"ocis-settings","code":404,"detail":"could not read bundle: 38071a68-456a-4553-846a-fa67bf5596cc","status":"Not Found"} |
I have managed to stabilize the grpc tests. In addition to the init() function I added a There is also one helper at the bottom of the file now, which sets a full readWrite permission on a bundle for an account. When you look at the code where it's used, you will also find examples for using the account uuid on the new There are two important next tests for this PR:
I can assist in the morning. I would like to finalize this PR before the standup with just these two tests. Everything else can happen in a separate PR. Especially all the roles related tests are not needed in this PR but can happen separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some questions.
This PR introduces filtering for settings and bundles, based on permissions.
Implementation for owncloud/product#99
So far, it is only about reading and listing settings, not about permission checks for saving anything. That has to come in a separate PR, ticket raised here https://github.com/owncloud/ocis-settings/issues/58