-
Notifications
You must be signed in to change notification settings - Fork 429
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
Avoid excess calls to get-subscription-metadata
#2950
Comments
@matthewelwell I would propose returning a non-error response from the BE when the user organization hasn't a subscription, we could instead return a 200 response with a body like {"subscription": null} in that case and otherwise can return:
|
Looking at the code in My suggestion would be to just remove that check and we'll fix the data for those organisations (possibly as part of a migration in the PR to fix this issue too). |
Sorry, yep, I was adding that comment for context as @zachaysan is going to start working on it. |
We observed a rapid increase to call count for
/api/v1/organisations/{pk}/get-subscription-metadata/
:Majority of those result in 404s and 403s:
We need to think of a way to rework the logic to minimize those calls.
The text was updated successfully, but these errors were encountered: