Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package agama-web-ui for openSUSE:Factory 
checked in at 2026-09-23 14:32:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/agama-web-ui (Old)
 and      /work/SRC/openSUSE:Factory/.agama-web-ui.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "agama-web-ui"

Wed Sep 23 14:32:52 2026 rev:54 rq:1379730 version:0

Changes:
--------
--- /work/SRC/openSUSE:Factory/agama-web-ui/agama-web-ui.changes        
2026-09-22 15:48:50.255291327 +0200
+++ /work/SRC/openSUSE:Factory/.agama-web-ui.new.383539/agama-web-ui.changes    
2026-09-23 14:33:42.876236798 +0200
@@ -1,0 +2,6 @@
+Tue Sep 22 14:54:01 UTC 2026 - David Diaz <[email protected]>
+
+- Block the registration page while software changes are in progress
+  (bsc#1277099, gh#agama-project/agama#3973).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ agama.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/agama/package/agama-web-ui.changes 
new/agama/package/agama-web-ui.changes
--- old/agama/package/agama-web-ui.changes      2026-09-21 16:43:04.000000000 
+0200
+++ new/agama/package/agama-web-ui.changes      2026-09-22 18:05:51.000000000 
+0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue Sep 22 14:54:01 UTC 2026 - David Diaz <[email protected]>
+
+- Block the registration page while software changes are in progress
+  (bsc#1277099, gh#agama-project/agama#3973).
+
+-------------------------------------------------------------------
 Fri Sep 18 14:30:33 UTC 2026 - David Diaz <[email protected]>
 
 - Ask to accept each license of a product requiring several
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/agama/src/components/product/ProductRegistrationPage.test.tsx 
new/agama/src/components/product/ProductRegistrationPage.test.tsx
--- old/agama/src/components/product/ProductRegistrationPage.test.tsx   
2026-09-21 16:43:04.000000000 +0200
+++ new/agama/src/components/product/ProductRegistrationPage.test.tsx   
2026-09-22 18:05:51.000000000 +0200
@@ -29,6 +29,7 @@
 import { Config } from "~/model/config";
 import { patchConfig } from "~/api";
 import { Issue } from "~/model/issue";
+import { Progress } from "~/model/status";
 import { cloneDeep } from "radashi";
 
 const tw: Product = {
@@ -64,6 +65,7 @@
 let mockRegistrationInfo: RegistrationInfo | undefined;
 let mockConfig: Config;
 let mockIssues: Issue[] = [];
+let mockProgress: Progress | undefined;
 
 jest.mock("~/hooks/model/system/software", () => ({
   useSystem: () => ({ registration: mockRegistrationInfo }),
@@ -77,6 +79,10 @@
   useIssues: () => mockIssues,
 }));
 
+jest.mock("~/hooks/model/progress", () => ({
+  useProgress: (scope) => (mockProgress?.scope === scope ? mockProgress : 
undefined),
+}));
+
 jest.mock("~/api", () => ({
   patchConfig: jest.fn(),
 }));
@@ -91,6 +97,7 @@
   beforeEach(() => {
     mockConfig = { product: { id: "sle", mode: "standard", registrationCode: 
"" } };
     mockIssues = [];
+    mockProgress = undefined;
     mockProductConfig(mockConfig.product);
     mockProduct(mockSelectedProduct);
   });
@@ -388,4 +395,48 @@
     // Hostname alert should not be shown after registration attempt
     expect(screen.queryByText("Hostname cannot be changed after 
registration")).toBeNull();
   });
+
+  describe("when there is an active software progress", () => {
+    beforeEach(() => {
+      mockSelectedProduct = sle;
+      mockProduct(sle);
+      mockRegistrationInfo = undefined;
+      mockProgress = {
+        scope: "software",
+        step: "Calculating the software proposal",
+        steps: [
+          "Updating the list of repositories",
+          "Refreshing metadata from the repositories",
+          "Calculating the software proposal",
+        ],
+        index: 3,
+        size: 3,
+      };
+    });
+
+    it("shows the progress backdrop", () => {
+      installerRender(<ProductRegistrationPage />);
+      screen.getByText("Calculating the software proposal");
+    });
+  });
+
+  describe("when there is an active progress in another scope", () => {
+    beforeEach(() => {
+      mockSelectedProduct = sle;
+      mockProduct(sle);
+      mockRegistrationInfo = undefined;
+      mockProgress = {
+        scope: "storage",
+        step: "Preparing the storage proposal",
+        steps: ["Preparing the storage proposal"],
+        index: 1,
+        size: 1,
+      };
+    });
+
+    it("does not show the progress backdrop", () => {
+      installerRender(<ProductRegistrationPage />);
+      expect(screen.queryByText("Preparing the storage proposal")).toBeNull();
+    });
+  });
 });
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/agama/src/components/product/ProductRegistrationPage.tsx 
new/agama/src/components/product/ProductRegistrationPage.tsx
--- old/agama/src/components/product/ProductRegistrationPage.tsx        
2026-09-21 16:43:04.000000000 +0200
+++ new/agama/src/components/product/ProductRegistrationPage.tsx        
2026-09-22 18:05:51.000000000 +0200
@@ -42,6 +42,7 @@
 import ProductRegistrationForm from 
"~/components/product/registration-form/Form";
 import { useProposal } from "~/hooks/model/proposal";
 import { useSystem } from "~/hooks/model/system/software";
+import { SYSTEM_QUERY_KEY } from "~/hooks/model/system";
 import { useProductInfo } from "~/hooks/model/config/product";
 import { useIssues } from "~/hooks/model/issue";
 import { useConfig } from "~/hooks/model/config";
@@ -222,7 +223,10 @@
   const showHostnameAlert = !registration && !registrationIssue;
 
   return (
-    <Page breadcrumbs={[{ label: _("Registration") }]}>
+    <Page
+      breadcrumbs={[{ label: _("Registration") }]}
+      progress={{ scope: "software", awaitQueriesRefetch: [SYSTEM_QUERY_KEY] }}
+    >
       <Page.Content>
         {showHostnameAlert && <HostnameAlert />}
         {!registration && <IssuesAlert issues={nonRegistrationIssues} />}

++++++ agama.obsinfo ++++++
--- /var/tmp/diff_new_pack.P1u2om/_old  2026-09-23 14:34:00.759984433 +0200
+++ /var/tmp/diff_new_pack.P1u2om/_new  2026-09-23 14:34:00.764984642 +0200
@@ -1,5 +1,5 @@
 name: agama
-version: 24+79.19b44f04f
-mtime: 1790001784
-commit: 19b44f04f10bb7a865c9edd2abf7ea6cb9b012d4
+version: 24+89.88ffaae47
+mtime: 1790093151
+commit: 88ffaae47a3ba5921f69c891e45f77abf23b6ef6
 

Reply via email to