Page MenuHomePhabricator

🟪️ Add technical functionality to limit the number of wikis a user can have
Closed, ResolvedPublic

Description

We want to be able to limit the number of wikis a single user can create given that we now know that there is some kind of overhead each wikis creation causes us on ElasticSearch.

The probably involves adding additional code the the platform api.

We are happy for this to be a global cap on the number of wikis for any user rather than a per-wiki limit.

A/C:

  • Provide a runtime way to prevent the creation of new wikis above a specified number per user

Event Timeline

WMDE-leszek renamed this task from Add technical functionality to limit the number of wikis a user can have to 🟪️ Add technical functionality to limit the number of wikis a user can have.May 25 2022, 9:03 PM

easiest way to try it out is using skaffold right now

toan subscribed.
dang removed dang as the assignee of this task.May 31 2022, 10:08 AM
dang subscribed.

Updated the PR to allow the feature to be disabled completely

I've noticed that while the api change allowed the feature to be disabled completely the chart still leaves the wiki count capped at 9999.

Is there some way for users to know how many Wikis they still can create (a counter or so?) Or do they need the documentation to find that out?

Is there some way for users to know how many Wikis they still can create (a counter or so?) Or do they need the documentation to find that out?

Yes, this message bubbles up to the ui https://github.com/wbstack/api/commit/cf74b6be43d5de3c13439892e86a3dd604dc69c7#diff-87d058c7724eae70cb959c62695a0018ade16b7d62a26319b5ef94fd6fd47f49R67

Is there some way for users to know how many Wikis they still can create (a counter or so?) Or do they need the documentation to find that out?

Yes, this message bubbles up to the ui https://github.com/wbstack/api/commit/cf74b6be43d5de3c13439892e86a3dd604dc69c7#diff-87d058c7724eae70cb959c62695a0018ade16b7d62a26319b5ef94fd6fd47f49R67

thanks. This might be sufficient initially but probably some more user-friendly (e.g. knowing the limitations before trying to create a wiki etc) would make sense to be added.

Verified, limiting to one wiki per user works.

Tarrow claimed this task.