@rh-support/troubleshoot 0.2.113 → 0.2.115-beta.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAoShC"}
|
|
@@ -46,7 +46,7 @@ export function Cep(props) {
|
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
setCepDetailsLocal(cepDetails);
|
|
48
48
|
}, [cepDetails]);
|
|
49
|
-
const
|
|
49
|
+
const clearCepFormInputs = () => {
|
|
50
50
|
setCepDetailsLocal(cepDetails);
|
|
51
51
|
};
|
|
52
52
|
const onCepChange = (e) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,10 +64,18 @@ export function Cep(props) {
|
|
|
64
64
|
description: t('Are you sure?'),
|
|
65
65
|
});
|
|
66
66
|
cepUpdate({ cep: false });
|
|
67
|
-
|
|
67
|
+
clearCepFormInputs();
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
setCaseDetails(caseDispatch, { cep: false });
|
|
71
|
+
setCaseState(caseDispatch, {
|
|
72
|
+
cepDetails: {
|
|
73
|
+
contactName: '',
|
|
74
|
+
contactInformation: '',
|
|
75
|
+
workingHours: '',
|
|
76
|
+
notes: '',
|
|
77
|
+
},
|
|
78
|
+
});
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
});
|
|
@@ -163,7 +171,7 @@ export function Cep(props) {
|
|
|
163
171
|
React.createElement("div", { className: "form-group" },
|
|
164
172
|
React.createElement("label", { htmlFor: "cep-notes" },
|
|
165
173
|
React.createElement(Trans, null, "Notes")),
|
|
166
|
-
React.createElement(TextAreaResizable, { id: "cep-notes", className: `form-control`, "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-
|
|
174
|
+
React.createElement(TextAreaResizable, { id: "cep-notes", className: `form-control`, "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notes", value: cepDetailsLocal.notes, onChange: onCepNotesChange, isSpaceAllowed: false, autoResize: true }),
|
|
167
175
|
React.createElement("p", { className: "form-instructions" },
|
|
168
176
|
React.createElement(Trans, null, "Provide any pertinent information that Red Hat Support should be aware of that's not already captured in the issue statement or comments.")))))));
|
|
169
177
|
}
|
|
@@ -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;AAWjF,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,
|
|
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;AAWjF,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,eAmTzC;kBAnTQ,mBAAmB;;;AAsT5B,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -47,7 +47,7 @@ const createState = (external_cluster_id, display_name) => {
|
|
|
47
47
|
};
|
|
48
48
|
function OpenshiftDropdownV4(props) {
|
|
49
49
|
const { t } = useTranslation();
|
|
50
|
-
const PER_PAGE =
|
|
50
|
+
const PER_PAGE = 200;
|
|
51
51
|
const [clustersRawResponse, setClustersRawResponse] = useState([]);
|
|
52
52
|
const abortControllerRef = useRef(undefined);
|
|
53
53
|
const [clustersSelectOptions, setClustersSelectOptions] = useState([]);
|
|
@@ -168,19 +168,16 @@ function OpenshiftDropdownV4(props) {
|
|
|
168
168
|
});
|
|
169
169
|
try {
|
|
170
170
|
// old api has dns info
|
|
171
|
-
//
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
if (response.status === 'fulfilled' && ((_b = (_a = response.value) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b[0].dns)) {
|
|
182
|
-
var index = findIndex(items, { external_cluster_id: response.value.items[0].external_id });
|
|
183
|
-
items[index] = Object.assign(Object.assign({}, items[index]), { dns: response.value.items[0].dns });
|
|
171
|
+
// call old api to get clusters from prev call then add dns info to the new api response
|
|
172
|
+
const oldApiResponse = yield cloud.getAccountClusters({
|
|
173
|
+
search: clustersResponse.items
|
|
174
|
+
.map((c) => `external_id='${c.external_cluster_id}'`)
|
|
175
|
+
.join(' OR '),
|
|
176
|
+
}, controller.signal);
|
|
177
|
+
oldApiResponse === null || oldApiResponse === void 0 ? void 0 : oldApiResponse.items.forEach((response) => {
|
|
178
|
+
if (response.dns) {
|
|
179
|
+
var index = findIndex(items, { external_cluster_id: response.external_id });
|
|
180
|
+
items[index] = Object.assign(Object.assign({}, items[index]), { dns: response.dns });
|
|
184
181
|
}
|
|
185
182
|
});
|
|
186
183
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.115-beta.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.10.
|
|
29
|
+
"@cee-eng/hydrajs": "4.10.1",
|
|
30
30
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
31
|
"@patternfly/patternfly": "4.185.1",
|
|
32
32
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-virtualized": "^9.21.2"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@cee-eng/hydrajs": "4.10.
|
|
66
|
+
"@cee-eng/hydrajs": "4.10.1",
|
|
67
67
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
68
68
|
"@patternfly/patternfly": "4.185.1",
|
|
69
69
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@patternfly/react-core": "4.202.16",
|
|
74
74
|
"@progress/kendo-drawing": "^1.6.0",
|
|
75
75
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
76
|
-
"@rh-support/api": "0.3.21",
|
|
77
|
-
"@rh-support/components": "1.1.
|
|
78
|
-
"@rh-support/react-context": "0.2.
|
|
76
|
+
"@rh-support/api": "0.3.21-beta.0",
|
|
77
|
+
"@rh-support/components": "1.1.69-beta.0",
|
|
78
|
+
"@rh-support/react-context": "0.2.73-beta.0",
|
|
79
79
|
"@rh-support/types": "0.2.0",
|
|
80
|
-
"@rh-support/user-permissions": "0.2.
|
|
81
|
-
"@rh-support/utils": "0.2.43",
|
|
80
|
+
"@rh-support/user-permissions": "0.2.58-beta.0",
|
|
81
|
+
"@rh-support/utils": "0.2.43-beta.0",
|
|
82
82
|
"@types/react-redux": "^7.1.12",
|
|
83
83
|
"@types/redux": "^3.6.0",
|
|
84
84
|
"@webcomponents/webcomponentsjs": "^2.2.10",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"not ie <= 11",
|
|
144
144
|
"not op_mini all"
|
|
145
145
|
],
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "48bc6d3fa3695de98152db5a7a97f773bb52807a"
|
|
147
147
|
}
|