Resolves: rhbz#2044409
- Fixed cluster destroy in web ui - Fixed covscan issue in web ui
This commit is contained in:
parent
a4dcfd9e5c
commit
e9f7ea4da1
@ -0,0 +1,23 @@
|
|||||||
|
From fa75f40361bc39cbd645b8014713e4c0ad0cda18 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ivan Devat <idevat@redhat.com>
|
||||||
|
Date: Mon, 24 Jan 2022 14:08:54 +0100
|
||||||
|
Subject: [PATCH 2/2] fix backend parameter "all" in cluster destroy
|
||||||
|
|
||||||
|
---
|
||||||
|
src/app/backend/calls/destroyCluster.ts | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/app/backend/calls/destroyCluster.ts b/src/app/backend/calls/destroyCluster.ts
|
||||||
|
index b6e83a41..cf41ea42 100644
|
||||||
|
--- a/src/app/backend/calls/destroyCluster.ts
|
||||||
|
+++ b/src/app/backend/calls/destroyCluster.ts
|
||||||
|
@@ -4,5 +4,5 @@ const { url } = endpoints.destroyCluster;
|
||||||
|
|
||||||
|
export const destroyCluster = (clusterName: string): CallResult =>
|
||||||
|
http.post(url({ clusterName }), {
|
||||||
|
- params: [["--all", "1"]],
|
||||||
|
+ params: [["all", "1"]],
|
||||||
|
});
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
11
pcs.spec
11
pcs.spec
@ -1,6 +1,6 @@
|
|||||||
Name: pcs
|
Name: pcs
|
||||||
Version: 0.11.1
|
Version: 0.11.1
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/
|
||||||
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
|
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
|
||||||
# GPLv2: pcs
|
# GPLv2: pcs
|
||||||
@ -122,6 +122,8 @@ Patch1: do-not-support-cluster-setup-with-udp-u-transport.patch
|
|||||||
|
|
||||||
# ui patches: >200
|
# ui patches: >200
|
||||||
# Patch201: bzNUMBER-01-name.patch
|
# Patch201: bzNUMBER-01-name.patch
|
||||||
|
Patch201: simplify-ternar-expression.patch
|
||||||
|
Patch202: bz2044409-01-fix-backend-parameter-all-in-cluster-destroy.patch
|
||||||
|
|
||||||
# git for patches
|
# git for patches
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
@ -297,6 +299,8 @@ update_times_patch(){
|
|||||||
%autosetup -D -T -b 100 -a 101 -S git -n %{ui_src_name} -N
|
%autosetup -D -T -b 100 -a 101 -S git -n %{ui_src_name} -N
|
||||||
%autopatch -p1 -m 201
|
%autopatch -p1 -m 201
|
||||||
# update_times_patch %%{PATCH201}
|
# update_times_patch %%{PATCH201}
|
||||||
|
update_times_patch %{PATCH201}
|
||||||
|
update_times_patch %{PATCH202}
|
||||||
|
|
||||||
# patch pcs sources
|
# patch pcs sources
|
||||||
%autosetup -S git -n %{pcs_source_name} -N
|
%autosetup -S git -n %{pcs_source_name} -N
|
||||||
@ -549,6 +553,11 @@ run_all_tests
|
|||||||
%license pyagentx_LICENSE.txt
|
%license pyagentx_LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 25 2022 Miroslav Lisik <mlisik@redhat.com> - 0.11.1-9
|
||||||
|
- Fixed cluster destroy in web ui
|
||||||
|
- Fixed covscan issue in web ui
|
||||||
|
- Resolves: rhbz#2044409
|
||||||
|
|
||||||
* Fri Jan 14 2022 Miroslav Lisik <mlisik@redhat.com> - 0.11.1-8
|
* Fri Jan 14 2022 Miroslav Lisik <mlisik@redhat.com> - 0.11.1-8
|
||||||
- Fixed 'pcs resource move' command
|
- Fixed 'pcs resource move' command
|
||||||
- Fixed removing of unavailable fence-scsi storage device
|
- Fixed removing of unavailable fence-scsi storage device
|
||||||
|
26
simplify-ternar-expression.patch
Normal file
26
simplify-ternar-expression.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From f44cdc871a39da3960bd04565b4d1d5ffa19bd23 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ivan Devat <idevat@redhat.com>
|
||||||
|
Date: Thu, 20 Jan 2022 13:32:49 +0100
|
||||||
|
Subject: [PATCH 1/2] simplify ternar expression
|
||||||
|
|
||||||
|
The motivation for this is that covscan complains about it.
|
||||||
|
---
|
||||||
|
src/app/view/share/useUrlTabs.ts | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/app/view/share/useUrlTabs.ts b/src/app/view/share/useUrlTabs.ts
|
||||||
|
index 7278dad8..a1136bf3 100644
|
||||||
|
--- a/src/app/view/share/useUrlTabs.ts
|
||||||
|
+++ b/src/app/view/share/useUrlTabs.ts
|
||||||
|
@@ -13,7 +13,7 @@ export const useUrlTabs = <TABS extends ReadonlyArray<string>>(
|
||||||
|
|
||||||
|
return {
|
||||||
|
currentTab,
|
||||||
|
- matchedContext: tab !== null ? tab.matched : `/${defaultTab}`,
|
||||||
|
+ matchedContext: tab?.matched ?? `/${defaultTab}`,
|
||||||
|
tabList,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user