@rh-support/troubleshoot 0.2.98 → 0.2.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +38 -8
- package/lib/esm/components/CaseInformation/SupportLevel.js +2 -2
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +12 -5
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts +1 -0
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +7 -4
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +1 -4
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,sBAAsB,gBA4RrC"}
|
|
@@ -19,10 +19,10 @@ import { useCaseDispatch, useCaseSelector } from '../../../../../context/CaseCon
|
|
|
19
19
|
import { setCaseDetails, updateCaseDetails } from '../../../../../reducers/CaseReducer';
|
|
20
20
|
import { getIsClusterIdInvalid, isClusterIdEnabledForProduct } from '../../../../../utils/caseOpenshiftClusterIdUtils';
|
|
21
21
|
import { NoClusterIDReasonSelector } from '../../../../CaseManagement/NoClusterIDReasonSelector';
|
|
22
|
-
import { discoverV4ClusterIdLink, discoverV4ClusterIdLinkError, isInvalidErrorMessage, } from '../../../../CaseManagement/OpenShiftClusterId';
|
|
22
|
+
import { discoverV4ClusterIdLink, discoverV4ClusterIdLinkError, isInvalidErrorMessage, v3Tov4TransitionLink, } from '../../../../CaseManagement/OpenShiftClusterId';
|
|
23
23
|
import { fetchClusterIdDetails, OpenshiftDropdownV4 } from '../../../../CaseManagement/OpenshiftDropdownV4';
|
|
24
24
|
export function CaseOpenshiftClusterId() {
|
|
25
|
-
const { openshiftClusterID, product, version, caseNumber, openshiftClusterVersion, noClusterIdReason, noClusterIdReasonExplanation, selectedAccountDetails, } = useCaseSelector((state) => ({
|
|
25
|
+
const { openshiftClusterID, product, version, caseNumber, openshiftClusterVersion, noClusterIdReason, noClusterIdReasonExplanation, selectedAccountDetails, description, } = useCaseSelector((state) => ({
|
|
26
26
|
openshiftClusterID: state.caseDetails.openshiftClusterID,
|
|
27
27
|
product: state.caseDetails.product,
|
|
28
28
|
version: state.caseDetails.version,
|
|
@@ -31,6 +31,7 @@ export function CaseOpenshiftClusterId() {
|
|
|
31
31
|
noClusterIdReason: state.caseDetails.noClusterIdReason,
|
|
32
32
|
noClusterIdReasonExplanation: state.caseDetails.noClusterIdReasonExplanation,
|
|
33
33
|
selectedAccountDetails: state.selectedAccountDetails,
|
|
34
|
+
description: state.caseDetails.description,
|
|
34
35
|
}), isEqual);
|
|
35
36
|
const caseDispatch = useCaseDispatch();
|
|
36
37
|
const { globalMetadataState: { pcmConfig, allProducts, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
@@ -137,6 +138,24 @@ export function CaseOpenshiftClusterId() {
|
|
|
137
138
|
setDontKnowSelected(true);
|
|
138
139
|
setSelectedReason(selectedClusterId);
|
|
139
140
|
setIsClusterIdInValid(false);
|
|
141
|
+
const caseDetails = {
|
|
142
|
+
openshiftClusterID: '',
|
|
143
|
+
noClusterIdReasonExplanation: '',
|
|
144
|
+
noClusterIdReason: '',
|
|
145
|
+
openshiftClusterVersion: '',
|
|
146
|
+
};
|
|
147
|
+
yield clusterIdUpdate(caseDetails);
|
|
148
|
+
}
|
|
149
|
+
else if (selectedClusterId === 'v3-cluster') {
|
|
150
|
+
setSelectedReason('dont-have-id');
|
|
151
|
+
const caseDetails = {
|
|
152
|
+
openshiftClusterID: '',
|
|
153
|
+
noClusterIdReasonExplanation: 'v3-cluster',
|
|
154
|
+
noClusterIdReason: 'Other',
|
|
155
|
+
openshiftClusterVersion: '',
|
|
156
|
+
};
|
|
157
|
+
yield clusterIdUpdate(caseDetails);
|
|
158
|
+
setDontKnowSelected(false);
|
|
140
159
|
}
|
|
141
160
|
else {
|
|
142
161
|
const isClusterIdInvalid = getIsClusterIdInvalid(selectedClusterId);
|
|
@@ -162,13 +181,17 @@ export function CaseOpenshiftClusterId() {
|
|
|
162
181
|
setSelectedReason('');
|
|
163
182
|
}
|
|
164
183
|
});
|
|
184
|
+
const isDedicatedV3 = () => noClusterIdReason === 'Other' && noClusterIdReasonExplanation === 'v3-cluster';
|
|
185
|
+
const v3Message = () => description.match(/Cluster Name: /g) ? (React.createElement(React.Fragment, null,
|
|
186
|
+
"Your Cluster Name has been added to the description below. ",
|
|
187
|
+
v3Tov4TransitionLink())) : (React.createElement(React.Fragment, null, v3Tov4TransitionLink()));
|
|
165
188
|
const clusterIdDropdownFormInstructions = () => {
|
|
166
189
|
const errorMessage = isClusterIdInvalid
|
|
167
190
|
? isInvalidErrorMessage()
|
|
168
191
|
: isEmpty(openshiftClusterID) && isEmpty(selectedReason)
|
|
169
192
|
? discoverV4ClusterIdLinkError()
|
|
170
193
|
: null;
|
|
171
|
-
const infoMessage = discoverV4ClusterIdLink();
|
|
194
|
+
const infoMessage = isDedicatedV3() ? v3Message() : discoverV4ClusterIdLink();
|
|
172
195
|
return errorMessage ? errorMessage : infoMessage;
|
|
173
196
|
};
|
|
174
197
|
const onReasonExplanationInputBoxChanged = (explanationInput) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -205,10 +228,17 @@ export function CaseOpenshiftClusterId() {
|
|
|
205
228
|
setIsReasonUpdating(false);
|
|
206
229
|
});
|
|
207
230
|
const isInVaidNoClusterIdReason = isEmpty(noClusterIdReason) || (noClusterIdReason === 'Other' && isEmpty(noClusterIdReasonExplanation.trim()));
|
|
208
|
-
if (!showClusterId
|
|
231
|
+
if (!showClusterId) {
|
|
209
232
|
return null;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
233
|
+
}
|
|
234
|
+
else if (isOpenShiftV3) {
|
|
235
|
+
return React.createElement("div", { className: "pull-top pf-u-pb-xl" }, v3Message());
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
return (React.createElement(React.Fragment, null,
|
|
239
|
+
React.createElement(OpenshiftDropdownV4, { openshiftClusterIDState: localOpenshiftClusterIDState || selectedReason, onClusterIdStateUpdate: onClusterIdSave, isClusterIdInvalid: (isEmpty(localOpenshiftClusterIDState) && isEmpty(selectedReason)) || isClusterIdInvalid, clusterIdDropdownFormInstructions: clusterIdDropdownFormInstructions(), onClusterClear: () => setLocalOpenshiftClusterIDState(''), isV4: majorVersion === '4', isDisabled: isClusterIdUpdating || isFetchingClusterDetails, noClusterIdReasonExplanation: noClusterIdReasonExplanation }),
|
|
240
|
+
noClusterIdReasonExplanation !== 'v3-cluster' &&
|
|
241
|
+
(dontKnowSelected || noClusterIdReasonExplanation || noClusterIdReason) && (React.createElement(NoClusterIDReasonSelector, { noClusterIdReasonExplanation: noClusterIdReasonExplanation, noClusterIdReason: noClusterIdReason, onReasonInputBoxChanged: debounceFn, onReasonChange: onReasonChange, isInValid: isInVaidNoClusterIdReason, isCustomer: isCustomer, isDisabled: isReasonUpdating || isFetchingClusterDetails })),
|
|
242
|
+
React.createElement(LoadingIndicator, { show: isClusterIdUpdating, size: "xs" })));
|
|
243
|
+
}
|
|
214
244
|
}
|
|
@@ -72,8 +72,8 @@ function SupportLevel(props) {
|
|
|
72
72
|
React.createElement(Trans, null, "Support level"),
|
|
73
73
|
' ',
|
|
74
74
|
!isEmpty(ownersEntitlements.data) && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
|
|
75
|
-
React.createElement(Popover, { "aria-label": "Support Level info", position: PopoverPosition.top, bodyContent: React.createElement(
|
|
76
|
-
React.createElement("
|
|
75
|
+
React.createElement(Popover, { "aria-label": "Support Level info", position: PopoverPosition.top, bodyContent: React.createElement("p", null,
|
|
76
|
+
React.createElement(Trans, { i18nKey: "i18ProductionSupportServiceLevelAgreement" },
|
|
77
77
|
"Learn more about our",
|
|
78
78
|
' ',
|
|
79
79
|
React.createElement("a", { href: "/support/offerings/production/sla", target: "_blank" }, "production support service level agreement"))), closeBtnAriaLabel: "Close" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenShiftClusterId.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftClusterId.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,oBAAoB,mBAShC,CAAC;AAEF,eAAO,MAAM,uBAAuB,mBAInC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mBAKxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mBAIjC,CAAC;AAEF,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"OpenShiftClusterId.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftClusterId.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,oBAAoB,mBAShC,CAAC;AAEF,eAAO,MAAM,uBAAuB,mBAInC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mBAKxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mBAIjC,CAAC;AAEF,wBAAgB,kBAAkB,gBAoSjC"}
|
|
@@ -148,11 +148,12 @@ export function OpenShiftClusterId() {
|
|
|
148
148
|
setClusterVersion(openshiftClusterID);
|
|
149
149
|
}
|
|
150
150
|
// when user click on back and continue button, need to show v3 text box or reasons dropdown
|
|
151
|
-
if (!isEmpty(v3ClusterName)
|
|
151
|
+
if (!isEmpty(v3ClusterName) ||
|
|
152
|
+
(noClusterIdReason === 'Other' && noClusterIdReasonExplanation === 'v3-cluster')) {
|
|
152
153
|
setV3Selected(true);
|
|
153
154
|
setSelectedReason('v3-cluster');
|
|
154
155
|
}
|
|
155
|
-
if (!isEmpty(noClusterIdReason)) {
|
|
156
|
+
else if (!isEmpty(noClusterIdReason)) {
|
|
156
157
|
setDontKnowSelected(true);
|
|
157
158
|
setSelectedReason('dont-have-id');
|
|
158
159
|
}
|
|
@@ -162,9 +163,9 @@ export function OpenShiftClusterId() {
|
|
|
162
163
|
!clusterRecommendations.data.length &&
|
|
163
164
|
fetchClusterRecommendations(clusterRecommendationsDispatch, openshiftClusterID);
|
|
164
165
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
165
|
-
}, [
|
|
166
|
+
}, [noClusterIdReason]);
|
|
166
167
|
const onClusterIdStateUpdate = (selectedCluster) => {
|
|
167
|
-
const selectedId = selectedCluster.external_cluster_id;
|
|
168
|
+
const selectedId = selectedCluster === null || selectedCluster === void 0 ? void 0 : selectedCluster.external_cluster_id;
|
|
168
169
|
if (isEmpty(selectedId))
|
|
169
170
|
return;
|
|
170
171
|
resetClusterData();
|
|
@@ -176,6 +177,12 @@ export function OpenShiftClusterId() {
|
|
|
176
177
|
if (selectedId === 'v3-cluster') {
|
|
177
178
|
setV3Selected(true);
|
|
178
179
|
setSelectedReason(selectedId);
|
|
180
|
+
setCaseDetails(caseDispatch, {
|
|
181
|
+
openshiftClusterID,
|
|
182
|
+
openshiftClusterVersion: '',
|
|
183
|
+
noClusterIdReason: 'Other',
|
|
184
|
+
noClusterIdReasonExplanation: 'v3-cluster',
|
|
185
|
+
});
|
|
179
186
|
return;
|
|
180
187
|
}
|
|
181
188
|
const isClusterInvalid = getIsClusterIdInvalid(selectedId);
|
|
@@ -214,6 +221,6 @@ export function OpenShiftClusterId() {
|
|
|
214
221
|
return (React.createElement(React.Fragment, null,
|
|
215
222
|
!isOpenShiftV3 && (React.createElement(OpenshiftDropdownV4, { openshiftClusterIDState: openshiftClusterID || selectedReason, onClusterIdStateUpdate: onClusterIdStateUpdate, isClusterIdInvalid: showValidationErrorAlert &&
|
|
216
223
|
((isEmpty(openshiftClusterID) && isEmpty(selectedReason)) || isClusterIdInvalid), clusterIdDropdownFormInstructions: clusterIdDropdownFormInstructions(), onClusterClear: resetClusterData, isV4: majorVersion === '4' })),
|
|
217
|
-
dontKnowSelected && !isOpenShiftV3 && (React.createElement(NoClusterIDReasonSelector, { noClusterIdReasonExplanation: noClusterIdReasonExplanation, noClusterIdReason: noClusterIdReason, onReasonInputBoxChanged: onReasonExplanationInputBoxChanged, onReasonChange: onReasonChange, isInValid: isInVaidNoClusterIdReason, isCustomer: isCustomer })),
|
|
224
|
+
noClusterIdReasonExplanation !== 'v3-cluster' && dontKnowSelected && !isOpenShiftV3 && (React.createElement(NoClusterIDReasonSelector, { noClusterIdReasonExplanation: noClusterIdReasonExplanation, noClusterIdReason: noClusterIdReason, onReasonInputBoxChanged: onReasonExplanationInputBoxChanged, onReasonChange: onReasonChange, isInValid: isInVaidNoClusterIdReason, isCustomer: isCustomer })),
|
|
218
225
|
(v3Selected || isOpenShiftV3) && (React.createElement(OpenShiftV3Inputbox, { v3ClusterName: v3ClusterName, onReasonInputBoxChanged: v3ClusterNameInputBoxChanged, isInValid: isEmpty(v3ClusterName.trim()) && showValidationErrorAlert, v3Selected: v3Selected }))));
|
|
219
226
|
}
|
|
@@ -8,6 +8,7 @@ interface IProps extends IDClassNameProps {
|
|
|
8
8
|
onClusterClear: () => void;
|
|
9
9
|
isV4: boolean;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
|
+
noClusterIdReasonExplanation?: string;
|
|
11
12
|
}
|
|
12
13
|
declare const fetchClusterIdDetails: (clusterId: string) => Promise<import("@cee-eng/hydrajs/@types/models/cloud").ICluster>;
|
|
13
14
|
declare function OpenshiftDropdownV4(props: IProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAgC,MAAM,sCAAsC,CAAC;AAE1G,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAYjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAgC,MAAM,sCAAsC,CAAC;AAE1G,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAYjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACzC;AAQD,QAAA,MAAM,qBAAqB,cAAqB,MAAM,qEASrD,CAAC;AAeF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA4TzC;kBA5TQ,mBAAmB;;;AA+T5B,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -59,11 +59,14 @@ function OpenshiftDropdownV4(props) {
|
|
|
59
59
|
const [showArchivedClusters, setShowArchivedClusters] = useState(false);
|
|
60
60
|
const [isFetchingClusters, setIsFetchingClusters] = useState(false);
|
|
61
61
|
// gets a cluster id and returns display name
|
|
62
|
-
const getDisplayNameById = (clusters, id) => {
|
|
62
|
+
const getDisplayNameById = (clusters, id, noClusterIdReasonExplanation) => {
|
|
63
63
|
if (isEmpty(id))
|
|
64
64
|
return '';
|
|
65
|
-
if (id === 'dont-have-id')
|
|
66
|
-
return
|
|
65
|
+
if (id === 'dont-have-id') {
|
|
66
|
+
return noClusterIdReasonExplanation === 'v3-cluster'
|
|
67
|
+
? t('The case is for a v3 cluster')
|
|
68
|
+
: t("I don't have my Cluster ID");
|
|
69
|
+
}
|
|
67
70
|
if (id === 'v3-cluster')
|
|
68
71
|
return t('The case is for a v3 cluster');
|
|
69
72
|
const cluster = find(clusters, (o) => o.external_cluster_id === id);
|
|
@@ -247,7 +250,7 @@ function OpenshiftDropdownV4(props) {
|
|
|
247
250
|
return createState(props.openshiftClusterIDState, inputVal);
|
|
248
251
|
}
|
|
249
252
|
else {
|
|
250
|
-
return createState(props.openshiftClusterIDState, getDisplayNameById(clustersRawResponse, props.openshiftClusterIDState));
|
|
253
|
+
return createState(props.openshiftClusterIDState, getDisplayNameById(clustersRawResponse, props.openshiftClusterIDState, props.noClusterIdReasonExplanation));
|
|
251
254
|
}
|
|
252
255
|
};
|
|
253
256
|
const titleId = 'case-details-cluster-nickname-selector';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAW3D,OAAO,EAMH,UAAU,EAcb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,KACvB,MAuBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAW3D,OAAO,EAMH,UAAU,EAcb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,KACvB,MAuBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CA8B5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA2BxG,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAiBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAiBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CAiEtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CA6BtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAyCF,CAAC"}
|
|
@@ -118,10 +118,7 @@ export const isClusterIDValid = (caseState, allProducts) => {
|
|
|
118
118
|
case_details.noClusterIdReason === 'Other' &&
|
|
119
119
|
!isEmpty(case_details.noClusterIdReasonExplanation) &&
|
|
120
120
|
isEmpty(caseState.v3ClusterName);
|
|
121
|
-
const hasValidV3ClusterName = () => isEmpty(case_details.openshiftClusterID) &&
|
|
122
|
-
isEmpty(case_details.noClusterIdReason) &&
|
|
123
|
-
isEmpty(case_details.noClusterIdReasonExplanation) &&
|
|
124
|
-
!isEmpty(caseState.v3ClusterName);
|
|
121
|
+
const hasValidV3ClusterName = () => isEmpty(case_details.openshiftClusterID) && !isEmpty(caseState.v3ClusterName);
|
|
125
122
|
return productHasClusterID
|
|
126
123
|
? hasValidClusterId() || hasValidReason() || hasValidReasonExplanation() || hasValidV3ClusterName()
|
|
127
124
|
: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.101",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
76
76
|
"@rh-support/api": "0.3.15",
|
|
77
77
|
"@rh-support/components": "1.1.59",
|
|
78
|
-
"@rh-support/react-context": "0.2.
|
|
78
|
+
"@rh-support/react-context": "0.2.60",
|
|
79
79
|
"@rh-support/types": "0.2.0",
|
|
80
80
|
"@rh-support/user-permissions": "0.2.47",
|
|
81
81
|
"@rh-support/utils": "0.2.36",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"not ie <= 11",
|
|
144
144
|
"not op_mini all"
|
|
145
145
|
],
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "f4c1193e5fcc163b2cb5ccd5cdefdc78c1fda43f"
|
|
147
147
|
}
|