Backend: Persist namespace credit validation instead of depending on available purchased minutes
In !77829 (comment 806717598) we are waiving credit card validation if the namespace has any purchased minutes available. However, if those numbers go to 0, users will have to validate their account to run pipelines.
We would need to introduce a column in namespaces
and we can set it when additional minutes are modified. We also have this new logic related to purchases which I believe will be the SSoT eventually for minutes purchases.
CustomersDot will create the records via the linked API endpoint, but GitLab doesn't consume/manage them yet (so the number_of_minutes
may/will be inaccurate). We started syncing new purchases on approx. 30th September 2021.
Edited by Mark Nuzzo