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

User config shall take precedence over org config #241

Open
rafatower opened this issue Jul 27, 2016 · 2 comments
Open

User config shall take precedence over org config #241

rafatower opened this issue Jul 27, 2016 · 2 comments

Comments

@rafatower
Copy link
Contributor

This is a pretty common use case for services:

  • an org (such as team) has a default provider configured, but
  • an individual user wants to override the org-level config with their own provider

cc/ @ethervoid

@rafatower
Copy link
Contributor Author

Watch out, for quotas it'll work as 2 different checks. In pseudo-code

# Imagine user john_smith of the acme_org
acme_org.users.service_usage.reduce(:+1) < acme_org.max_quota_allowance or raise 'org has no quota left'
# AND...
john_smith.service_usage < john_smit.max_quota_allowance or raise 'user has exceeded their quota'

@rafatower
Copy link
Contributor Author

Related: #280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant