alphagov/paas-admin

Organisations list mislabels Trial orgs as Billable

Closed this issue · 0 comments

46bit commented

The org view of https://admin.london.cloud.service.gov.uk/organisations/a8e32de1-b0a0-4a00-b36b-6324a0ba35cf says it is a Trial org:

Screen Shot 2019-10-02 at 10 57 41

But on the homepage's list of organisations it is said to be a Billable org:

Screen Shot 2019-10-02 at 10 58 33

In fact, the homepage's list of organisations describes every org as Billable 😮

I glanced at the underlying code and it looked OK, but I suspect the comparison is subtly hiding a problem. The comparison in both locations is if quota name equals 'default' then say 'Trial' else say 'Billable'. If the quota name isn't actually set then it would say Billable for every org, just like we're seeing on the homepage…