Optimize fetching tenants list
Tenants list in the header
is refreshed in the following cases:
just after login
when you refresh page in the browser
when tenant is added/removed using Tenant Management widget
when snapshot is restored
It can happen that tenant was added externally (eg. using CLI or working deployment). In that case it will not show up until you refresh it using the above listed methods.
To simplify tenants list update/maintenance we can re-fetch it every time we click on the drop down, then we'll have no issues at all. Probably we can then remove updating the list on tenant modification from Tenant Management widget.
Initial estimation: SMALL (up to one day)