Skip to content

web: Synchronous probing when registering or choosing product#2072

Merged
ancorgs merged 2 commits intoagama-project:masterfrom
ancorgs:sync_probe
Feb 25, 2025
Merged

web: Synchronous probing when registering or choosing product#2072
ancorgs merged 2 commits intoagama-project:masterfrom
ancorgs:sync_probe

Conversation

@ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Feb 25, 2025

Problem

There is a race condition that leads to the interface reporting that there are no available devices after changing the product or registering it.

Moreover, even if that race condition is not hit, the interface is displaying the previous storage configuration. That's wrong because changing the product or registering actually resets the storage configuration at the backend (the registration case is debatable, but that's what happens now).

Solution

Do a synchronous probing and invalidate all the storage queries when probing has finished. With that, the UI contains an up-to-date representation of the backend reality.

Testing

Tested manually

Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ancorgs ancorgs merged commit 2cbbd18 into agama-project:master Feb 25, 2025
1 check passed
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Feb 26, 2025
https://build.opensuse.org/request/show/1248590
by user IGonzalezSosa + dimstar_suse
- Version 12

- Add fonts for CJK characters and monospaced text
  (gh#agama-project/agama#2076, bsc#1237457).

- Display the file system labels in most selectors for disks and
  partitions (gh#agama-project/agama#2070).

- Use the backend's language as fallback, ignoring the browser's one
  It reduces the chances to produce unwanted side-effects when connecting
  to the web user interface (gh#agama-project/agama#2071).
- Do not block when connecting during system installation.
- Make some small fixes/improvements to the overview, localization
  and software pages markup.

- Synchronous system probing when choosing or registering the
  product (gh#agama-project/agama#2072).

- Display network edition errors instead of navigating back
  (gh#agama-project/agama#2064).

- Ignore non-critical i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants