@rh-support/cases 0.2.18-alpha.0 → 0.2.20

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":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAyBlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKH,0BAA0B,EAK7B,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,mBAAmB,EAAe,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AA4B3F,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,oBAAY,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,eA0arC"}
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;AAyBlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAIH,0BAA0B,EAI7B,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,mBAAmB,EAAe,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AA4B3F,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,oBAAY,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,eAwZrC"}
@@ -9,14 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import '../../css/caseList.css';
11
11
  import '../../css/caseSearch.css';
12
- import { Alert, AlertVariant, Button } from '@patternfly/react-core';
12
+ import { Button } from '@patternfly/react-core';
13
13
  import AngleDoubleDownIcon from '@patternfly/react-icons/dist/js/icons/angle-double-down-icon';
14
14
  import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/js/icons/angle-double-left-icon';
15
15
  import AngleDoubleRightIcon from '@patternfly/react-icons/dist/js/icons/angle-double-right-icon';
16
16
  import AngleDoubleUpIcon from '@patternfly/react-icons/dist/js/icons/angle-double-up-icon';
17
17
  import { ErrorBoundary, ToastNotification, useBreakpoint, useDocumentTitle, useForceUpdate, usePrevious, } from '@rh-support/components';
18
18
  import { fetchCaseGroupsForSSO, fetchCaseTypes, GlobalMetadataDispatchContext, GlobalMetadataStateContext, setUserPreferences, updateUserPreferences, UserPreferencesKeys, } from '@rh-support/react-context';
19
- import { getConfigField, getStringifiedParams, getUrlParsedParams, haventLoadedMetadata, PCM_CONFIG_FIELD_TYPE, pendoTrackEvent, solrResponseToFacetFields, solrResponseToPivotFields, } from '@rh-support/utils';
19
+ import { getStringifiedParams, getUrlParsedParams, haventLoadedMetadata, pendoTrackEvent, solrResponseToFacetFields, solrResponseToPivotFields, } from '@rh-support/utils';
20
20
  import every from 'lodash/every';
21
21
  import get from 'lodash/get';
22
22
  import some from 'lodash/some';
@@ -45,10 +45,10 @@ export function CaseList(props) {
45
45
  const { t } = useTranslation();
46
46
  useDocumentTitle(PageTitle.CASE_LIST);
47
47
  const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
48
- const { caseList, pivotValues, isFetching, filterValuesFromFacetResponse, currentQuery } = useCaseListStateContext();
48
+ const { caseList, pivotValues, isFetching, filterValuesFromFacetResponse, currentQuery, } = useCaseListStateContext();
49
49
  const CaseListDispatch = useCaseListDispatchContext();
50
50
  const breakPoint = useBreakpoint();
51
- const { globalMetadataState, globalMetadataState: { caseGroups, loggedInUserJwtToken, loggedInUserRights, loggedInUsersAccount, userPreferences, managedAccounts, bookmarkedAccounts, bookmarkedGroupAccounts, allCaseTypes, pcmConfig, }, } = useContext(GlobalMetadataStateContext);
51
+ const { globalMetadataState, globalMetadataState: { caseGroups, loggedInUserJwtToken, loggedInUserRights, loggedInUsersAccount, userPreferences, managedAccounts, bookmarkedAccounts, bookmarkedGroupAccounts, allCaseTypes, }, } = useContext(GlobalMetadataStateContext);
52
52
  const location = useLocation();
53
53
  const searchParams = getUrlParsedParams(location.search);
54
54
  const queryFromUrl = searchParams[FILTER_URL_QUERY_SEARCH_PARAM];
@@ -68,7 +68,6 @@ export function CaseList(props) {
68
68
  const prevSearchType = usePrevious(filterState.filterQueryInfo.type);
69
69
  let isSearchTypeChanged = filterState.filterQueryInfo.type !== prevSearchType;
70
70
  const [hasError, setHasError] = useState(null);
71
- const alwaysUseSFDC = getConfigField(pcmConfig.data, 'alwaysUseSFDC', PCM_CONFIG_FIELD_TYPE.FEATURE_FLAG);
72
71
  // sfdc call should be called only when we don't have any filter applied
73
72
  const forceSfdcSearch = () => every(filterState.filterInfo, (filter) => filter.length === 0);
74
73
  function getCases(currentFilterState) {
@@ -83,7 +82,7 @@ export function CaseList(props) {
83
82
  // recreate a new AbortController for each call
84
83
  let controller = new AbortController();
85
84
  abortControllerRef.current = controller;
86
- const res = yield getCaseList(currentFilterState, loggedInUserRights.data, loggedInUsersAccount.data, controller.signal, forceSfdcSearch(), alwaysUseSFDC);
85
+ const res = yield getCaseList(currentFilterState, loggedInUserRights.data, loggedInUsersAccount.data, controller.signal, forceSfdcSearch());
87
86
  setFilterValuesFromFacetResponse(CaseListDispatch, solrResponseToFacetFields(res));
88
87
  setPivotValues(CaseListDispatch, solrResponseToPivotFields(res));
89
88
  setCaseList(CaseListDispatch, res.response);
@@ -130,7 +129,7 @@ export function CaseList(props) {
130
129
  };
131
130
  const checkNewCases = () => __awaiter(this, void 0, void 0, function* () {
132
131
  try {
133
- const res = yield getCaseList(filterState, loggedInUserRights.data, loggedInUsersAccount.data, null, forceSfdcSearch(), alwaysUseSFDC);
132
+ const res = yield getCaseList(filterState, loggedInUserRights.data, loggedInUsersAccount.data, null, forceSfdcSearch());
134
133
  let changed = false;
135
134
  if (res.response.numFound <= filterState.paginationInfo.pageSize &&
136
135
  res.response.numFound !== caseList.numFound) {
@@ -280,13 +279,6 @@ export function CaseList(props) {
280
279
  }, [breakPoint]);
281
280
  return (React.createElement("article", { id: "rh-support-cases", className: "cases-main" },
282
281
  React.createElement("section", { className: "case-search-top" },
283
- alwaysUseSFDC && (React.createElement("div", null,
284
- React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(Trans, null,
285
- "Case search is working with limited functionality. Please check",
286
- ' ',
287
- React.createElement("a", { href: "https://status.redhat.com", target: "_blank", rel: "noreferrer" }, "status page"),
288
- ' ',
289
- "for details.") }))),
290
282
  React.createElement("div", { className: "search-wrapper" },
291
283
  React.createElement("div", { className: "open-case" },
292
284
  React.createElement(NewCaseButton, { routeProps: props.routeProps })),
@@ -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;AA6B3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAWxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAEH,eAAe,EACf,SAAS,EAIZ,MAAM,0BAA0B,CAAC;AA2BlC,UAAU,MAAM;IACZ,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,eA8V1C"}
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;AA6B3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAWxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAEH,eAAe,EACf,SAAS,EAIZ,MAAM,0BAA0B,CAAC;AA2BlC,UAAU,MAAM;IACZ,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,eAuW1C"}
@@ -152,6 +152,14 @@ export function CaseListTable(props) {
152
152
  accessor: (data) => data.case_alternate_id,
153
153
  show: isColumnVisible(CaseListColumnIds.alternateCaseId),
154
154
  },
155
+ {
156
+ id: CaseListColumnIds.type,
157
+ cellWidth: 10,
158
+ title: t('Type'),
159
+ sortable: true,
160
+ accessor: (data) => data.case_type,
161
+ show: isColumnVisible(CaseListColumnIds.type),
162
+ },
155
163
  ...(props.loggedInUserRights && props.loggedInUserRights.isOrgAdmin()
156
164
  ? [
157
165
  {
@@ -1 +1 @@
1
- {"version":3,"file":"ExportCaseListCSV.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/ExportCaseListCSV.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AA4C7D,UAAU,MAAM;IACZ,uBAAuB,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC7D;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,eAyE9C"}
1
+ {"version":3,"file":"ExportCaseListCSV.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/ExportCaseListCSV.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AA8C7D,UAAU,MAAM;IACZ,uBAAuB,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC7D;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,eAyE9C"}
@@ -34,6 +34,7 @@ const csvHeadersSolr = [
34
34
  { label: 'Modified date', key: SolrKeys.modifiedDate, transform: formatDateTime },
35
35
  { label: 'Uri', key: SolrKeys.uri },
36
36
  { label: 'Alternate case ID', key: SolrKeys.alternateId },
37
+ { label: 'Type', key: SolrKeys.type },
37
38
  ];
38
39
  const csvHeadersSFDC = [
39
40
  { label: 'Account number', key: SFDCKeys.accountNumber },
@@ -51,6 +52,7 @@ const csvHeadersSFDC = [
51
52
  { label: 'Modified date', key: SFDCKeys.lastPublicUpdateDate, transform: formatDateTime },
52
53
  { label: 'Uri', key: SFDCKeys.uri },
53
54
  { label: 'Alternate case ID', key: SFDCKeys.alternateId },
55
+ { label: 'Type', key: SFDCKeys.caseType },
54
56
  ];
55
57
  const groupHeaderSOLR = { label: 'Group', key: SolrKeys.groupName };
56
58
  const groupHeaderSFDC = { label: 'Group', key: SFDCKeys.groupName };
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/CaseSearch.tsx"],"names":[],"mappings":"AAeA,wBAAgB,UAAU,gBAkIzB"}
1
+ {"version":3,"file":"CaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/CaseSearch.tsx"],"names":[],"mappings":"AAeA,wBAAgB,UAAU,gBA8IzB"}
@@ -34,11 +34,11 @@ export function CaseSearch() {
34
34
  // eslint-disable-next-line react-hooks/exhaustive-deps
35
35
  }, [filterQueryInfo.type]);
36
36
  const onSearchValChange = (value) => {
37
- if (isEmpty(value)) {
37
+ if (isEmpty(value.trim())) {
38
38
  clearSearchVal();
39
39
  }
40
40
  else {
41
- setSearchVal(value);
41
+ setSearchVal(value.trim());
42
42
  }
43
43
  };
44
44
  const clearSearchVal = () => {
@@ -64,6 +64,16 @@ export function CaseSearch() {
64
64
  }
65
65
  setSearchType(newType);
66
66
  };
67
+ // To check is Search Button is disabled or not
68
+ const isSearchButtonDisabled = isEmpty(filterQueryInfo.queryString) && isEmpty(searchVal.trim());
69
+ // To handle return or enter keydown event when search button is disabled
70
+ const handleSearchInputKeyDown = (e) => {
71
+ const key = e.which;
72
+ if (key === 13 && isSearchButtonDisabled) {
73
+ e.preventDefault();
74
+ return;
75
+ }
76
+ };
67
77
  const handleSubmit = (ev) => {
68
78
  ev.preventDefault();
69
79
  // for advance search submit should only happen on btn click or ctrl+enter which will be handled manually
@@ -73,7 +83,7 @@ export function CaseSearch() {
73
83
  return (React.createElement(React.Fragment, null,
74
84
  React.createElement("div", { className: "case-search-input-container" },
75
85
  React.createElement(SearchInput, { className: "pf-u-w-100", placeholder: t('Search by keyword or case ID'), value: searchVal.trim(), "data-tracking-id": "search-cases-text-input", id: "case-search-basic", "aria-label": t('Search by keyword or case ID'), onChange: onSearchValChange, onClear: clearSearchVal }),
76
- React.createElement(Button, { variant: "primary", type: "submit", className: "search-btn", "data-tracking-id": "case-list-search-button", isDisabled: isEmpty(filterQueryInfo.queryString) && isEmpty(searchVal.trim()) },
86
+ React.createElement(Button, { variant: "primary", type: "submit", className: "search-btn", "data-tracking-id": "case-list-search-button", isDisabled: isSearchButtonDisabled },
77
87
  React.createElement(Trans, null, "Search")),
78
88
  canUseAdvancedSearch && (React.createElement(Button, { variant: "link", onClick: () => onSearchTypeChange(CaseSearchQueryType.ADVANCED), isDisabled: isFetching, "data-tracking-id": "case-list-adv-toggle-button" },
79
89
  React.createElement(Trans, null, "Advanced"))))));
@@ -83,7 +93,7 @@ export function CaseSearch() {
83
93
  React.createElement(AdvanceSearch, { onSearchValChange: onSearchValChange, onSearchClear: clearSearchVal, onSearchSubmit: onCaseSearch, onSearchTypeChange: onSearchTypeChange }))) : (React.createElement(React.Fragment, null));
84
94
  };
85
95
  return (React.createElement(React.Fragment, null,
86
- React.createElement("form", { onSubmit: handleSubmit },
96
+ React.createElement("form", { onSubmit: handleSubmit, onKeyDown: handleSearchInputKeyDown },
87
97
  React.createElement("div", { className: "form-group case-search-form-group" }, CaseSearchQueryType.BASIC === searchType ? renderBasicSearch() : renderAdvanceSearch())),
88
98
  React.createElement(BookmarkedSearchesSelector, { currentCaseSearchString: searchVal, currentSearchType: searchType })));
89
99
  }
@@ -183,6 +183,8 @@
183
183
  .cases-main .case-search-table {
184
184
  -ms-flex: 1;
185
185
  flex-grow: 1;
186
+ display: block;
187
+ overflow-x: auto;
186
188
  }
187
189
 
188
190
  .case-search-bottom .case-list-table-toolbar {
@@ -23,6 +23,7 @@ export declare enum CaseListColumnIds {
23
23
  productAndVersion = "product",
24
24
  accountNumber = "accountNumber",
25
25
  group = "folderName",
26
- alternateCaseId = "alternateCaseId"
26
+ alternateCaseId = "alternateCaseId",
27
+ type = "type"
27
28
  }
28
29
  //# sourceMappingURL=case.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../../src/enums/case.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAClB,iBAAiB,wBAAwB;IACzC,eAAe,uBAAuB;IACtC,IAAI,mBAAmB;IACvB,MAAM,WAAW;IACjB,GAAG,cAAc;CACpB;AAED,oBAAY,YAAY;IACpB,MAAM,eAAe;IACrB,SAAS,kBAAkB;IAC3B,MAAM,eAAe;IACrB,GAAG,YAAY;CAClB;AAED,eAAO,MAAM,cAAc,0TACgS,CAAC;AAE5T,oBAAY,iBAAiB;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,gBAAgB;IACrB,OAAO,gBAAgB;IACvB,MAAM,WAAW;IACjB,QAAQ,qBAAqB;IAC7B,iBAAiB,YAAY;IAC7B,aAAa,kBAAkB;IAC/B,KAAK,eAAe;IACpB,eAAe,oBAAoB;CACtC"}
1
+ {"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../../src/enums/case.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAClB,iBAAiB,wBAAwB;IACzC,eAAe,uBAAuB;IACtC,IAAI,mBAAmB;IACvB,MAAM,WAAW;IACjB,GAAG,cAAc;CACpB;AAED,oBAAY,YAAY;IACpB,MAAM,eAAe;IACrB,SAAS,kBAAkB;IAC3B,MAAM,eAAe;IACrB,GAAG,YAAY;CAClB;AAED,eAAO,MAAM,cAAc,0TACgS,CAAC;AAE5T,oBAAY,iBAAiB;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,gBAAgB;IACrB,OAAO,gBAAgB;IACvB,MAAM,WAAW;IACjB,QAAQ,qBAAqB;IAC7B,iBAAiB,YAAY;IAC7B,aAAa,kBAAkB;IAC/B,KAAK,eAAe;IACpB,eAAe,oBAAoB;IACnC,IAAI,SAAS;CAChB"}
@@ -27,4 +27,5 @@ export var CaseListColumnIds;
27
27
  CaseListColumnIds["accountNumber"] = "accountNumber";
28
28
  CaseListColumnIds["group"] = "folderName";
29
29
  CaseListColumnIds["alternateCaseId"] = "alternateCaseId";
30
+ CaseListColumnIds["type"] = "type";
30
31
  })(CaseListColumnIds || (CaseListColumnIds = {}));
@@ -17,4 +17,4 @@ export const fieldNameToSolrFieldMapping = {
17
17
  [SolrKeys.caseContactSSO]: 'ownedByMe',
18
18
  [SolrKeys.createdBySsoUsername]: 'createdBySsoUsername',
19
19
  };
20
- export const advanceSearchFieldNameToSolrFieldMapping = Object.assign(Object.assign({}, fieldNameToSolrFieldMapping), { [SolrKeys.fts]: 'FTS', [SolrKeys.cep]: 'CEP', [SolrKeys.accountNumber]: 'accountNumber', [SolrKeys.caseType]: 'caseType', [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' });
20
+ export const advanceSearchFieldNameToSolrFieldMapping = Object.assign(Object.assign({}, fieldNameToSolrFieldMapping), { [SolrKeys.fts]: 'FTS', [SolrKeys.cep]: 'CEP', [SolrKeys.accountNumber]: 'accountNumber', [SolrKeys.type]: 'caseType', [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' });
@@ -30,7 +30,7 @@ export declare enum SolrKeys {
30
30
  description = "case_description",
31
31
  uri = "uri",
32
32
  fts = "case_24_7",
33
- caseType = "case_type",
33
+ type = "case_type",
34
34
  cep = "case_is_cep",
35
35
  accountName = "case_accountName",
36
36
  alternateId = "case_alternate_id"
@@ -62,7 +62,8 @@ export declare enum SFDCKeys {
62
62
  uri = "uri",
63
63
  groupNumber = "groupNumber",
64
64
  groupName = "groupName",
65
- alternateId = "alternateId"
65
+ alternateId = "alternateId",
66
+ caseType = "caseType"
66
67
  }
67
68
  export declare const sfdcFieldToSolrMap: {
68
69
  caseNumber: SolrKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/enums/filters.ts"],"names":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AAgB;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;CACxB;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAoB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAElC,CAAC"}
@@ -32,7 +32,7 @@ export var SolrKeys;
32
32
  SolrKeys["description"] = "case_description";
33
33
  SolrKeys["uri"] = "uri";
34
34
  SolrKeys["fts"] = "case_24_7";
35
- SolrKeys["caseType"] = "case_type";
35
+ SolrKeys["type"] = "case_type";
36
36
  SolrKeys["cep"] = "case_is_cep";
37
37
  SolrKeys["accountName"] = "case_accountName";
38
38
  SolrKeys["alternateId"] = "case_alternate_id";
@@ -68,6 +68,7 @@ export var SFDCKeys;
68
68
  SFDCKeys["groupNumber"] = "groupNumber";
69
69
  SFDCKeys["groupName"] = "groupName";
70
70
  SFDCKeys["alternateId"] = "alternateId";
71
+ SFDCKeys["caseType"] = "caseType";
71
72
  })(SFDCKeys || (SFDCKeys = {}));
72
73
  export const sfdcFieldToSolrMap = {
73
74
  [SFDCKeys.caseNumber]: SolrKeys.caseNumber,
@@ -8,6 +8,6 @@ export interface IPromiseReflection<T> {
8
8
  status: 'fulfilled' | 'rejected';
9
9
  e?: Error;
10
10
  }
11
- export declare function getCaseList(filterState: ICaseListFilterState, loggedInUser: UserAuth, loggedInUserAccount: Partial<IAccount>, abortSignal: AbortSignal, forceSfdcSearch?: boolean, alwaysUseSFDC?: boolean): Promise<ISolrCaseSearchResponse>;
11
+ export declare function getCaseList(filterState: ICaseListFilterState, loggedInUser: UserAuth, loggedInUserAccount: Partial<IAccount>, abortSignal: AbortSignal, forceSfdcSearch?: boolean): Promise<ISolrCaseSearchResponse>;
12
12
  export declare function getCaseListFromSolr(solrQuery: ISearchSolrQuery, partnerSearch: boolean, abortSignal: AbortSignal, isSecureSupport?: boolean): Promise<ISolrCaseSearchResponse>;
13
13
  //# sourceMappingURL=caseListUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"caseListUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseListUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAuC,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAQlG,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,CAAC,CAAC,EAAE,CAAC,CAAC;IACN,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IACjC,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAoBD,wBAAsB,WAAW,CAC7B,WAAW,EAAE,oBAAoB,EACjC,YAAY,EAAE,QAAQ,EACtB,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,EACtC,WAAW,EAAE,WAAW,EACxB,eAAe,CAAC,EAAE,OAAO,EACzB,aAAa,UAAQ,GACtB,OAAO,CAAC,uBAAuB,CAAC,CA4ClC;AAED,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,gBAAgB,EAC3B,aAAa,EAAE,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,eAAe,GAAE,OAAe,GACjC,OAAO,CAAC,uBAAuB,CAAC,CASlC"}
1
+ {"version":3,"file":"caseListUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseListUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAuC,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAOlG,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,CAAC,CAAC,EAAE,CAAC,CAAC;IACN,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IACjC,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAoBD,wBAAsB,WAAW,CAC7B,WAAW,EAAE,oBAAoB,EACjC,YAAY,EAAE,QAAQ,EACtB,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,EACtC,WAAW,EAAE,WAAW,EACxB,eAAe,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,uBAAuB,CAAC,CAqClC;AAED,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,gBAAgB,EAC3B,aAAa,EAAE,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,eAAe,GAAE,OAAe,GACjC,OAAO,CAAC,uBAAuB,CAAC,CASlC"}
@@ -19,10 +19,8 @@ var __rest = (this && this.__rest) || function (s, e) {
19
19
  return t;
20
20
  };
21
21
  import { publicApi, search } from '@cee-eng/hydrajs';
22
- import isEmpty from 'lodash/isEmpty';
23
22
  import { isNoFilterApplied, isSearchSupportedBySFDC } from '../components/case-list/CaseListFilterHelpers';
24
23
  import { createSFDCQueryFromFilterState, createSolrQueryFromFilterState, mapSFDCCaseListToSolrCaseList, } from './caseSearchUtils';
25
- import { mockSolrResponse } from './mockSolrResponse';
26
24
  const reflect = (p) => __awaiter(void 0, void 0, void 0, function* () {
27
25
  try {
28
26
  const v = yield p;
@@ -41,33 +39,26 @@ const reflect = (p) => __awaiter(void 0, void 0, void 0, function* () {
41
39
  // and override the solr result with sfdc.
42
40
  // Even though SFDC support most of the filters but another problem with SFDC is it doesnot support multiple values for a praticular filter.
43
41
  // if user applies any filter apart from default filter we will always call solr and assume that(not safely) 10 sec scenario is not bound to happen.
44
- export function getCaseList(filterState, loggedInUser, loggedInUserAccount, abortSignal, forceSfdcSearch, alwaysUseSFDC = false) {
42
+ export function getCaseList(filterState, loggedInUser, loggedInUserAccount, abortSignal, forceSfdcSearch) {
45
43
  var _a, _b, _c, _d;
46
44
  return __awaiter(this, void 0, void 0, function* () {
47
45
  const solrFilter = createSolrQueryFromFilterState(filterState, loggedInUser);
48
46
  const isSfdcSearchRequired = ((forceSfdcSearch || isSearchSupportedBySFDC(filterState)) && !filterState.filterQueryInfo.queryString) ||
49
47
  loggedInUserAccount.secureSupport;
50
48
  const partnerSearch = loggedInUser.hasManagedAccounts() && ((_b = (_a = filterState.filterInfo) === null || _a === void 0 ? void 0 : _a.case_accountNumber) !== null && _b !== void 0 ? _b : []).length > 0;
51
- let solrPromise = Promise.resolve(undefined);
52
- if (!alwaysUseSFDC) {
53
- solrPromise = getCaseListFromSolr(solrFilter, partnerSearch, abortSignal, loggedInUserAccount === null || loggedInUserAccount === void 0 ? void 0 : loggedInUserAccount.secureSupport);
54
- }
49
+ const solrPromise = getCaseListFromSolr(solrFilter, partnerSearch, abortSignal, loggedInUserAccount === null || loggedInUserAccount === void 0 ? void 0 : loggedInUserAccount.secureSupport);
55
50
  let sfdcPromise;
56
- const needToUseSFDC = isSfdcSearchRequired || alwaysUseSFDC;
57
- if (needToUseSFDC) {
51
+ if (isSfdcSearchRequired) {
58
52
  const sfdcFilter = createSFDCQueryFromFilterState(filterState, loggedInUser, loggedInUserAccount, isNoFilterApplied(filterState));
59
53
  sfdcPromise = publicApi.caseList.getCaseListFromSFDC(sfdcFilter, partnerSearch, loggedInUserAccount === null || loggedInUserAccount === void 0 ? void 0 : loggedInUserAccount.secureSupport, abortSignal);
60
54
  }
61
55
  const res = yield Promise.all([solrPromise, sfdcPromise].filter((item) => !!item).map(reflect));
62
- let solrResponse = res[0];
63
- if (isEmpty(solrResponse === null || solrResponse === void 0 ? void 0 : solrResponse.v) && alwaysUseSFDC) {
64
- solrResponse.v = mockSolrResponse;
65
- }
56
+ const solrResponse = res[0];
66
57
  const sfdcResponse = res[1];
67
- if ((solrResponse === null || solrResponse === void 0 ? void 0 : solrResponse.status) === 'rejected') {
68
- throw new Error(solrResponse === null || solrResponse === void 0 ? void 0 : solrResponse.e.message);
58
+ if (solrResponse.status === 'rejected') {
59
+ throw new Error(solrResponse.e.message);
69
60
  }
70
- if (needToUseSFDC && sfdcResponse) {
61
+ if (isSfdcSearchRequired && sfdcResponse) {
71
62
  if (sfdcResponse.status === 'fulfilled') {
72
63
  const mappedSfdcRes = sfdcResponse && mapSFDCCaseListToSolrCaseList((_d = (_c = sfdcResponse === null || sfdcResponse === void 0 ? void 0 : sfdcResponse.v) === null || _c === void 0 ? void 0 : _c.cases) !== null && _d !== void 0 ? _d : []);
73
64
  solrResponse.v.response.docs = mappedSfdcRes;
@@ -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;AAWxD,OAAO,EACH,oBAAoB,EACpB,WAAW,EAId,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAEH,mBAAmB,EAEtB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,6BAA6B,UAAU,CAAC;AACrD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,WAAW,EAAE,oBAAoB,EACjC,YAAY,EAAE,QAAQ,EACtB,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,EACtC,kBAAkB,EAAE,OAAO,GAC5B,OAAO,CAAC,eAAe,CAAC,CAgE1B;AAED,iBAAS,6BAA6B,CAAC,QAAQ,GAAE,qBAAqB,EAAO,GAAG,qBAAqB,EAAE,CAEtG;AAcD,iBAAS,6BAA6B,CAAC,WAAW,EAAE,oBAAoB,UAUvE;AAED,iBAAS,6BAA6B,CAClC,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,oBAAoB,EACzC,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,GAAE,mBAA+C,wBA4C9D;AAED,iBAAS,kCAAkC,CACvC,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,oBAAoB,EACzC,kBAAkB,EAAE,oBAAoB,wBAmC3C;AAgGD,OAAO,EACH,8BAA8B,EAC9B,sCAAsC,EACtC,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,wCAAwC,EACxC,kCAAkC,GACrC,CAAC"}
@@ -61,7 +61,7 @@ function createSolrQueryFromFilterState(filterState, loggedInUser) {
61
61
  'f.case_product.facet.limit': -1,
62
62
  'f.case_version.facet.pivot.limit': -1,
63
63
  'f.case_version.facet.pivot.mincount': 1,
64
- 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',
64
+ 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',
65
65
  })
66
66
  .facetField(SolrKeys.product, [SolrTags.c_product])
67
67
  .facetField(SolrKeys.severity, [SolrTags.c_severity])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/cases",
3
- "version": "0.2.18-alpha.0",
3
+ "version": "0.2.20",
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.6.0",
29
+ "@cee-eng/hydrajs": "4.7.3",
30
30
  "@patternfly/patternfly": "4.102.2",
31
31
  "@patternfly/pfe-collapse": "1.1.0",
32
32
  "@patternfly/react-core": "4.128.2",
@@ -47,17 +47,17 @@
47
47
  "solr-query-builder": "1.0.1"
48
48
  },
49
49
  "dependencies": {
50
- "@cee-eng/hydrajs": "4.6.0",
50
+ "@cee-eng/hydrajs": "4.7.3",
51
51
  "@patternfly/patternfly": "4.102.2",
52
52
  "@patternfly/pfe-collapse": "1.1.0",
53
53
  "@patternfly/react-core": "4.128.2",
54
54
  "@patternfly/react-table": "4.26.7",
55
- "@rh-support/api": "0.3.7",
56
- "@rh-support/components": "1.1.13",
57
- "@rh-support/react-context": "0.2.15",
55
+ "@rh-support/api": "0.3.8",
56
+ "@rh-support/components": "1.1.15",
57
+ "@rh-support/react-context": "0.2.17",
58
58
  "@rh-support/types": "0.2.0",
59
- "@rh-support/user-permissions": "0.2.9",
60
- "@rh-support/utils": "0.2.9",
59
+ "@rh-support/user-permissions": "0.2.11",
60
+ "@rh-support/utils": "0.2.11",
61
61
  "i18next": "^19.0.1",
62
62
  "localforage": "^1.7.3",
63
63
  "lodash": "^4.17.15",
@@ -101,5 +101,5 @@
101
101
  "not ie <= 11",
102
102
  "not op_mini all"
103
103
  ],
104
- "gitHead": "d71050e3dd9c09571df1600f439acfb4c8a0814d"
104
+ "gitHead": "3dc034eff74761ebe67f6503a13ecf5a1d763071"
105
105
  }
@@ -1,42 +0,0 @@
1
- export declare const mockSolrResponse: {
2
- response: {
3
- numFound: number;
4
- start: number;
5
- docs: any[];
6
- };
7
- responseHeader: {
8
- zkConnected: boolean;
9
- status: number;
10
- QTime: number;
11
- params: {};
12
- };
13
- facet_counts: {
14
- facet_queries: {};
15
- facet_fields: {
16
- case_product: (string | number)[];
17
- case_severity: (string | number)[];
18
- case_status: (string | number)[];
19
- };
20
- facet_ranges: {};
21
- facet_intervals: {};
22
- facet_heatmaps: {};
23
- facet_pivot: {
24
- 'case_product,case_version': ({
25
- field: string;
26
- value: string;
27
- count: number;
28
- pivot: {
29
- field: string;
30
- value: string;
31
- count: number;
32
- }[];
33
- } | {
34
- field: string;
35
- value: string;
36
- count: number;
37
- pivot?: undefined;
38
- })[];
39
- };
40
- };
41
- };
42
- //# sourceMappingURL=mockSolrResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mockSolrResponse.d.ts","sourceRoot":"","sources":["../../../src/utils/mockSolrResponse.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4nF5B,CAAC"}