Skip to content

Conversation

afonsomatos
Copy link
Contributor

Looking for feedback before doing some tests.

object Assignment {
implicit val decoder: Decoder[Assignment] = { cursor: HCursor =>
for {
// TODO: How to test if downField worked?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @return a stream of ids from projects to which a certain group has been assigned a certain role
*/
def assignments(groupId: String): Stream[F, Role.Assignment] =
list[Role.Assignment]("role_assignments", baseUri / "role_assignments", Query.fromPairs("group.id" -> groupId))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants