Skip to content
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

bots: Introduce System bots in UserProfile and port realm_internal_bots. #8961

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adnrs96
Copy link
Member

@adnrs96 adnrs96 commented Apr 4, 2018

We introduce System bots as a new kind of bots in UserProfile.
Following this we make realm_internal_bots use this new bot type
while migrating any already created realm_internal_bot to new
bot_type.

This is the first step towards moving from a world of cross_realm_bot to realm_internal_bots.
In future we can make cross realm bots use this new type of bot type and migrate them to be realm based.

We introduce System bots as a new kind of bots in UserProfile.
Following this we make realm_internal_bots use this new bot type
while migrating any already created realm_internal_bot to new
bot_type.
@adnrs96
Copy link
Member Author

adnrs96 commented Apr 4, 2018

I have tried to cover all the spots where bots are exposed from to prevent SYSTEM_BOT profiles to be sent to frontend. This way we are trying to ensure that system bot types which aren't really meant for people to have access to don't get access to. Practically this just avoids confusing UI. Like reminders bot showing up in the bots list with a option to deactivate. Clicking the deactivate won't really deactivate the reminders feature though.

@zulipbot
Copy link
Member

Heads up @adnrs96, 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/master 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.

None yet

2 participants