Open Ladas opened 3 years ago
from original doc: https://docs.google.com/document/d/1hm1yNAP-IMGkJBMVh8cfnuh5av45xOxGG8oyuOTqSzg/edit?ts=60e5b970
used for:
Can be taken directly form Controller API and cached upon adding into portfolio (id, name, description)
used for:
(same as Job template)
uUsed for:
same as Job
used for: Tagging. We can call Controller API directly and just store tags locally? (just with inventory id?
used for: ?
used for: ?
used for:
can be dropped entirely if tower exposes associated inventories https://github.com/ansible/awx/issues/10603
The Credentials and Credential Types are left over from the CloudForms inventory collection process they have never been used and can be dropped. When doing live fetch if multiple users are interacting with the UI would they all be making separate Tower calls. This would increase the traffic to the tower.
Description
Remove Inventory refresh for on-premise to get better UX
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
We can add Inventory class in backend, that will call Controller directly (having the proxy class, so we can write different adapter for the cloud version).
Or we can call Controller API directly from the UI, with configuration that would point to a different service for cloud version we'd build a service that responds to the Controller API queries we're using)
Adding product to portfolios would cache the templates to local DB as id/name/description. (so it's taggable)
List of current catalog API calls to see which would be replaced by calling Controller API:
Add product to portfolio
Order product ...
Related PRs
Add PRs here when ready
Possible issues
We'd still need Inventory refresh at least for cleanup? So deleting/archiving products when the job templates get deleted on Controller side?