InseeFrLab / onyxia

🔬 Data science environment for k8s

Home Page:https://onyxia.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Activating quotas after user creation raise an error when accessing "my services"

nitreb opened this issue · comments

We have activated quotas for our project, and when a user tries to access "my services", a pop up with TypeError: can't convert undefined to object appears. It seems that the error is raised because there is no kubernetes ResourceQuota associated with the user namespace. Even though we will manually create ResourceQuota for each user, I feel like this must be dealt with in the frontend.

Thanks!

can you show the api response for the quota request on onyxia-api ?

I got an empty response but with status 200, nothing much to show...

@olevitt @garronej

so I guess onyxia-web must handle this 200 empty response?

I'll handle this on the application side but I think the API should respond with { "spec": [], "usage": [] } instead of an empty 200.

agree

Done in InseeFrLab/onyxia-api#400
Will be in API v2.3.0, soon to be released

Cool thanks I've fixed it on my side in the meantime but I'll revert my changes