# collab: Introduce \`UserService\` \(\#55449\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dacf984596b412db98dbd40dbf9db1a544161fc3

Requested commit: dacf984596b412db98dbd40dbf9db1a544161fc3

Commit: dacf984596b412db98dbd40dbf9db1a544161fc3

Tree: 1609ffcdabd96856441ae311796b87d1747873a1

Author: Marshall Bowers

Committer: GitHub

## Message

```
collab: Introduce `UserService` (#55449)

This PR introduces a `UserService` trait to Collab.

This is a step towards moving Collab away from reading user information
directly from the database.

We currently have two implementations for the trait:

- The `DatabaseUserService`, which leverages the existing query methods
to talk to the database
- The `FakeUserService`, which will be used in tests

Once we're ready, we'll be able to replace the `DatabaseUserService`
with a `CloudUserService` to fetch the users from Cloud.

Release Notes:

- N/A
```

## Parents

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

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