@rh-support/troubleshoot 2.7.36 → 2.7.38

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":"VerifyCaseStatusModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAYzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBA6HlD"}
1
+ {"version":3,"file":"VerifyCaseStatusModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAYzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBAwIlD"}
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
+ import { useApolloClient } from '@apollo/client/react';
10
11
  import { Button, ButtonVariant, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
11
12
  import { SingleSelectDropdown, ToastNotification } from '@rh-support/components';
12
13
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
@@ -17,17 +18,19 @@ import { Trans, useTranslation } from 'react-i18next';
17
18
  import { useCaseDispatch, useCaseSelector } from '../../../../../context/CaseContext';
18
19
  import { useCaseUpdateErrorMessage } from '../../../../../hooks/useCaseUpdateErrorMessage';
19
20
  import { caseOverviewReducer, initialCaseViewState, setStatusUpdating, } from '../../../../../reducers/CaseOverviewReducer';
20
- import { updateCaseDetails } from '../../../../../reducers/CaseReducer';
21
+ import { updateCaseDetailsGraphQL } from '../../../../../reducers/CaseReducer';
21
22
  export function VerifyCaseStatusModal(props) {
22
23
  const { t } = useTranslation();
23
24
  const caseUpdateError = useCaseUpdateErrorMessage();
24
25
  const [caseOverviewState, caseOverviewDispatch] = useReducer(caseOverviewReducer, initialCaseViewState);
26
+ const apolloClient = useApolloClient();
25
27
  const caseState = useCaseSelector((state) => ({
26
28
  caseDetails: {
27
29
  status: state.caseDetails.status,
28
30
  },
29
31
  isCaseUpdating: state.isCaseUpdating,
30
32
  }), isEqual);
33
+ const existingCaseDetails = useCaseSelector((state) => state.caseDetails, isEqual);
31
34
  const { status } = caseState.caseDetails;
32
35
  const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
33
36
  const canManageCase = loggedInUserRights.data.canManageCases();
@@ -50,7 +53,9 @@ export function VerifyCaseStatusModal(props) {
50
53
  const apiValue = resolvePortalStatusToApiValue(portalStatusVal, status);
51
54
  setStatusUpdating(caseOverviewDispatch, true);
52
55
  try {
53
- yield updateCaseDetails(caseDispatch, props.caseNumber, { status: apiValue });
56
+ yield updateCaseDetailsGraphQL(caseDispatch, apolloClient, props.caseNumber, { status: apiValue }, false, {
57
+ existingCaseDetails,
58
+ });
54
59
  setStatusUpdating(caseOverviewDispatch, false);
55
60
  if (onStatusUpdate)
56
61
  yield onStatusUpdate();
@@ -1 +1 @@
1
- {"version":3,"file":"RMEEscalationList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAS5E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAU3D,UAAU,MAAM;IACZ,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAOD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,MAAM,qBAqLtD"}
1
+ {"version":3,"file":"RMEEscalationList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAS5E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAU3D,UAAU,MAAM;IACZ,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAOD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,MAAM,qBA+LtD"}
@@ -58,7 +58,7 @@ export default function RMEEscalationList(props) {
58
58
  // const updateEscalation = async (escalationName: string, text: string, options: Partial<IEscalationUpdate>) => {
59
59
  // ...
60
60
  // };
61
- const submitEscalationComment = (escalationName, comment, message) => __awaiter(this, void 0, void 0, function* () {
61
+ const submitEscalationComment = (escalationName, escalationId, comment, message) => __awaiter(this, void 0, void 0, function* () {
62
62
  var _a;
63
63
  escalationUpdateInProgessIds.current.push(escalationName);
64
64
  try {
@@ -68,6 +68,11 @@ export default function RMEEscalationList(props) {
68
68
  body: comment,
69
69
  isPublic: true,
70
70
  });
71
+ yield createComment({
72
+ caseId: escalationId,
73
+ body: comment,
74
+ isPublic: true,
75
+ });
71
76
  apolloClient.refetchQueries({ include: [GET_CASE_COMMENTS] });
72
77
  // TODO: migrate updateCaseRequest(props.caseNumber, { customerEscalation: true }) to GraphQL
73
78
  yield checkForCaseStatusToggleOnAttachOrComment(caseDispatch, props.isInternal, props.caseStatus, {
@@ -85,33 +90,33 @@ export default function RMEEscalationList(props) {
85
90
  escalationUpdateInProgessIds.current = escalationUpdateInProgessIds.current.filter((item) => item !== escalationName);
86
91
  }
87
92
  });
88
- const requestUpdateRMEEscalation = (escalationName) => __awaiter(this, void 0, void 0, function* () {
93
+ const requestUpdateRMEEscalation = (escalationName, escalationId) => __awaiter(this, void 0, void 0, function* () {
89
94
  const comment = `${ESCALATION_MSG}\n ${UPDATE_ESCALATION_MSG}`;
90
- yield submitEscalationComment(escalationName, comment, UPDATE_ESCALATION_MSG);
95
+ yield submitEscalationComment(escalationName, escalationId, comment, UPDATE_ESCALATION_MSG);
91
96
  });
92
- const requestClosureRMEEscalation = (escalationName) => __awaiter(this, void 0, void 0, function* () {
97
+ const requestClosureRMEEscalation = (escalationName, escalationId) => __awaiter(this, void 0, void 0, function* () {
93
98
  const comment = `${ESCALATION_MSG}\n ${CLOSURE_ESCALATION_MSG}`;
94
- yield submitEscalationComment(escalationName, comment, CLOSURE_ESCALATION_MSG);
99
+ yield submitEscalationComment(escalationName, escalationId, comment, CLOSURE_ESCALATION_MSG);
95
100
  });
96
- const requestReOpenRMEEscalation = (escalationName) => __awaiter(this, void 0, void 0, function* () {
101
+ const requestReOpenRMEEscalation = (escalationName, escalationId) => __awaiter(this, void 0, void 0, function* () {
97
102
  const comment = `${ESCALATION_MSG}\n ${REOPEN_ESCALATION_MSG}`;
98
- yield submitEscalationComment(escalationName, comment, REOPEN_ESCALATION_MSG);
103
+ yield submitEscalationComment(escalationName, escalationId, comment, REOPEN_ESCALATION_MSG);
99
104
  });
100
105
  const renderActionButtons = (escalation) => {
101
106
  if (isUpdating && escalationUpdateInProgessIds.current.includes(escalation.name)) {
102
107
  return React.createElement(LoadingIndicator, { size: "sm", isInline: true });
103
108
  }
104
109
  if (escalation.status === escalationStatus.closed) {
105
- return (React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestReOpenRMEEscalation(escalation.name), "data-tracking-id": "case-details-rme-req-reopen" },
110
+ return (React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestReOpenRMEEscalation(escalation.name, escalation.id), "data-tracking-id": "case-details-rme-req-reopen" },
106
111
  React.createElement(Trans, null, "Request Re-Open")));
107
112
  }
108
113
  else {
109
114
  return (React.createElement(Flex, null,
110
115
  React.createElement(FlexItem, null,
111
- React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestUpdateRMEEscalation(escalation.name), "data-tracking-id": "case-details-rme-req-update", isDisabled: customerEscalation },
116
+ React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestUpdateRMEEscalation(escalation.name, escalation.id), "data-tracking-id": "case-details-rme-req-update", isDisabled: customerEscalation },
112
117
  React.createElement(Trans, null, "Request Update"))),
113
118
  React.createElement(FlexItem, null,
114
- React.createElement(Button, { variant: ButtonVariant.secondary, className: "pf-v6-u-mt-sm", onClick: () => requestClosureRMEEscalation(escalation.name), "data-tracking-id": "case-details-rme-req-closure" },
119
+ React.createElement(Button, { variant: ButtonVariant.secondary, className: "pf-v6-u-mt-sm", onClick: () => requestClosureRMEEscalation(escalation.name, escalation.id), "data-tracking-id": "case-details-rme-req-closure" },
115
120
  React.createElement(Trans, null, "Request Closure")))));
116
121
  }
117
122
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getEscalationDetails.d.ts","sourceRoot":"","sources":["../../../../src/graphql/queries/getEscalationDetails.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,uCAkClC,CAAC"}
1
+ {"version":3,"file":"getEscalationDetails.d.ts","sourceRoot":"","sources":["../../../../src/graphql/queries/getEscalationDetails.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,uCAmClC,CAAC"}
@@ -6,6 +6,7 @@ export const GET_ESCALATION_DETAILS = gql `
6
6
  RedHatSupportCase(where: $where) {
7
7
  edges {
8
8
  node {
9
+ Id
9
10
  CaseNumber__c {
10
11
  value
11
12
  }
@@ -48,6 +48,7 @@ export interface GetEscalationDetailsResponse {
48
48
  RedHatSupportCase: {
49
49
  edges: Array<{
50
50
  node: {
51
+ Id: string;
51
52
  CaseNumber__c: {
52
53
  value: string;
53
54
  };
@@ -57,6 +58,11 @@ export interface GetEscalationDetailsResponse {
57
58
  Status: {
58
59
  value: string;
59
60
  };
61
+ Owner?: {
62
+ Name?: {
63
+ value: string;
64
+ };
65
+ };
60
66
  };
61
67
  }>;
62
68
  };
@@ -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,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;qBAC7B,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;IA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O,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,CA0C3B,CAAC"}
@@ -121,12 +121,13 @@ export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...
121
121
  });
122
122
  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
123
  const caseEscalations = edges.map(({ node }) => {
124
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
124
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
125
125
  return ({
126
- name: (_b = (_a = node.CaseNumber__c) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '',
127
- subject: (_d = (_c = node.Subject) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : '',
128
- status: (_f = (_e = node.Status) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : '',
129
- owner: (_j = (_h = (_g = node.Owner) === null || _g === void 0 ? void 0 : _g.Name) === null || _h === void 0 ? void 0 : _h.value) !== null && _j !== void 0 ? _j : '',
126
+ id: (_a = node.Id) !== null && _a !== void 0 ? _a : '',
127
+ name: (_c = (_b = node.CaseNumber__c) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : '',
128
+ subject: (_e = (_d = node.Subject) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : '',
129
+ status: (_g = (_f = node.Status) === null || _f === void 0 ? void 0 : _f.value) !== null && _g !== void 0 ? _g : '',
130
+ 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 : '',
130
131
  escalationSource: 'RME Escalation',
131
132
  });
132
133
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.7.36",
3
+ "version": "2.7.38",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -129,5 +129,5 @@
129
129
  "defaults and supports es6-module",
130
130
  "maintained node versions"
131
131
  ],
132
- "gitHead": "872788369fcbc6755ab025758c43dde299c1863c"
132
+ "gitHead": "17c7ccd5d5c93f42836d282b0032857540ab8560"
133
133
  }