-
Notifications
You must be signed in to change notification settings - Fork 42
Conversion Host Enablement - Future Refactor - Entire history of tasks is loaded, we should instead load only the necessary tasks #895
Comments
Just to store this somewhere, here is the query Dan originally sent me for loading one of these tasks by resource id, maybe we could adapt this to load multiple tasks by these ids: |
Eventually we'll want to establish a relationship from |
Ideally that would include a relationship from |
It looks like this may be made possible by ManageIQ/manageiq#18540. |
Note to self: to test the implementation here, I'll need to get a database with completed conversion host enable tasks that include the |
This issue has been automatically marked as stale because it has not been updated for at least 6 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! |
Still should be done, but low priority. |
Close as wontfix - maybe someday. |
I may actually try to do this eventually.. reopening for now. |
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation. |
You were right last year @vconzola , sorry 😆 . Closing as |
To display the status and enablement log of an enabled conversion host, we needed to associate each conversion host object with its original completed enablement task object. Due to the difficulty of this association, we didn't have a simple way of requesting from the API only the completed tasks matching the existing conversion hosts, so instead we load ALL conversion host tasks and make the associations in the UI, and we rely on parsing the task's name to get the resource name/type/id.
While it will work for this initial release, this isn't ideal for performance, and it theoretically could run into the 1000-record API pagination limit (see #891) if enough enable/disable tasks are present on the appliance. In the future, we should find a way to do this filtering on the back end, and make an API request that loads only:
@djberg96 let's keep track of this for post-1.1
The text was updated successfully, but these errors were encountered: