# collab: Stop mixing concerns in \`get_channel_participant_details\` \(\#55568\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5894f5d2e1effb7eae732e1af11ff205d5aa34f8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5894f5d2e1effb7eae732e1af11ff205d5aa34f8

Requested commit: 5894f5d2e1effb7eae732e1af11ff205d5aa34f8

Commit: 5894f5d2e1effb7eae732e1af11ff205d5aa34f8

Tree: 59472b7827483742bf63bfa70534c7075701757b

Author: Marshall Bowers

Committer: GitHub

## Message

```
collab: Stop mixing concerns in `get_channel_participant_details` (#55568)

This PR updates the `get_channel_participant_details` method to reduce
the mixing of concerns within the method.

The authorization check for the caller has been moved to the outside,
along with the conversions from the database representations to the RPC
proto representations.

Now the method is just responsible for dealing with the data fetching,
which will make it easier to swap out.

Release Notes:

- N/A
```

## Parents

- [7da1dd4bfa0fc63b2a9c98e264ae65485299423e](https://git.cafe/gitcafe/zed/commit/7da1dd4bfa0fc63b2a9c98e264ae65485299423e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5894f5d2e1effb7eae732e1af11ff205d5aa34f8?format=markdown)
