fix(xo-server): change current_operations display for xo host and poo… - #10283
fix(xo-server): change current_operations display for xo host and poo…#10283ayoub-el-kajji-v wants to merge 6 commits into
Conversation
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
spacotte-vates
left a comment
There was a problem hiding this comment.
Details, otherwise LGTM
| - [Warm migration] Fix `Vm target of warm migration not found` error at the end of a migration (PR [#10210](https://github.com/vatesfr/xen-orchestra/pull/10210)) | ||
| - **XO 5**: | ||
| - [VM/Console] Fix the page header and tab navigation disappearing permanently in the console tab (PR [#10007](https://github.com/vatesfr/xen-orchestra/pull/10007)) | ||
| - [XO server] Fix current_operations format on host and pool objects (PR [#10283](https://github.com/vatesfr/xen-orchestra/pull/10283)) |
There was a problem hiding this comment.
I think it's better to move it above the XO 5/XO 6 section otherwise it's a bit confusing where it belongs.
| auto_poweron: obj.other_config.auto_poweron === 'true', | ||
| crashDumpSr: link(obj, 'crash_dump_SR'), | ||
| current_operations: obj.current_operations, | ||
| current_operations: currentOperations, |
There was a problem hiding this comment.
| current_operations: currentOperations, | |
| current_operations: getCurrentOperations(obj), |
Prevents using a const, not very important.
MathieuRA
left a comment
There was a problem hiding this comment.
The code LGTM, but during my tests, it didn't work as expected.
For example, if you shut down a host, the shutdown operation does not appear in the object's current_operations
| // Builds a { taskId -> operation } map from a XAPI object's raw | ||
| // current_operations ({ OpaqueRef -> operation }), dropping any entry | ||
| // whose task is no longer present in the local cache (e.g. it finished | ||
| // and was collected). This lets consumers know an operation is truly | ||
| // over once it disappears from the map, instead of seeing a stale entry | ||
| // forever. |
There was a problem hiding this comment.
Convert this comment into JSDoc so that it appears when hovering over the function signature
| - [Backup/File restore, Backup/Health] An unreachable backup repository no longer slows down every listing: it is skipped after a delay and retried with an increasing backoff (PR [#10205](https://github.com/vatesfr/xen-orchestra/pull/10205)) | ||
| - [REST API] Fix `/users/:id/authentication_tokens` sometimes did not return the token used to make the request (PR [#10233](https://github.com/vatesfr/xen-orchestra/pull/10233)) | ||
| - [XO server] Fix a random behavior regarding `coresPerSocket` update (PR [#10201](https://github.com/vatesfr/xen-orchestra/pull/10201)) | ||
| - [XO server] Fix current_operations format on host and pool objects (PR [#10283](https://github.com/vatesfr/xen-orchestra/pull/10283)) |
There was a problem hiding this comment.
update xo-server to minor instead patch
| - [Backup/File restore, Backup/Health] An unreachable backup repository no longer slows down every listing: it is skipped after a delay and retried with an increasing backoff (PR [#10205](https://github.com/vatesfr/xen-orchestra/pull/10205)) | ||
| - [REST API] Fix `/users/:id/authentication_tokens` sometimes did not return the token used to make the request (PR [#10233](https://github.com/vatesfr/xen-orchestra/pull/10233)) | ||
| - [XO server] Fix a random behavior regarding `coresPerSocket` update (PR [#10201](https://github.com/vatesfr/xen-orchestra/pull/10201)) | ||
| - [XO server] Fix current_operations format on host and pool objects (PR [#10283](https://github.com/vatesfr/xen-orchestra/pull/10283)) |
There was a problem hiding this comment.
Each new entry must be placed at the end of the section (to facilitate conflict resolution).
They are reorganized during the technical release
Description
[XO-2810]
This PR is a fix to change the display format of the current_operations object in Host and Pool to be displayed with the same format of the current_operations in VM
Checklist
Fixes #007,See xoa-support#42,See https://...)Introduced byCHANGELOG.unreleased.mdReview process
If you are an external contributor, you can skip this part. Simply create the pull request, and we'll get back to you as soon as possible.
Notes: