Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: make GET /storage return the last successful probe when requ…
…ested In the following patch: 4c59e1e never return a PROBING response from guided_POST we fixed a UI crash occurring when a storage probing operation was ongoing while the user would enter the partitioning screen with "Use an entire disk". To address the issue, we made POST /storage/guided return the last (cached) successful probe result rather than returning a potential PROBING status result. That being said, when "Custom Storage Layout" is selected, we are using a different HTTP call: GET /storage which can also return a PROBING status result. So our fix was only partial. This patch adds a "use_cached_result" parameter (which defaults to false) to GET /storage. This makes the call return the last successful probe result. When the client selects "Custom Storage Layout" we now explicitly request a cached result so that we don't have to deal with a potential PROBING status response. Ideally, we should either: * make the client aware that a PROBING status can be returned and act accordingly. * pass the wait=true argument to GET /storage or POST /storage/guided But doing so has other implications and the kinetic release is imminent. Signed-off-by: Olivier Gayot <[email protected]>
- Loading branch information