jupyter-naas / naas

Low-code Python library to safely use notebooks in production: schedule workflows, generate assets, trigger webhooks, send notifications, build pipelines, manage secrets (Cloud-only)
https://app.naas.ai/
GNU Affero General Public License v3.0
286 stars 25 forks source link

Identify users types from JupyterHub SQL DB #219

Closed jravenel closed 3 years ago

jravenel commented 3 years ago

Input :

→ Update JupyterHub SQL DB → Get data to allocate servers

FlorentLvr commented 3 years ago

Once user is created, naas plan "NAAS_FREE" is affected by default. So we need to have the possibility to update Naas plan directly in JupyterHub SQL DB.

Plus, find a way to add new fields in user info table with "REGISTER_DATE". Make sure, we can get it from "https://app.naas.ai/hub/signup"

jravenel commented 3 years ago

Pending: go live with history @FlorentLvr to update (validate: list of users, code of plan)

jravenel commented 3 years ago

Create account types : Pro_child → child account for Pro Enterprise_child → child account for Enterprise with metadata on "contract number" on user

FlorentLvr commented 3 years ago

@jravenel , change done in production, metadata added field="meta" displayed in not None NAAS_ENTREPRISE => Naas Entreprise - 2vCPU / 8GB RAM "- meta" NAAS_ENTREPRISE_CHILD => Naas Entreprise Child - 1vCPU / 4GB RAM "- meta" NAAS_PROFESSIONAL => Naas Professional - 1vCPU / 4GB RAM "- meta" NAAS_STARTER => Naas Starter - 1vCPU / 4GB RAM "- meta" NAAS_FREE => Naas Free - 1vCPU / 2GB RAM "- meta"

Naas Admin = Access every servers, Naas Core team access = Naas Free, Starter and Professional