redrabbit / git.limo

A Git source code management tool powered by Elixir with easy installation & high extensibility.
https://git.limo
MIT License
498 stars 42 forks source link

Add support for real-time review discussions #49

Closed redrabbit closed 5 years ago

redrabbit commented 5 years ago

We have GitGud.CommitReview and GitGud.CommitLineReview providing support for comments on commits and commit diff lines.

It would be great if we could push real time events aka. subscriptions to the respective <CommitReview /> and <CommitLineReview /> React components.

Currently, we rely on Relay and Absinthe for GraphQL subscriptions. We might use Phoenix.LiveView in future (see #47).

redrabbit commented 5 years ago

Our GraphQL schema supports following subscriptions:

In order to receive new commit line review events, subscribe to commitLineReviewCreate/3.

Each commit line review and commit review subscribe to new events using their respective subscribe function (commitLineReviewCommentCreate/5 or commitReviewCommentCreate/2).

Each comment is responsible for subscribing to update and delete events.