ECSTeam / cloudfoundry-top-plugin

Cloud Foundry CF cli plugin - show top stats
Apache License 2.0
73 stars 21 forks source link

Org and Space Not Updated #5

Closed stevewallcgi closed 7 years ago

stevewallcgi commented 7 years ago

The Org List/Stats view does not reflect newly created orgs. That is, if cf top is running and a new org is created, it does not appear in the view. A restart of cf top does cause the org to display.

kkellner commented 7 years ago

cf top works by listening for events in the firehose. Because new application deployments cause firehose events (e.g., staging , container creation, etc), cf top can keep itself updated on new apps. However, when an org or space is created, there is no firehose event. Because of this, there is no way for cf top to know its data is outdated. You can press 'r' to reload all metadata but a user would need to know that the data is outdated.

The only thing that would be possible (and likely doesn't happen now) is if a new application is deployed to a new org and/or space and that org/space metadata is loaded, this could trigger a reload of that org/space metadata. Right now I would guess that the new org/space would display the GUID on the UI.

kkellner commented 6 years ago

New enhancement! When a new Org or Space is created (or renamed), cf top now recognizes the change and load/reloads the metadata for the given item. The end result is the UI correctly reflects the names of the orgs and spaces. This was added in v0.9.0