@rh-support/troubleshoot 2.7.53 → 2.7.54
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/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +9 -3
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +20 -6
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +10 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.js +7 -3
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +1 -1
- package/lib/esm/graphql/queries/getEscalationDetails.js +3 -0
- package/lib/esm/graphql/schemas/escalation.d.ts +3 -0
- package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -1
- package/lib/esm/hooks/useS3Upload.d.ts.map +1 -1
- package/lib/esm/hooks/useS3Upload.js +5 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +20 -4
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostComment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAW7F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAmB5E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PostComment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAW7F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAmB5E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,qBA4cxC"}
|
|
@@ -214,7 +214,7 @@ export function PostComment(props) {
|
|
|
214
214
|
const checkCommentSignature = derivedPlainText.replace(commentSignature, '');
|
|
215
215
|
const isCommentEmpty = isEmpty(checkCommentSignature === null || checkCommentSignature === void 0 ? void 0 : checkCommentSignature.trim());
|
|
216
216
|
const onPostComment = () => __awaiter(this, void 0, void 0, function* () {
|
|
217
|
-
var _a, _b;
|
|
217
|
+
var _a, _b, _c, _d;
|
|
218
218
|
if (canEditCase.alert())
|
|
219
219
|
return;
|
|
220
220
|
if (!commentText)
|
|
@@ -257,8 +257,14 @@ export function PostComment(props) {
|
|
|
257
257
|
ToastNotification.addSuccessMessage(t('Comment submitted'));
|
|
258
258
|
setCssCommentAgreed(false);
|
|
259
259
|
}
|
|
260
|
-
catch (
|
|
261
|
-
|
|
260
|
+
catch (error) {
|
|
261
|
+
const statusCode = (_c = error === null || error === void 0 ? void 0 : error.statusCode) !== null && _c !== void 0 ? _c : (_d = error === null || error === void 0 ? void 0 : error.networkError) === null || _d === void 0 ? void 0 : _d.statusCode;
|
|
262
|
+
if (statusCode === 403) {
|
|
263
|
+
ToastNotification.addDangerMessage(t('Could not submit comment. Remove or rephrase code/stack-trace text and try again.'));
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
ToastNotification.addDangerMessage(t('Could not submit comment. Please refresh the page and try again.'));
|
|
267
|
+
}
|
|
262
268
|
}
|
|
263
269
|
finally {
|
|
264
270
|
setIsProcessing(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAoF/D,wBAAgB,kBAAkB,sBAqUjC"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { ValidatedOptions } from '@patternfly/react-core';
|
|
11
|
-
import { getExactCountry, getPhoneObj, PhoneInput } from '@rh-support/components';
|
|
11
|
+
import { getCountryByIso2, getExactCountry, getPhoneObj, getPreferredCountryIso2FromTimezone, PhoneInput, } from '@rh-support/components';
|
|
12
12
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
13
|
import isEmpty from 'lodash/isEmpty';
|
|
14
14
|
import isEqual from 'lodash/isEqual';
|
|
@@ -23,7 +23,7 @@ import { setCaseDetails, setCaseState } from '../../reducers/CaseReducer';
|
|
|
23
23
|
import { PDFContext } from '../CaseEditView/PDFContainer';
|
|
24
24
|
import { removeAllChars, trimAndReplacePlus } from '../shared/utils';
|
|
25
25
|
import { ContactPhoneNumberPopOver } from './ContactPhoneNumberPopOver';
|
|
26
|
-
function parsePhone(rawPhone) {
|
|
26
|
+
function parsePhone(rawPhone, preferredCountryIso2) {
|
|
27
27
|
var _a;
|
|
28
28
|
const trimmedPhone = rawPhone === null || rawPhone === void 0 ? void 0 : rawPhone.trim();
|
|
29
29
|
if (!trimmedPhone) {
|
|
@@ -37,7 +37,19 @@ function parsePhone(rawPhone) {
|
|
|
37
37
|
shouldNotSetPhoneCountryCode: false,
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
+
const preferredCountry = getCountryByIso2(preferredCountryIso2 || '');
|
|
40
41
|
const rawDigits = removeAllChars(trimmedPhone);
|
|
42
|
+
if (preferredCountry && rawDigits) {
|
|
43
|
+
const dial = String(preferredCountry.dialCode);
|
|
44
|
+
const nationalNumber = rawDigits.startsWith(dial) && rawDigits.length > dial.length + 6
|
|
45
|
+
? rawDigits.substring(dial.length)
|
|
46
|
+
: rawDigits;
|
|
47
|
+
return {
|
|
48
|
+
phoneCountryCode: `+${dial}`,
|
|
49
|
+
phoneAreaCodePrefixLineNumber: nationalNumber,
|
|
50
|
+
shouldNotSetPhoneCountryCode: false,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
41
53
|
if (rawDigits.length > 10) {
|
|
42
54
|
const exactCountry = getExactCountry(rawDigits);
|
|
43
55
|
const dialCode = !isEmpty(exactCountry) ? String(exactCountry['dialCode']) : '';
|
|
@@ -118,7 +130,7 @@ export function ContactPhoneNumber() {
|
|
|
118
130
|
}
|
|
119
131
|
};
|
|
120
132
|
const onCountryCodeChange = (phoneCountryCode) => {
|
|
121
|
-
setCaseState(caseDispatch, { hasUserUpdatedSuppliedPhone: true });
|
|
133
|
+
setCaseState(caseDispatch, Object.assign({ hasUserUpdatedSuppliedPhone: true }, (phoneCountryCode ? { shouldNotSetPhoneCountryCode: false } : {})));
|
|
122
134
|
setCaseDetails(caseDispatch, { phoneCountryCode });
|
|
123
135
|
};
|
|
124
136
|
const maxLengthErrorMessage = t('Phone number cannot be more than {{limit}} digits.', {
|
|
@@ -175,7 +187,8 @@ export function ContactPhoneNumber() {
|
|
|
175
187
|
: 'False';
|
|
176
188
|
}
|
|
177
189
|
else {
|
|
178
|
-
const
|
|
190
|
+
const preferredIso2 = getPreferredCountryIso2FromTimezone(loggedInUser.data.timezone || loggedInUser.data.normalizedTZ);
|
|
191
|
+
const parsed = parsePhone(loggedInUser.data.phone, preferredIso2);
|
|
179
192
|
_phoneCountryCode = parsed.phoneCountryCode;
|
|
180
193
|
_phoneAreaCodePrefixLineNumber = parsed.phoneAreaCodePrefixLineNumber;
|
|
181
194
|
setCaseState(caseDispatch, {
|
|
@@ -193,7 +206,8 @@ export function ContactPhoneNumber() {
|
|
|
193
206
|
}
|
|
194
207
|
else {
|
|
195
208
|
// Opening case for another owner — use phone already on selectedOwner
|
|
196
|
-
const
|
|
209
|
+
const preferredIso2 = getPreferredCountryIso2FromTimezone(loggedInUser.data.timezone || loggedInUser.data.normalizedTZ);
|
|
210
|
+
const parsed = parsePhone(selectedOwnerPhone, preferredIso2);
|
|
197
211
|
_phoneAreaCodePrefixLineNumber = parsed.phoneAreaCodePrefixLineNumber;
|
|
198
212
|
_phoneCountryCode = parsed.phoneCountryCode;
|
|
199
213
|
setCaseState(caseDispatch, { shouldNotSetPhoneCountryCode: parsed.shouldNotSetPhoneCountryCode });
|
|
@@ -273,7 +287,7 @@ export function ContactPhoneNumber() {
|
|
|
273
287
|
React.createElement(Trans, null, "Case owner's phone number"),
|
|
274
288
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
|
|
275
289
|
ContactPhoneNumberPopOver()),
|
|
276
|
-
React.createElement(PhoneInput, { phoneValue: localFullPhone, countryCode: phoneCountryCode, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid, isLoading: isCasePhoneUpdating, shouldNotSetCountryCode: shouldNotSetPhoneCountryCode, isDisabled: isCasePhoneUpdating }),
|
|
290
|
+
React.createElement(PhoneInput, { phoneValue: localFullPhone, countryCode: phoneCountryCode, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid, isLoading: isCasePhoneUpdating, shouldNotSetCountryCode: shouldNotSetPhoneCountryCode, preferredCountryIso2: getPreferredCountryIso2FromTimezone(loggedInUser.data.timezone || loggedInUser.data.normalizedTZ), isDisabled: isCasePhoneUpdating }),
|
|
277
291
|
!invalid &&
|
|
278
292
|
getPhone.length <= PHONE_LIMIT &&
|
|
279
293
|
!(isPhoneNumberEmpty && isNextBtnClickedToShowValidationError) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,OAAO,EACH,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AttachmentHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentHelper.ts"],"names":[],"mappings":"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AAC,UAAU,EAAE,UAAU,EAAE,WAEvE;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,WAKzD;AAED,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU,KAAG,OAShE,CAAC;AAKF,eAAO,MAAM,2BAA2B,UAOvC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,UAAU,EAAE,YAE9E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAQ,SASvC,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Config, pcm, sessionAttachments } from '@cee-eng/hydrajs';
|
|
11
11
|
import { ToastNotification } from '@rh-support/components';
|
|
12
|
-
import { CaseAttachmentUploadError, fetchCaseDetailsByCaseNumber, GET_CONTENT_DOCUMENT_IDS, getText, markCaseAttachmentUploadFailed, markCaseAttachmentUploadInProgress, MultipartUploadError, pollAttachmentUploadStatus, pollContentVersionStatus, uploadCaseAttachment, USER_ABORTED_REQUEST_DESCRIPTION, } from '@rh-support/utils';
|
|
12
|
+
import { CaseAttachmentUploadError, fetchCaseDetailsByCaseNumber, GET_CONTENT_DOCUMENT_IDS, getText, markCaseAttachmentUploadFailed, markCaseAttachmentUploadInProgress, MultipartUploadError, pollAttachmentUploadStatus, pollContentVersionStatus, sendToSentry, setTag, uploadCaseAttachment, USER_ABORTED_REQUEST_DESCRIPTION, } from '@rh-support/utils';
|
|
13
13
|
import find from 'lodash/find';
|
|
14
14
|
import includes from 'lodash/includes';
|
|
15
15
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -483,6 +483,10 @@ needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient
|
|
|
483
483
|
}
|
|
484
484
|
else {
|
|
485
485
|
console.error(error);
|
|
486
|
+
if (attachmentIdFromError) {
|
|
487
|
+
setTag('attachment_uuid', attachmentIdFromError);
|
|
488
|
+
}
|
|
489
|
+
sendToSentry(error, { error: error.message });
|
|
486
490
|
const singlePutResume = error instanceof CaseAttachmentUploadError ? error.resumeData : undefined;
|
|
487
491
|
const uploadErrorPayload = Object.assign({ uploadStatus: isSessionId
|
|
488
492
|
? UploadStatusConstants.uploadOnSessionFailed
|
|
@@ -647,6 +651,11 @@ export function moveSessionAttachmentToCase(dispatch, caseNumber, sessionId, loc
|
|
|
647
651
|
// Show alert if needed
|
|
648
652
|
}
|
|
649
653
|
else {
|
|
654
|
+
const attachmentUUID = localFile.attachmentId;
|
|
655
|
+
if (attachmentUUID) {
|
|
656
|
+
setTag('attachment_uuid', attachmentUUID);
|
|
657
|
+
}
|
|
658
|
+
sendToSentry(error, { error: error.message });
|
|
650
659
|
updateUploadMetadata(dispatch, fileIndex, {
|
|
651
660
|
uploadStatus: UploadStatusConstants.uploadOnCaseFailed,
|
|
652
661
|
uploadErrorMessage: error.message,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/useFileUploader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/useFileUploader.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAiBnF,OAAO,EACH,UAAU,EAKb,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAKnD,wBAAgB,eAAe,CAAC,KAAK,EAAE,wBAAwB;gCAoKjB,MAAM;gCAYA,UAAU,mBAAmB,MAAM,WAAW,UAAU;oCAOpD,MAAM,QAAQ,UAAU;wBA9GzD,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC;4BA6K3B,MAAM;kCA7EN,MAAM;EAqHhD"}
|
|
@@ -11,7 +11,7 @@ import { useApolloClient } from '@apollo/client/react';
|
|
|
11
11
|
import { sessionAttachments } from '@cee-eng/hydrajs';
|
|
12
12
|
import { useFetch, usePrevious } from '@rh-support/components';
|
|
13
13
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
14
|
-
import { abortMultipartUpload, deleteCaseAttachment, fetchCaseDetailsByCaseNumber, getConfigField, getUserAgentForCaseMode, PCM_CONFIG_FIELD_TYPE, } from '@rh-support/utils';
|
|
14
|
+
import { abortMultipartUpload, deleteCaseAttachment, fetchCaseDetailsByCaseNumber, getConfigField, getUserAgentForCaseMode, PCM_CONFIG_FIELD_TYPE, sendToSentry, setTag, } from '@rh-support/utils';
|
|
15
15
|
import debounce from 'lodash/debounce';
|
|
16
16
|
import { useCallback, useContext, useEffect, useMemo, useRef } from 'react';
|
|
17
17
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../../context/SessionRestoreContext';
|
|
@@ -189,15 +189,19 @@ export function useFileUploader(props) {
|
|
|
189
189
|
try {
|
|
190
190
|
yield abortMultipartUpload(multipartResume.attachmentId, idToUploadTo, multipartResume.uploadId);
|
|
191
191
|
}
|
|
192
|
-
catch (
|
|
192
|
+
catch (error) {
|
|
193
193
|
// Best-effort: still attempt deleteFile below
|
|
194
|
+
setTag('attachment_uuid', multipartResume.attachmentId);
|
|
195
|
+
sendToSentry(error, { error: error === null || error === void 0 ? void 0 : error.message });
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
198
|
try {
|
|
197
199
|
yield deleteCaseAttachmentRequest(idToUploadTo, attachmentIdToDelete);
|
|
198
200
|
}
|
|
199
|
-
catch (
|
|
201
|
+
catch (error) {
|
|
200
202
|
// Best-effort: row is already removed from the PCM queue
|
|
203
|
+
setTag('attachment_uuid', attachmentIdToDelete);
|
|
204
|
+
sendToSentry(error, { error: error === null || error === void 0 ? void 0 : error.message });
|
|
201
205
|
}
|
|
202
206
|
}
|
|
203
207
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEscalationDetails.d.ts","sourceRoot":"","sources":["../../../../src/graphql/queries/getEscalationDetails.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"getEscalationDetails.d.ts","sourceRoot":"","sources":["../../../../src/graphql/queries/getEscalationDetails.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,uCAsClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escalation.d.ts","sourceRoot":"","sources":["../../../../src/graphql/schemas/escalation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gCAAgC;IAC7C,SAAS,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,yBAAyB,EAAE,MAAM,CAAC;KACrC,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,oBAAoB,EAAE;QAClB,UAAU,EAAE;YACR,mBAAmB,EAAE;gBACjB,EAAE,EAAE,MAAM,CAAC;gBACX,aAAa,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBACjC,MAAM,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC1B,OAAO,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC3B,QAAQ,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;aAC/B,CAAC;SACL,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,6BAA6B;IAC1C,KAAK,EACC;QACI,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5B,GACD;QACI,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KACvC,CAAC;CACX;AAED,MAAM,WAAW,4BAA4B;IACzC,oBAAoB,EAAE;QAClB,KAAK,EAAE;YACH,iBAAiB,EAAE;gBACf,KAAK,EAAE,KAAK,CAAC;oBACT,IAAI,EAAE;wBACF,EAAE,EAAE,MAAM,CAAC;wBACX,aAAa,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;wBACjC,OAAO,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;wBAC3B,MAAM,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;wBAC1B,KAAK,CAAC,EAAE;4BAAE,IAAI,CAAC,EAAE;gCAAE,KAAK,EAAE,MAAM,CAAA;6BAAE,CAAA;yBAAE,CAAC;qBACxC,CAAC;iBACL,CAAC,CAAC;aACN,CAAC;SACL,CAAC;KACL,CAAC;CACL"}
|
|
1
|
+
{"version":3,"file":"escalation.d.ts","sourceRoot":"","sources":["../../../../src/graphql/schemas/escalation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gCAAgC;IAC7C,SAAS,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,yBAAyB,EAAE,MAAM,CAAC;KACrC,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,oBAAoB,EAAE;QAClB,UAAU,EAAE;YACR,mBAAmB,EAAE;gBACjB,EAAE,EAAE,MAAM,CAAC;gBACX,aAAa,EAAE;oBAAE,KAAK,EAAE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"file":"useS3Upload.d.ts","sourceRoot":"","sources":["../../../src/hooks/useS3Upload.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,iBAAiB,EAUpB,MAAM,mBAAmB,CAAC;AAU3B,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,EAAE,MAAM;gEA0BpG;QACC,IAAI,EAAE,IAAI,CAAC;QACX,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;KAC7D;;EAsEJ"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { ToastNotification } from '@rh-support/components';
|
|
11
11
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
12
|
-
import { CaseAttachmentUploadError, fetchCaseDetailsByCaseNumber, markCaseAttachmentUploadFailed, MultipartUploadError, pollAttachmentUploadStatus, uploadCaseAttachment, USER_ABORTED_REQUEST_DESCRIPTION, } from '@rh-support/utils';
|
|
12
|
+
import { CaseAttachmentUploadError, fetchCaseDetailsByCaseNumber, markCaseAttachmentUploadFailed, MultipartUploadError, pollAttachmentUploadStatus, sendToSentry, setTag, uploadCaseAttachment, USER_ABORTED_REQUEST_DESCRIPTION, } from '@rh-support/utils';
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
// TODO: Re-enable when Hydra/GraphQL attachment APIs support secure support again
|
|
15
15
|
// Previously: useS3Upload(idToUploadTo, isSecureSupport) and passed isSecureSupport into uploadAttachmentS3
|
|
@@ -66,6 +66,10 @@ export function useS3Upload(caseNumber, apolloClient, caseSalesforceId) {
|
|
|
66
66
|
if (isUserAbort) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
+
if (attachmentIdFromError) {
|
|
70
|
+
setTag('attachment_uuid', attachmentIdFromError);
|
|
71
|
+
}
|
|
72
|
+
sendToSentry(error, { error: error.message });
|
|
69
73
|
throw error;
|
|
70
74
|
}
|
|
71
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsPageReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDetailsPageReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EACH,iBAAiB,
|
|
1
|
+
{"version":3,"file":"CaseDetailsPageReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDetailsPageReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EACH,iBAAiB,EAOpB,MAAM,mBAAmB,CAAC;AAQ3B,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;AACjE,MAAM,MAAM,8BAA8B,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE1E,oBAAY,oBAAoB;IAC5B,WAAW,gBAAgB;CAC9B;AAED,MAAM,WAAW,cAAc;IAC3B,kBAAkB,EAAE,mBAAmB,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IACrE,mBAAmB,EAAE,mBAAmB,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAGjE,0BAA0B,EAAE,mBAAmB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACpE,eAAe,EAAE,mBAAmB,CAAC,eAAe,EAAE,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,2BAA2B,EAAE,cAOzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,cAAc,EAAE,QAAQ,WAAW,KAAG,GASnF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GACzB,UAAU,8BAA8B,EACxC,YAAY,MAAM,EAClB,cAAc,iBAAiB,EAC/B,mBAAmB,MAAM,EACzB,8BAA4B,kBA+B/B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,UAAU,8BAA8B,EAAE,YAAY,MAAM,kBAoBhG,CAAC;AAsBF,eAAO,MAAM,qBAAqB,GAAU,WAAW,8BAA8B,EAAE,aAAa,MAAM,kBAEzG,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,UAAU,8BAA8B,EACxC,UAAU,MAAM,EAChB,cAAc;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAAE,EACvD,oBAAiB,EACjB,8BAA4B,EAC5B,cAAa,aAAa,GAAG,cAA8B,KAC5D,OAAO,CAAC,eAAe,EAAE,CAwD3B,CAAC"}
|
|
@@ -8,8 +8,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
|
-
import { buildAccessRestrictionExclusionFilter, fetchCaseAttachmentsViaGraphQL, fetchCaseDetailsByCaseNumber, getApiResourceObject, } from '@rh-support/utils';
|
|
11
|
+
import { buildAccessRestrictionExclusionFilter, ensureEscalationRecordTypeId, fetchCaseAttachmentsViaGraphQL, fetchCaseDetailsByCaseNumber, getApiResourceObject, } from '@rh-support/utils';
|
|
12
12
|
import { GET_ESCALATION_DETAILS } from '../graphql';
|
|
13
|
+
/** Portal Escalations tab is RME-only; ACE/ICE child cases must not appear for customers. */
|
|
14
|
+
const RME_ESCALATION_TYPE = 'RME';
|
|
15
|
+
const RME_ESCALATION_SOURCE = 'RME Escalation';
|
|
13
16
|
export var CaseDetailsConstants;
|
|
14
17
|
(function (CaseDetailsConstants) {
|
|
15
18
|
CaseDetailsConstants["updateState"] = "updateState";
|
|
@@ -110,17 +113,30 @@ export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...
|
|
|
110
113
|
type: CaseDetailsConstants.updateState,
|
|
111
114
|
payload: { caseEscalations: getApiResourceObject([], setLoading) },
|
|
112
115
|
});
|
|
116
|
+
const escalationRecordTypeId = yield ensureEscalationRecordTypeId();
|
|
117
|
+
const andConditions = [
|
|
118
|
+
{ ParentId: { eq: parentId } },
|
|
119
|
+
// RME escalations are Type=RME; ACE/ICE must not surface in this tab.
|
|
120
|
+
{ Type: { eq: RME_ESCALATION_TYPE } },
|
|
121
|
+
buildAccessRestrictionExclusionFilter(includeSecureSupport),
|
|
122
|
+
];
|
|
123
|
+
if (escalationRecordTypeId) {
|
|
124
|
+
andConditions.push({ RecordTypeId: { eq: escalationRecordTypeId } });
|
|
125
|
+
}
|
|
113
126
|
const { data } = yield apolloClient.query({
|
|
114
127
|
query: GET_ESCALATION_DETAILS,
|
|
115
128
|
fetchPolicy,
|
|
116
129
|
variables: {
|
|
117
130
|
where: {
|
|
118
|
-
and:
|
|
131
|
+
and: andConditions,
|
|
119
132
|
},
|
|
120
133
|
},
|
|
121
134
|
});
|
|
122
135
|
const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.RedHatSupportCase) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
|
|
123
|
-
|
|
136
|
+
// Defense in depth: same RME-only filter Hydra used via escalationSource === 'RME Escalation'.
|
|
137
|
+
const caseEscalations = edges
|
|
138
|
+
.filter(({ node }) => { var _a, _b; return ((_b = (_a = node.Type) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '') === RME_ESCALATION_TYPE; })
|
|
139
|
+
.map(({ node }) => {
|
|
124
140
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
125
141
|
return ({
|
|
126
142
|
id: (_a = node.Id) !== null && _a !== void 0 ? _a : '',
|
|
@@ -128,7 +144,7 @@ export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...
|
|
|
128
144
|
subject: (_e = (_d = node.Subject) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : '',
|
|
129
145
|
status: (_g = (_f = node.Status) === null || _f === void 0 ? void 0 : _f.value) !== null && _g !== void 0 ? _g : '',
|
|
130
146
|
owner: (_k = (_j = (_h = node.Owner) === null || _h === void 0 ? void 0 : _h.Name) === null || _j === void 0 ? void 0 : _j.value) !== null && _k !== void 0 ? _k : '',
|
|
131
|
-
escalationSource:
|
|
147
|
+
escalationSource: RME_ESCALATION_SOURCE,
|
|
132
148
|
});
|
|
133
149
|
});
|
|
134
150
|
dispatch({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.54",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@progress/kendo-licensing": "1.3.5",
|
|
53
53
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
54
54
|
"@redux-devtools/extension": "^3.3.0",
|
|
55
|
-
"@rh-support/components": "2.6.
|
|
56
|
-
"@rh-support/react-context": "2.6.
|
|
55
|
+
"@rh-support/components": "2.6.46",
|
|
56
|
+
"@rh-support/react-context": "2.6.48",
|
|
57
57
|
"@rh-support/types": "2.0.31",
|
|
58
|
-
"@rh-support/user-permissions": "2.6.
|
|
59
|
-
"@rh-support/utils": "2.6.
|
|
58
|
+
"@rh-support/user-permissions": "2.6.43",
|
|
59
|
+
"@rh-support/utils": "2.6.42",
|
|
60
60
|
"@types/react-redux": "^7.1.33",
|
|
61
61
|
"@types/redux": "^3.6.0",
|
|
62
62
|
"date-fns": "3.6.0",
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"defaults and supports es6-module",
|
|
130
130
|
"maintained node versions"
|
|
131
131
|
],
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "f93a43376534c539511491878802f207d215360c"
|
|
133
133
|
}
|