@rh-support/cases 2.6.73 → 2.6.74
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/case-list/CaseList.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseList.js +11 -5
- package/lib/esm/components/case-list/CaseListFilterReducer.d.ts +1 -0
- package/lib/esm/components/case-list/CaseListFilterReducer.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListFilterReducer.js +2 -0
- package/lib/esm/components/case-list/case-list-filters/AdditionalFilters.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/AdditionalFilters.js +27 -4
- package/lib/esm/components/case-list/case-list-table/CaseListTable.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/CaseListTable.js +4 -2
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.js +1 -1
- package/lib/esm/components/case-list/case-search/AdvanceSearch.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/AdvanceSearch.js +2 -2
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.js +2 -0
- package/lib/esm/css/caseList.css +0 -2
- package/lib/esm/enums/caseSearch.d.ts +2 -0
- package/lib/esm/enums/caseSearch.d.ts.map +1 -1
- package/lib/esm/enums/caseSearch.js +1 -0
- package/lib/esm/enums/filters.d.ts +3 -1
- package/lib/esm/enums/filters.d.ts.map +1 -1
- package/lib/esm/enums/filters.js +2 -0
- package/lib/esm/models/caseList.d.ts +0 -2
- package/lib/esm/models/caseList.d.ts.map +1 -1
- package/lib/esm/utils/caseSearchUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseSearchUtils.js +19 -8
- package/lib/esm/utils/constants.d.ts +1 -0
- package/lib/esm/utils/constants.d.ts.map +1 -1
- package/lib/esm/utils/constants.js +3 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AA6BlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKH,0BAA0B,EAI7B,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAmC3F,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D,YAAY,EAAE,cAAc,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAM5F,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAugBrC"}
|
|
@@ -12,7 +12,7 @@ import '../../css/caseSearch.css';
|
|
|
12
12
|
import { Alert, AlertActionCloseButton, AlertVariant, Button } from '@patternfly/react-core';
|
|
13
13
|
import OpenDrawerRightIcon from '@patternfly/react-icons/dist/js/icons/open-drawer-right-icon';
|
|
14
14
|
import { ErrorBoundary, ToastNotification, useBreakpoint, useDocumentTitle, useForceUpdate, usePrevious, } from '@rh-support/components';
|
|
15
|
-
import { CSSUserModal, fetchAllStatuses, fetchCaseGroupsForSSO, fetchCaseSeverities, fetchCaseTypes, fetchProducts, GlobalMetadataDispatchContext, GlobalMetadataStateContext, setUserPreferences, updateCaseListTraditionalSupportAgreed, updateUserPreferences, useGlobalDispatchContext, UserPreferencesKeys, } from '@rh-support/react-context';
|
|
15
|
+
import { CSSUserModal, fetchAllStatuses, fetchCaseGroupsForAccount, fetchCaseGroupsForSSO, fetchCaseSeverities, fetchCaseTypes, fetchProducts, GlobalMetadataDispatchContext, GlobalMetadataStateContext, setUserPreferences, updateCaseListTraditionalSupportAgreed, updateUserPreferences, useGlobalDispatchContext, UserPreferencesKeys, } from '@rh-support/react-context';
|
|
16
16
|
import { getStringifiedParams, getUrlParsedParams, haventLoadedMetadata, haventLoadedProductsMetadata, pendoTrackEvent, solrResponseToFacetFields, solrResponseToPivotFields, } from '@rh-support/utils';
|
|
17
17
|
import get from 'lodash/get';
|
|
18
18
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -147,11 +147,11 @@ export function CaseList(props) {
|
|
|
147
147
|
else {
|
|
148
148
|
const caseIDModifiedDateObj = {};
|
|
149
149
|
caseListResponse.response.docs.forEach((res) => {
|
|
150
|
-
caseIDModifiedDateObj[res.case_number] = res.
|
|
150
|
+
caseIDModifiedDateObj[res.case_number] = res.case_last_public_update_date;
|
|
151
151
|
});
|
|
152
152
|
changed = some(caseList.docs, (doc) => {
|
|
153
153
|
if (caseIDModifiedDateObj[doc.case_number]) {
|
|
154
|
-
return caseIDModifiedDateObj[doc.case_number] !== doc.
|
|
154
|
+
return caseIDModifiedDateObj[doc.case_number] !== doc.case_last_public_update_date;
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
157
|
return true;
|
|
@@ -169,10 +169,16 @@ export function CaseList(props) {
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
useEffect(() => {
|
|
172
|
+
var _a;
|
|
172
173
|
if (haventLoadedMetadata(caseGroups, (data) => data === undefined)) {
|
|
173
|
-
|
|
174
|
+
if ((_a = loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.isInternal) {
|
|
175
|
+
fetchCaseGroupsForAccount(dispatchToGlobalMetadataReducer, loggedInUsersAccount.data.accountNumber);
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
fetchCaseGroupsForSSO(dispatchToGlobalMetadataReducer, loggedInUserJwtToken.preferred_username);
|
|
179
|
+
}
|
|
174
180
|
}
|
|
175
|
-
}, [caseGroups, dispatchToGlobalMetadataReducer, loggedInUserJwtToken]);
|
|
181
|
+
}, [caseGroups, dispatchToGlobalMetadataReducer, loggedInUserJwtToken, loggedInUsersAccount.data]);
|
|
176
182
|
useEffect(() => {
|
|
177
183
|
if (haventLoadedMetadata(allCaseTypes)) {
|
|
178
184
|
fetchCaseTypes(dispatchToGlobalMetadataReducer, loggedInUsersAccount.data.secureSupport);
|
|
@@ -43,6 +43,7 @@ export interface IFilterInfo {
|
|
|
43
43
|
[SolrKeys.caseSummary]: Array<string>;
|
|
44
44
|
[SolrKeys.modifiedBy]: Array<string>;
|
|
45
45
|
[SolrKeys.alternateId]: Array<string>;
|
|
46
|
+
[SolrKeys.isPrivate]: Array<IKeyValue<string>>;
|
|
46
47
|
}
|
|
47
48
|
export declare const emptyFilters: IFilterInfo;
|
|
48
49
|
export interface ICaseListFilterState {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseListFilterReducer.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseListFilterReducer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,EAAE,mBAAmB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|
[SolrKeys.createdBySsoUsername]: [],
|
|
12
12
|
[SolrKeys.caseContactSSO]: [],
|
|
13
13
|
[SolrKeys.type]: [],
|
|
14
|
+
[SolrKeys.isPrivate]: [],
|
|
14
15
|
};
|
|
15
16
|
var CaseListReducerEnum;
|
|
16
17
|
(function (CaseListReducerEnum) {
|
|
@@ -38,6 +39,7 @@ export const emptyFilters = {
|
|
|
38
39
|
[SolrKeys.caseSummary]: [],
|
|
39
40
|
[SolrKeys.modifiedBy]: [],
|
|
40
41
|
[SolrKeys.alternateId]: [],
|
|
42
|
+
[SolrKeys.isPrivate]: [],
|
|
41
43
|
};
|
|
42
44
|
const caseListFilterReducer = (pState, action) => {
|
|
43
45
|
switch (action.type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalFilters.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/AdditionalFilters.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AdditionalFilters.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/AdditionalFilters.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,wBAAgB,iBAAiB,sBAwFhC"}
|
|
@@ -8,9 +8,10 @@ import { CaseListFilterDispatchContext, CaseListFilterStateContext } from '../Ca
|
|
|
8
8
|
import { updateFilter } from '../CaseListFilterReducer';
|
|
9
9
|
export function AdditionalFilters() {
|
|
10
10
|
const [escalated, setIsEscalated] = useState(false);
|
|
11
|
+
const [isPrivate, setIsPrivate] = useState(false);
|
|
11
12
|
const { t } = useTranslation();
|
|
12
13
|
const dispatch = useContext(CaseListFilterDispatchContext);
|
|
13
|
-
const { filterInfo: { case_customer_escalation }, } = useContext(CaseListFilterStateContext);
|
|
14
|
+
const { filterInfo: { case_customer_escalation, case_private }, } = useContext(CaseListFilterStateContext);
|
|
14
15
|
const onEscalatedChange = (checked) => {
|
|
15
16
|
updateFilter(dispatch, {
|
|
16
17
|
filterKey: SolrKeys.escalation,
|
|
@@ -18,6 +19,13 @@ export function AdditionalFilters() {
|
|
|
18
19
|
});
|
|
19
20
|
setIsEscalated(checked);
|
|
20
21
|
};
|
|
22
|
+
const onisPrivateChange = (checked) => {
|
|
23
|
+
updateFilter(dispatch, {
|
|
24
|
+
filterKey: SolrKeys.isPrivate,
|
|
25
|
+
values: checked ? [{ key: checked.toString(), value: AdditionalFilterLabels[SolrKeys.isPrivate] }] : [],
|
|
26
|
+
});
|
|
27
|
+
setIsPrivate(checked);
|
|
28
|
+
};
|
|
21
29
|
useEffect(() => {
|
|
22
30
|
var _a, _b;
|
|
23
31
|
updateFilter(dispatch, {
|
|
@@ -29,16 +37,31 @@ export function AdditionalFilters() {
|
|
|
29
37
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
30
38
|
}, []);
|
|
31
39
|
useEffect(() => {
|
|
32
|
-
var _a;
|
|
40
|
+
var _a, _b;
|
|
41
|
+
updateFilter(dispatch, {
|
|
42
|
+
filterKey: SolrKeys.isPrivate,
|
|
43
|
+
values: !isEmpty(case_private) && isEqual((_a = case_private[0]) === null || _a === void 0 ? void 0 : _a.key, 'true')
|
|
44
|
+
? [{ key: (_b = case_private[0]) === null || _b === void 0 ? void 0 : _b.key, value: AdditionalFilterLabels[SolrKeys.isPrivate] }]
|
|
45
|
+
: [],
|
|
46
|
+
});
|
|
47
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
+
}, []);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
var _a, _b;
|
|
33
51
|
isEmpty(case_customer_escalation) && escalated && setIsEscalated(false);
|
|
34
52
|
if (!isEmpty(case_customer_escalation)) {
|
|
35
53
|
isEqual((_a = case_customer_escalation[0]) === null || _a === void 0 ? void 0 : _a.key, 'true') ? setIsEscalated(true) : setIsEscalated(false);
|
|
36
54
|
}
|
|
55
|
+
isEmpty(case_private) && isPrivate && setIsPrivate(false);
|
|
56
|
+
if (!isEmpty(case_private)) {
|
|
57
|
+
isEqual((_b = case_private[0]) === null || _b === void 0 ? void 0 : _b.key, 'true') ? setIsPrivate(true) : setIsPrivate(false);
|
|
58
|
+
}
|
|
37
59
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
38
|
-
}, [case_customer_escalation]);
|
|
60
|
+
}, [case_customer_escalation, case_private]);
|
|
39
61
|
return (React.createElement(React.Fragment, null,
|
|
40
62
|
React.createElement("div", { className: "additional-filters" },
|
|
41
63
|
React.createElement("h3", null,
|
|
42
64
|
React.createElement(Trans, null, "More")),
|
|
43
|
-
React.createElement(Checkbox, { label: t(AdditionalFilterLabels[SolrKeys.escalation]), isChecked: escalated, onChange: (_event, checked) => onEscalatedChange(checked), "aria-label": t(AdditionalFilterLabels[SolrKeys.escalation]), id: "escalated", name: "escalated", "data-tracking-id": "escalated-filter-selector" })
|
|
65
|
+
React.createElement(Checkbox, { label: t(AdditionalFilterLabels[SolrKeys.escalation]), isChecked: escalated, onChange: (_event, checked) => onEscalatedChange(checked), "aria-label": t(AdditionalFilterLabels[SolrKeys.escalation]), id: "escalated", name: "escalated", "data-tracking-id": "escalated-filter-selector" }),
|
|
66
|
+
React.createElement(Checkbox, { label: t(AdditionalFilterLabels[SolrKeys.isPrivate]), isChecked: isPrivate, onChange: (_event, checked) => onisPrivateChange(checked), "aria-label": t(AdditionalFilterLabels[SolrKeys.isPrivate]), id: "private", name: "private", "data-tracking-id": "private-filter-selector" }))));
|
|
44
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseListTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CaseListTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAqB3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE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,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAsBD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,qBA6kB1C"}
|
|
@@ -274,7 +274,9 @@ export function CaseListTable(props) {
|
|
|
274
274
|
case_number: row.case_number,
|
|
275
275
|
case_summary: row.case_summary,
|
|
276
276
|
case_createdByName: row.case_createdByName,
|
|
277
|
-
case_lastModifiedDate: formatDate(row.
|
|
277
|
+
case_lastModifiedDate: formatDate(row.case_last_public_update_date)
|
|
278
|
+
? formatDate(row.case_last_public_update_date)
|
|
279
|
+
: '',
|
|
278
280
|
case_severity: row.case_severity ? row.case_severity : '',
|
|
279
281
|
case_status: row.case_status,
|
|
280
282
|
case_createdDate: formatDate(row.case_createdDate),
|
|
@@ -284,7 +286,7 @@ export function CaseListTable(props) {
|
|
|
284
286
|
case_closedDate: formatDate(row.case_closedDate) ? formatDate(row.case_closedDate) : '',
|
|
285
287
|
case_folderName: row.case_folderName || getCaseGroupName(row.case_folderNumber) || '',
|
|
286
288
|
case_contactName: row.case_contactName,
|
|
287
|
-
case_lastModifiedByName: row.
|
|
289
|
+
case_lastModifiedByName: row.case_last_public_update_by ? row.case_last_public_update_by : '',
|
|
288
290
|
case_version: row.case_version,
|
|
289
291
|
id: row.id,
|
|
290
292
|
case_product: row.case_product,
|
|
@@ -294,6 +294,6 @@ export default function DownloadCSVFileModal(props) {
|
|
|
294
294
|
React.createElement("p", null, downloadCSVModalDescription(selectedCases.length || filteredCaseCount)),
|
|
295
295
|
downloadCSVModalBody()),
|
|
296
296
|
React.createElement(ModalFooter, null,
|
|
297
|
-
React.createElement(Button, { key: "submit", icon: isFetchingCSVData ? React.createElement(Spinner, { size: "md" }) : React.createElement(DownloadIcon, null), variant: "primary", "data-tracking-id": "download-csv-modal-submit", onClick: isSecureSupportUser ? onExportCSVClickSecureSupport : onExportCSVClick, isDisabled: (isSaveClicked && isEmpty(splitExtensionName)) || isDisabled || isFetchingCSVData }, t('Download')),
|
|
297
|
+
React.createElement(Button, { key: "submit", icon: isFetchingCSVData ? React.createElement(Spinner, { size: "md", "aria-label": "loading" }) : React.createElement(DownloadIcon, null), variant: "primary", "data-tracking-id": "download-csv-modal-submit", onClick: isSecureSupportUser ? onExportCSVClickSecureSupport : onExportCSVClick, isDisabled: (isSaveClicked && isEmpty(splitExtensionName)) || isDisabled || isFetchingCSVData }, t('Download')),
|
|
298
298
|
React.createElement(Button, { key: "back", variant: "secondary", onClick: onCancel, isDisabled: isDisabled || isFetchingCSVData, "data-tracking-id": "download-csv-modal-cancel" }, t('Cancel')))));
|
|
299
299
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvanceSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/AdvanceSearch.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,UAAU,MAAM;IACZ,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,0BAA0B,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1D,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAOD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AdvanceSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/AdvanceSearch.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,UAAU,MAAM;IACZ,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,0BAA0B,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1D,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAOD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,qBA2S1C"}
|
|
@@ -24,7 +24,7 @@ export function AdvanceSearch(props) {
|
|
|
24
24
|
setIsParsingSuccessful(true);
|
|
25
25
|
props.onAdvancedSearchValidation(true);
|
|
26
26
|
try {
|
|
27
|
-
// to trigger the autocomplete on a valid
|
|
27
|
+
// to trigger the autocomplete on a valid selection
|
|
28
28
|
parse(inputString + ' ');
|
|
29
29
|
}
|
|
30
30
|
catch (e) {
|
|
@@ -176,7 +176,7 @@ export function AdvanceSearch(props) {
|
|
|
176
176
|
});
|
|
177
177
|
const toggle = (toggleRef) => (React.createElement(MenuToggle, { variant: "typeahead", onClick: () => setIsOpen((open) => !open), onKeyDown: onInputKeyDown, innerRef: toggleRef, isExpanded: isOpen, isFullWidth: true },
|
|
178
178
|
React.createElement(TextInputGroup, { isPlain: true },
|
|
179
|
-
React.createElement(TextInputGroupMain, { value: inputString, onChange: (event, value) => onQueryStringChange(value), onClick: () => setIsOpen((open) => !open), ref: searchInputRef, placeholder: t('i18nEnterSolrQuery', 'Enter SOLR query, for example: severity:"1 (Urgent)" and status:"Waiting on Customer"'), className: "pf-v6-u-pr-2xl", type: "text", "aria-invalid": isQueryInValid ? true : false, autoComplete: "off", id: "advance-search-typeahead", "aria-label": t('Enter search query'), "aria-describedby": "advance-query-error-helper" }),
|
|
179
|
+
React.createElement(TextInputGroupMain, { value: inputString, onChange: (event, value) => onQueryStringChange(value), onClick: () => setIsOpen((open) => !open), onFocus: () => setIsOpen(true), ref: searchInputRef, placeholder: t('i18nEnterSolrQuery', 'Enter SOLR query, for example: severity:"1 (Urgent)" and status:"Waiting on Customer"'), className: "pf-v6-u-pr-2xl", type: "text", "aria-invalid": isQueryInValid ? true : false, autoComplete: "off", id: "advance-search-typeahead", "aria-label": t('Enter search query'), "aria-describedby": "advance-query-error-helper" }),
|
|
180
180
|
inputString && (React.createElement(TextInputGroupUtilities, null,
|
|
181
181
|
React.createElement(Button, { icon: inputString && isParsingSuccessful ? (React.createElement(Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
|
|
182
182
|
React.createElement(FlexItem, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAdvanceSearchParser.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/useAdvanceSearchParser.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,MAAM,EAAE;;CAAA;yBASzB,MAAM;6BAIF,MAAM;;
|
|
1
|
+
{"version":3,"file":"useAdvanceSearchParser.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/useAdvanceSearchParser.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,MAAM,EAAE;;CAAA;yBASzB,MAAM;6BAIF,MAAM;;EA+LzC"}
|
|
@@ -67,6 +67,7 @@ export default function useAdvanceSearchParser({ onInit }) {
|
|
|
67
67
|
/ field:accountNumberFieldName ":"" "* value:accountNumberValue { return field + ":" + value; }
|
|
68
68
|
/ field:accountNameFieldName ":"" "* value:accountNameValue { return field + ":" + value; }
|
|
69
69
|
/ field:escalatedFieldName ":"" "* value:booleanValue { return field + ":" + value; }
|
|
70
|
+
/ field:isPrivateFieldName ":"" "* value:booleanValue { return field + ":" + value; }
|
|
70
71
|
/ field:cepFieldName ":"" "* value:booleanValue { return field + ":" + value; }
|
|
71
72
|
/ field:contactSSOFieldName ":"" "* value:stringOrMulti { return field + ":" + value; }
|
|
72
73
|
/ field:ownerSSOFieldName ":"" "* value:stringOrMulti { return field + ":" + value; }
|
|
@@ -112,6 +113,7 @@ export default function useAdvanceSearchParser({ onInit }) {
|
|
|
112
113
|
cepFieldName = "CEP" {return "${SolrKeys.cep}";}
|
|
113
114
|
ftsFieldName = "FTS" {return "${SolrKeys.fts}";}
|
|
114
115
|
escalatedFieldName = "escalated" {return "${SolrKeys.escalation}";}
|
|
116
|
+
isPrivateFieldName = "private" {return "${SolrKeys.isPrivate}";}
|
|
115
117
|
contactSSOFieldName = "ownerSSO" {return "${SolrKeys.caseContactSSO}";}
|
|
116
118
|
ownerSSOFieldName = "assignedToContactSSO" {return "${SolrKeys.caseOwner}";}
|
|
117
119
|
createdBySSOFieldName = "createdBySSO" {return "${SolrKeys.createdBySsoUsername}";}
|
package/lib/esm/css/caseList.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Case search specific CSS
|
|
3
3
|
*/
|
|
4
|
-
//test
|
|
5
4
|
.cases-main {
|
|
6
5
|
display: -ms-flexbox;
|
|
7
6
|
display: flex;
|
|
@@ -134,7 +133,6 @@
|
|
|
134
133
|
|
|
135
134
|
.case-search-top .filter-chip-wrapper .pf-v6-c-chip-group {
|
|
136
135
|
padding: 4px;
|
|
137
|
-
background-color: #f0f0f0;
|
|
138
136
|
border-radius: 4px;
|
|
139
137
|
}
|
|
140
138
|
|
|
@@ -15,6 +15,7 @@ export declare const fieldNameToSolrFieldMapping: {
|
|
|
15
15
|
case_contact_sso_username: string;
|
|
16
16
|
case_createdby_sso_username: string;
|
|
17
17
|
case_type: string;
|
|
18
|
+
case_private: string;
|
|
18
19
|
};
|
|
19
20
|
export declare const advanceSearchFieldNameToSolrFieldMapping: {
|
|
20
21
|
case_24_7: string;
|
|
@@ -41,5 +42,6 @@ export declare const advanceSearchFieldNameToSolrFieldMapping: {
|
|
|
41
42
|
case_customer_escalation: string;
|
|
42
43
|
case_version: string;
|
|
43
44
|
case_type: string;
|
|
45
|
+
case_private: string;
|
|
44
46
|
};
|
|
45
47
|
//# sourceMappingURL=caseSearch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseSearch.d.ts","sourceRoot":"","sources":["../../../src/enums/caseSearch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C,oBAAY,mBAAmB;IAC3B,KAAK,UAAU;IACf,QAAQ,aAAa;CACxB;AAED,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"caseSearch.d.ts","sourceRoot":"","sources":["../../../src/enums/caseSearch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C,oBAAY,mBAAmB;IAC3B,KAAK,UAAU;IACf,QAAQ,aAAa;CACxB;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;CAavC,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBpD,CAAC"}
|
|
@@ -17,5 +17,6 @@ export const fieldNameToSolrFieldMapping = {
|
|
|
17
17
|
[SolrKeys.caseContactSSO]: 'ownedByMe',
|
|
18
18
|
[SolrKeys.createdBySsoUsername]: 'createdBySsoUsername',
|
|
19
19
|
[SolrKeys.type]: 'supportType',
|
|
20
|
+
[SolrKeys.isPrivate]: 'private',
|
|
20
21
|
};
|
|
21
22
|
export const advanceSearchFieldNameToSolrFieldMapping = Object.assign(Object.assign({}, fieldNameToSolrFieldMapping), { [SolrKeys.fts]: 'FTS', [SolrKeys.cep]: 'CEP', [SolrKeys.accountName]: 'accountName', [SolrKeys.caseNumber]: 'caseNumber', [SolrKeys.caseOwner]: 'ownerSSO', [SolrKeys.modifiedBy]: 'lastModifiedByName', [SolrKeys.createdBySsoUsername]: 'createdBySSO', [SolrKeys.createdBy]: 'createdByName', [SolrKeys.contactName]: 'contactName', [SolrKeys.caseContactSSO]: 'contactSSO', [SolrKeys.modifiedDate]: 'lastModifiedDate', [SolrKeys.createdDate]: 'createdDate', [SolrKeys.description]: 'description', [SolrKeys.caseSummary]: 'summary', [SolrKeys.alternateId]: 'personalReferenceNumber', [SolrKeys.caseClosedDate]: 'closedDate' });
|
|
@@ -36,7 +36,8 @@ export declare enum SolrKeys {
|
|
|
36
36
|
accountName = "case_account_name",
|
|
37
37
|
alternateId = "case_alternate_id",
|
|
38
38
|
caseClosedDate = "case_closedDate",
|
|
39
|
-
openshiftClusterId = "case_openshift_cluster_id"
|
|
39
|
+
openshiftClusterId = "case_openshift_cluster_id",
|
|
40
|
+
isPrivate = "case_private"
|
|
40
41
|
}
|
|
41
42
|
export declare const advancedSearchMap: {
|
|
42
43
|
case_number: string;
|
|
@@ -126,5 +127,6 @@ export declare const sfdcFieldToSolrMap: {
|
|
|
126
127
|
};
|
|
127
128
|
export declare const AdditionalFilterLabels: {
|
|
128
129
|
case_customer_escalation: string;
|
|
130
|
+
case_private: string;
|
|
129
131
|
};
|
|
130
132
|
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/enums/filters.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;CACpB;AAED,oBAAY,QAAQ;IAChB,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,OAAO,iBAAiB;IACxB,MAAM,gBAAgB;IACtB,aAAa,uBAAuB;IACpC,KAAK,sBAAsB;IAC3B,SAAS,oBAAoB;IAC7B,QAAQ,kBAAkB;IAC1B,SAAS,4BAA4B;IACrC,SAAS,eAAe;IACxB,WAAW,qBAAqB;IAChC,cAAc,8BAA8B;IAC5C,UAAU,6BAA6B;IACvC,OAAO,iBAAiB;IACxB,SAAS,uBAAuB;IAChC,oBAAoB,gCAAgC;IACpD,WAAW,qBAAqB;IAChC,UAAU,4BAA4B;IACtC,YAAY,0BAA0B;IACtC,oBAAoB,iCAAiC;IACrD,sBAAsB,+BAA+B;IACrD,WAAW,qBAAqB;IAChC,GAAG,QAAQ;IACX,GAAG,cAAc;IACjB,IAAI,cAAc;IAClB,GAAG,gBAAgB;IACnB,WAAW,sBAAsB;IACjC,WAAW,sBAAsB;IACjC,cAAc,oBAAoB;IAClC,kBAAkB,8BAA8B;
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/enums/filters.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;CACpB;AAED,oBAAY,QAAQ;IAChB,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,OAAO,iBAAiB;IACxB,MAAM,gBAAgB;IACtB,aAAa,uBAAuB;IACpC,KAAK,sBAAsB;IAC3B,SAAS,oBAAoB;IAC7B,QAAQ,kBAAkB;IAC1B,SAAS,4BAA4B;IACrC,SAAS,eAAe;IACxB,WAAW,qBAAqB;IAChC,cAAc,8BAA8B;IAC5C,UAAU,6BAA6B;IACvC,OAAO,iBAAiB;IACxB,SAAS,uBAAuB;IAChC,oBAAoB,gCAAgC;IACpD,WAAW,qBAAqB;IAChC,UAAU,4BAA4B;IACtC,YAAY,0BAA0B;IACtC,oBAAoB,iCAAiC;IACrD,sBAAsB,+BAA+B;IACrD,WAAW,qBAAqB;IAChC,GAAG,QAAQ;IACX,GAAG,cAAc;IACjB,IAAI,cAAc;IAClB,GAAG,gBAAgB;IACnB,WAAW,sBAAsB;IACjC,WAAW,sBAAsB;IACjC,cAAc,oBAAoB;IAClC,kBAAkB,8BAA8B;IAChD,SAAS,iBAAiB;CAC7B;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAGF,oBAAY,aAAa;IACrB,eAAe,8BAA8B;CAChD;AAED,eAAO,MAAM,iBAAiB,8BAA4C,CAAC;AAC3E,oBAAY,QAAQ;IAChB,UAAU,eAAe;IACzB,WAAW,YAAY;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,aAAa,qBAAqB;IAClC,QAAQ,aAAa;IACrB,SAAS,YAAY;IACrB,WAAW,gBAAgB;IAC3B,SAAS,mBAAmB;IAC5B,UAAU,uBAAuB;IACjC,OAAO,YAAY;IACnB,SAAS,gBAAgB;IACzB,oBAAoB,gCAAgC;IACpD,WAAW,gBAAgB;IAC3B,UAAU,qBAAqB;IAC/B,YAAY,qBAAqB;IACjC,oBAAoB,qBAAqB;IACzC,sBAAsB,qBAAqB;IAC3C,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,cAAc,iBAAiB;CAClC;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAsB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAGlC,CAAC"}
|
package/lib/esm/enums/filters.js
CHANGED
|
@@ -39,6 +39,7 @@ export var SolrKeys;
|
|
|
39
39
|
SolrKeys["alternateId"] = "case_alternate_id";
|
|
40
40
|
SolrKeys["caseClosedDate"] = "case_closedDate";
|
|
41
41
|
SolrKeys["openshiftClusterId"] = "case_openshift_cluster_id";
|
|
42
|
+
SolrKeys["isPrivate"] = "case_private";
|
|
42
43
|
})(SolrKeys || (SolrKeys = {}));
|
|
43
44
|
export const advancedSearchMap = {
|
|
44
45
|
case_number: 'caseNumber',
|
|
@@ -131,4 +132,5 @@ export const sfdcFieldToSolrMap = {
|
|
|
131
132
|
};
|
|
132
133
|
export const AdditionalFilterLabels = {
|
|
133
134
|
[SolrKeys.escalation]: 'Escalated cases',
|
|
135
|
+
[SolrKeys.isPrivate]: 'Private cases',
|
|
134
136
|
};
|
|
@@ -23,8 +23,6 @@ export interface ISolrCaseListResponse {
|
|
|
23
23
|
case_createdByName: string;
|
|
24
24
|
case_createdDate: string;
|
|
25
25
|
case_customer_escalation: boolean;
|
|
26
|
-
case_lastModifiedByName: string;
|
|
27
|
-
case_lastModifiedDate: string;
|
|
28
26
|
case_last_public_update_by: string;
|
|
29
27
|
case_last_public_update_date: string;
|
|
30
28
|
case_number: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseList.d.ts","sourceRoot":"","sources":["../../../src/models/caseList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,WAAW;IACxB,2BAA2B,EAAE,kBAAkB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,KAAK,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,g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,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAEzF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseSearchUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseSearchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAkBxD,OAAO,EACH,oBAAoB,EACpB,WAAW,EAId,MAAM,+CAA+C,CAAC;AAOvD,OAAO,EAEH,mBAAmB,EAEtB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"caseSearchUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseSearchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAkBxD,OAAO,EACH,oBAAoB,EACpB,WAAW,EAId,MAAM,+CAA+C,CAAC;AAOvD,OAAO,EAEH,mBAAmB,EAEtB,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,6BAA6B,UAAU,C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9D;AAGD,iBAAS,kCAAkC,CACvC,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,oBAAoB,EACzC,kBAAkB,EAAE,oBAAoB,EACxC,WAAW,GAAE,MAAW,EACxB,IAAI,GAAE,mBAA+C,wBA+DxD;AA0KD,OAAO,EACH,8BAA8B,EAC9B,sCAAsC,EACtC,oDAAoD,EACpD,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,wCAAwC,EACxC,kCAAkC,GACrC,CAAC"}
|
|
@@ -19,7 +19,7 @@ import { getLabel } from '../components/case-list/case-list-filters/AccountsBook
|
|
|
19
19
|
import { initialCaseFilterState } from '../components/case-list/CaseListFilterContext';
|
|
20
20
|
import { CaseListColumnIds, caseListSortColumnIdsToSFDCMap, caseListSortColumnIdsToSolrMap, CaseStatus, } from '../enums/case';
|
|
21
21
|
import { advanceSearchFieldNameToSolrFieldMapping, CaseSearchQueryType, fieldNameToSolrFieldMapping, } from '../enums/caseSearch';
|
|
22
|
-
import { AdditionalFilterLabels, advancedSearchMap, ProductVersionKey, sfdcFieldToSolrMap, SolrKeys, SolrPivotKeys, SolrTags, } from '../enums/filters';
|
|
22
|
+
import { AdditionalFilterLabels, advancedSearchMap, ProductVersionKey, sfdcFieldToSolrMap, SFDCKeys, SolrKeys, SolrPivotKeys, SolrTags, } from '../enums/filters';
|
|
23
23
|
export const FILTER_URL_QUERY_SEARCH_PARAM = 'query';
|
|
24
24
|
export const FILTER_URL_CURRENT_PAGE_SEARCH_PARAM = 'p';
|
|
25
25
|
export const FILTER_URL_PAGE_SIZE_SEARCH_PARAM = 'size';
|
|
@@ -35,6 +35,7 @@ function createSolrQueryFromFilterState(filterState, loggedInUser, selectedCases
|
|
|
35
35
|
const filteredGroups = filterInfo[SolrKeys.group].map((item) => item.key);
|
|
36
36
|
const start = (currentPage - 1) * pageSize;
|
|
37
37
|
const escalationValue = filterInfo[SolrKeys.escalation].map((item) => item.key);
|
|
38
|
+
const isPrivateValue = filterInfo[SolrKeys.isPrivate].map((item) => item.key);
|
|
38
39
|
// When user selects a group of accounts, multiple accounts are selected and are passed in an array.
|
|
39
40
|
// We need to spread them
|
|
40
41
|
let filteredAccounts = filterInfo[SolrKeys.accountNumber].reduce((acc, item) => (Array.isArray(item.key) ? [...acc, ...item.key] : [...acc, item.key]), []);
|
|
@@ -52,7 +53,7 @@ function createSolrQueryFromFilterState(filterState, loggedInUser, selectedCases
|
|
|
52
53
|
'f.case_product.facet.limit': -1,
|
|
53
54
|
'f.case_version.facet.pivot.limit': -1,
|
|
54
55
|
'f.case_version.facet.pivot.mincount': 1,
|
|
55
|
-
fl: 'case_createdByName,case_createdDate,case_lastModifiedDate,case_lastModifiedByName,id,uri,case_summary,case_status,case_product,case_version,case_accountNumber,case_number,case_contactName,case_owner,case_severity,case_last_public_update_date,case_last_public_update_by,case_customer_escalation,case_folderName,case_alternate_id,case_type,case_closedDate',
|
|
56
|
+
fl: 'case_createdByName,case_createdDate,case_lastModifiedDate,case_lastModifiedByName,id,uri,case_summary,case_status,case_product,case_version,case_accountNumber,case_number,case_contactName,case_owner,case_severity,case_last_public_update_date,case_last_public_update_by,case_customer_escalation,case_folderName,case_alternate_id,case_type,case_closedDate,case_private',
|
|
56
57
|
})
|
|
57
58
|
.facetField(SolrKeys.product, [SolrTags.c_product])
|
|
58
59
|
.facetField(SolrKeys.severity, [SolrTags.c_severity])
|
|
@@ -65,6 +66,7 @@ function createSolrQueryFromFilterState(filterState, loggedInUser, selectedCases
|
|
|
65
66
|
.fq(SolrKeys.group, filteredGroups)
|
|
66
67
|
.fq(SolrKeys.accountNumber, filteredAccounts)
|
|
67
68
|
.fq(SolrKeys.escalation, escalationValue)
|
|
69
|
+
.fq(SolrKeys.isPrivate, isPrivateValue)
|
|
68
70
|
.fq(SolrKeys.type, filterInfo[SolrKeys.type], [SolrTags.c_type])
|
|
69
71
|
.fq(SolrKeys.caseNumber, selectedCases)
|
|
70
72
|
.beginOr()
|
|
@@ -88,7 +90,7 @@ function createUserFriendlyQueryFromFilterState(filterInfo, filterQuery, useKeyF
|
|
|
88
90
|
: _filterKey === SolrKeys.type
|
|
89
91
|
? toNewCaseTypeMapper(filterInfo[_filterKey])
|
|
90
92
|
: filterInfo[_filterKey];
|
|
91
|
-
if (_filterKey !== ProductVersionKey) {
|
|
93
|
+
if (_filterKey !== ProductVersionKey && _filterKey !== SolrKeys.product) {
|
|
92
94
|
Array.isArray(fieldValue) && fieldValue.length > 0 && solrQuery.where(fieldLabel).in(flatMap(fieldValue));
|
|
93
95
|
}
|
|
94
96
|
});
|
|
@@ -108,11 +110,11 @@ function createUserFriendlyQueryFromFilterStateAdvancedSearch(filterInfo, filter
|
|
|
108
110
|
? fieldNameToSolrFieldMapping[_filterKey]
|
|
109
111
|
: _filterKey;
|
|
110
112
|
const fieldValue = isKeyValuePair(filterInfo[_filterKey])
|
|
111
|
-
? filterInfo[_filterKey].map((item) =>
|
|
113
|
+
? filterInfo[_filterKey].map((item) => _filterKey === SolrKeys.accountNumber || _filterKey === SolrKeys.isPrivate ? item.key : item.value)
|
|
112
114
|
: _filterKey === SolrKeys.type
|
|
113
115
|
? toNewCaseTypeMapper(filterInfo[_filterKey])
|
|
114
116
|
: filterInfo[_filterKey];
|
|
115
|
-
if (_filterKey !== ProductVersionKey) {
|
|
117
|
+
if (_filterKey !== ProductVersionKey && _filterKey !== SolrKeys.product) {
|
|
116
118
|
Array.isArray(fieldValue) && fieldValue.length > 0 && solrQuery.where(fieldLabel).in(flatMap(fieldValue));
|
|
117
119
|
}
|
|
118
120
|
});
|
|
@@ -146,6 +148,8 @@ function createUserFriendlyQueryFromFilterStateAdvancedSearch(filterInfo, filter
|
|
|
146
148
|
.replace(/\s+AND\s+/g, ' and ')
|
|
147
149
|
.replace(/\s+OR\s+/g, ' or ')
|
|
148
150
|
.replace('escalated: ("Escalated cases")', 'escalated: true')
|
|
151
|
+
.replace('private: ("true")', 'private: true')
|
|
152
|
+
.replace('private: ("false")', 'private: false')
|
|
149
153
|
.replace('createdBySsoUsername', 'createdBySSO')
|
|
150
154
|
.replace('ownedByMe', 'assignedToContactSSO')
|
|
151
155
|
.replace('owner', 'ownerSSO');
|
|
@@ -173,7 +177,7 @@ function createAdvancedSearchQueryFromFilterState(filterInfo, keyword, useKeyFor
|
|
|
173
177
|
? getStringOrBooleanValue(item.key)
|
|
174
178
|
: getStringOrBooleanValue(item.value))
|
|
175
179
|
: filterInfo[_filterKey];
|
|
176
|
-
if (_filterKey !== ProductVersionKey) {
|
|
180
|
+
if (_filterKey !== ProductVersionKey && _filterKey !== SolrKeys.product) {
|
|
177
181
|
if (Array.isArray(fieldValue) && fieldValue.length > 0) {
|
|
178
182
|
fieldValue.length > 1
|
|
179
183
|
? advanceQuery.where(fieldLabel).in(fieldValue)
|
|
@@ -301,6 +305,13 @@ function sfdcObjectToSolrObject(sfdcObject) {
|
|
|
301
305
|
else if (solrKey) {
|
|
302
306
|
ret[solrKey] = sfdcObject[key];
|
|
303
307
|
}
|
|
308
|
+
// as we are getting only one field in sfdc and want to map that with two fields in solr
|
|
309
|
+
if (key == SFDCKeys.modifiedDate) {
|
|
310
|
+
ret[SolrKeys.lastPublicUpdateDate] = sfdcObject[key];
|
|
311
|
+
}
|
|
312
|
+
else if (key == SFDCKeys.modifiedBy) {
|
|
313
|
+
ret[SolrKeys.lastPublicUpdateDateBy] = sfdcObject[key];
|
|
314
|
+
}
|
|
304
315
|
return ret;
|
|
305
316
|
}, {});
|
|
306
317
|
}
|
|
@@ -456,7 +467,7 @@ function getValidValues(solrFieldName, itemValues = [], globalMetadataState) {
|
|
|
456
467
|
}
|
|
457
468
|
});
|
|
458
469
|
}
|
|
459
|
-
else if (solrFieldName === SolrKeys.escalation) {
|
|
470
|
+
else if (solrFieldName === SolrKeys.escalation || solrFieldName === SolrKeys.isPrivate) {
|
|
460
471
|
mappedValues = itemValues.map((item) => ({
|
|
461
472
|
key: item,
|
|
462
473
|
value: AdditionalFilterLabels[solrFieldName],
|
|
@@ -506,7 +517,7 @@ function getValidValuesAdvancedSearch(solrFieldName, itemValues = [], globalMeta
|
|
|
506
517
|
}
|
|
507
518
|
});
|
|
508
519
|
}
|
|
509
|
-
else if (solrFieldName === SolrKeys.escalation) {
|
|
520
|
+
else if (solrFieldName === SolrKeys.escalation || solrFieldName === SolrKeys.isPrivate) {
|
|
510
521
|
mappedValues = itemValues.map((item) => ({
|
|
511
522
|
key: item,
|
|
512
523
|
value: AdditionalFilterLabels[solrFieldName],
|
|
@@ -16,6 +16,7 @@ export declare const filterNamesMap: {
|
|
|
16
16
|
readonly case_createdby_sso_username: string;
|
|
17
17
|
readonly case_contact_sso_username: string;
|
|
18
18
|
readonly case_type: string;
|
|
19
|
+
readonly case_private: string;
|
|
19
20
|
readonly usernameFilterTitle: string;
|
|
20
21
|
};
|
|
21
22
|
export declare const UpdatedCaseDataEvent = "PCM-Next > case-list-data-background-refresh";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CA0D1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iDAAiD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.74",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@patternfly/patternfly": "6.2.1",
|
|
44
44
|
"@patternfly/react-core": "6.2.1",
|
|
45
45
|
"@patternfly/react-table": "6.2.1",
|
|
46
|
-
"@rh-support/components": "2.5.
|
|
47
|
-
"@rh-support/react-context": "2.5.
|
|
46
|
+
"@rh-support/components": "2.5.75",
|
|
47
|
+
"@rh-support/react-context": "2.5.95",
|
|
48
48
|
"@rh-support/types": "2.0.5",
|
|
49
|
-
"@rh-support/user-permissions": "2.5.
|
|
50
|
-
"@rh-support/utils": "2.5.
|
|
49
|
+
"@rh-support/user-permissions": "2.5.48",
|
|
50
|
+
"@rh-support/utils": "2.5.44",
|
|
51
51
|
"localforage": "^1.10.0",
|
|
52
52
|
"lodash": "^4.17.21",
|
|
53
53
|
"pegjs": "^0.10.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"defaults and supports es6-module",
|
|
97
97
|
"maintained node versions"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "29bfcc59d48ef890c622d6178951ea526ce0be96"
|
|
100
100
|
}
|