Skip to content

bridges: Check if bot is subscribed to relevant stream. #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

orientor
Copy link
Collaborator

@orientor orientor commented Apr 1, 2020

Checks if the bots are subscribed to their revelant streams during startup of various bridges.
Fixes #568 .

@zulipbot zulipbot added size: M and removed size: S labels Apr 1, 2020
@orientor orientor changed the title bridge_with_matrix: Check if bot is subscribed to relevant stream. bridges: Check if bot is subscribed to relevant stream. Apr 1, 2020
@rht
Copy link
Contributor

rht commented Apr 2, 2020

LGTM; @showell

@showell
Copy link
Contributor

showell commented Apr 25, 2020

This seems like a straightforward change. @orientor Can you fix the merge conflicts here?

Check whether the zulip bot is subscribed to the stream meant for
sending messages before logging in to Matrix.
…reams.

Check whether both the bots are subscribed to their respective
streams designated for sending messages before starting the bridge.

Fixes zulip#568.
@orientor
Copy link
Collaborator Author

@showell rebased.

@@ -9,6 +9,16 @@ import interrealm_bridge_config

from typing import Any, Callable, Dict

def check_subscription_or_die(zulip_client, stream):
# type: (zulip.Client, str) -> None
Copy link
Contributor

Choose a reason for hiding this comment

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

The annotation needs to be changed to Python 3 version. Also applied to the other check_subscription_or_die.

@zulipbot
Copy link
Member

Heads up @orientor, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

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

Successfully merging this pull request may close these issues.

bridges: Check if the bot is subscribed to the relevant stream on startup.
4 participants