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

[Rails] When super-admin deactivates public community feature flag for community, turn off for them #955

Open
4 tasks
rudokemper opened this issue Sep 23, 2023 · 0 comments
Labels
beginner friendly Good for newcomers Hacktoberfest Hacktoberfest 2023 rails

Comments

@rudokemper
Copy link
Member

Explore Communities added the ability of a new feature flag: public_communities.

image

When this is enabled for a community, a logged in admin for that community will see a new set of options in their Settings menu:

image

This enables them to opt in to index their community on public (for example, https://explore.terrastories.app/).

When a super-admin turns off the public_communities feature flag for them, then the menu options in Settings will disappear. However, they will still be indexed on public (and they will still have a slug).

Let's make it so that if a super-admin turns off public_communities for a community, then index_communities_on_public is disabled. (I think the slug can be left alone.)

Acceptance criteria:

  • Logged in super-admin turns on public_communities for a community
  • The community admin opts in by checking "Enable public interface"
  • Super-admin deactivates public_communities for that community
  • Now, the community is no longer public e.g. current_community.public is set to false.
@rudokemper rudokemper added beginner friendly Good for newcomers rails Hacktoberfest Hacktoberfest 2023 labels Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner friendly Good for newcomers Hacktoberfest Hacktoberfest 2023 rails
Projects
None yet
Development

No branches or pull requests

1 participant