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

Add page for server admin to manage realm. #10824

Open
rishig opened this issue Nov 13, 2018 · 3 comments
Open

Add page for server admin to manage realm. #10824

rishig opened this issue Nov 13, 2018 · 3 comments
Labels
area: support new feature A proposed new feature for the product

Comments

@rishig
Copy link
Member

rishig commented Nov 13, 2018

We get a lot of requests that currently require ssh'ing into a production server:

  • Marking a realm as open source (do_change_plan_type to STANDARD_FREE)
  • Marking a realm as non-profit (do_create_customer with the appropriate coupon)
  • Responding to GDPR requests (deleting or scrambling the realm)
  • Reactivating a deactivated realm
  • Creating a compliance export
    etc

Would be great to add a page, maybe /manage/<realm_str>, that allows server admins to manage the realm <realm_str> without ssh'ing into prod.

To start, the page can do just the first one in the list above. It should have four radio buttons (LIMITED, STANDARD, STANDARD FREE, SELF-HOSTED), the current plan_type should be selected, and there should be a Save button that allows you to change the plan_type.
Potentially the URL for this could be /manage/<realm_str>/plan_type.

@timabbott
Copy link
Sponsor Member

timabbott commented Nov 13, 2018

It might make sense to do this by extending /realm_activity/<subdomain>/, to add a new first tab that does these things -- that's what the links from /activity take you to today, and a tabbed structure seems like a good starting point for future extensions.

@rishig
Copy link
Member Author

rishig commented Nov 13, 2018

yeah, I'm fine with that as well.

@rishig
Copy link
Member Author

rishig commented Apr 18, 2019

@hackerkid the existing work has been super useful. Could we add a few more things? These are probably the next highest value:

  • Applying a discount to a realm: text box with default value 85 + save button; the button calls attach_discount_to_realm(realm, Decimal(text box value)).
  • Reactivating a deactivated realm (should be in actions.py)
  • Deleting or scrambling a realm: my guess is there's something in actions.py, but haven't looked (if not, it's probably a management command and we should chat with Tim on what to do here).

@hackerkid hackerkid mentioned this issue Apr 19, 2019
5 tasks
@Gittenburg Gittenburg added the new feature A proposed new feature for the product label Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: support new feature A proposed new feature for the product
Projects
None yet
Development

No branches or pull requests

3 participants