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

streams: Add create and edit ui for is_announcement_only. #9588

Closed
wants to merge 4 commits into from

Conversation

shubham-padia
Copy link
Member

selection_153
selection_152

  • Default value for is_announcement_only while creating a stream is true
  • FYI: taken care of: value of is_annoucement_only populated when opening the privacy modal.
  • The second last commit lets only admins set the property while creating a stream. The checkbox disappears for non-admin users. While non-admin users can set other privacy properties, letting a non-admin user create a stream where only admins can post. (If this is not desired, you can skip the commit)
  • The last commit just changes, the save button text. I was not sure of this change, that's why the seperate commit. Feel free to skip it. (or change it to something else)

Adds is_announcement_only to create_stream_if_needed and
add_subscriptions_backend.
The user can now specify the value while creating a stream.
An admin can later change it via `Change stream permissions`
modal. Add is_announcement_only to subscription type text.
…eation.

Non-admin users cannot see is_announcement_only checkbox while creating
a stream. Updating stream privacy properties was already limited to
realm admins.
@zulipbot
Copy link
Member

Heads up @shubham-padia, 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.

@timabbott
Copy link
Sponsor Member

I merged most of this. I dropped the restriction on who can make one of these to admins; we plan to eventually make it so you can use a user group as the people who can post, so we'd end up reverting that when we add that feature anyway. Thanks @shubham-padia!

I opened #9590 for some follow-up issues with the modal. We could probably also benefit from some other styling work, but we should start with that.

@Lyla-Fischer FYI -- we should add this feature to the new "stream permissions" user doc you created.

@timabbott timabbott closed this May 30, 2018
@timabbott
Copy link
Sponsor Member

(And we might want to rename that doc from "Stream privacy" to "Stream permissions").

@Lyla-Fischer Lyla-Fischer mentioned this pull request May 31, 2018
@shubham-padia shubham-padia deleted the announce_ui branch September 8, 2018 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants