You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a product is selected, the manager service performs its config phase. That phase consists on a set of steps: storage probing, storage proposal, software probing, etc. And nothing prevents new D-Bus calls to be dispatched in middle of the proccess, which has several implications:
Some changes can be lost. For example, if you request a storage proposal before the config phase is done, then your proposal could be overwritten by the proposal requested by the manager service.
If you request some information before finishing the config phase, then the result could be misleading. For example, checking for the availability of a package before the software proposal is done.
Selecting a new product should be an atomic action, preventing certain interactions till the process is completed.
The text was updated successfully, but these errors were encountered:
## Problem
The call to the sotware service to check for the availability of a
package is mocked and always returns true, assuming the package is
always available. Of course, the availability of a package depends of
the currently selected product.
## Solution
Perform a D-Bus call to the software service in order to know if a
package is available.
Note: This change exposes a problem in our services. Asking for the
product availability should be done once the software proposal is done,
otherwise the result is not reliable at all, see
#1005. For example, the TPM
option in the storage settings could not appear until the software
service has finished, see #995.
## Testing
* Added new unit tests
* Tested manually
When a product is selected, the manager service performs its config phase. That phase consists on a set of steps: storage probing, storage proposal, software probing, etc. And nothing prevents new D-Bus calls to be dispatched in middle of the proccess, which has several implications:
Selecting a new product should be an atomic action, preventing certain interactions till the process is completed.
The text was updated successfully, but these errors were encountered: