From ace9ec792d54db2e3402e05de849b15630dac940 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 25 Feb 2025 11:21:04 -0800 Subject: [PATCH 1/2] IO-3152 Restrict searched indexes and remove wildcard search. IO-3152 Resolve accidentally committed change. --- server/opensearch/os-handler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/opensearch/os-handler.js b/server/opensearch/os-handler.js index 15eddea83..66e76cc50 100644 --- a/server/opensearch/os-handler.js +++ b/server/opensearch/os-handler.js @@ -204,7 +204,7 @@ async function OpenSearchSearchHandler(req, res) { : process.env.BODY_SHOP_ID_MATCH_OVERRIDE; const { body } = await osClient.search({ - ...(index ? { index } : {}), + ...(index ? { index } : { index: ["jobs", "vehicles", "owners", "bills", "payments"] }), body: { size: 100, query: { @@ -248,8 +248,8 @@ async function OpenSearchSearchHandler(req, res) { "*ownr_fn^8", "*ownr_co_nm^8", "*ownr_ph1^8", - "*ownr_ph2^8", - "*" + "*ownr_ph2^8" + // "*" ] } } From 9a71779cfed8331edd9d05491c39050cecd67f76 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 27 Feb 2025 18:42:43 -0800 Subject: [PATCH 2/2] IO-2561 Return Items Modal Signed-off-by: Allan Carr --- .../parts-order-modal.component.jsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/client/src/components/parts-order-modal/parts-order-modal.component.jsx b/client/src/components/parts-order-modal/parts-order-modal.component.jsx index c3ade9187..4fc3a5789 100644 --- a/client/src/components/parts-order-modal/parts-order-modal.component.jsx +++ b/client/src/components/parts-order-modal/parts-order-modal.component.jsx @@ -1,17 +1,16 @@ import { DeleteFilled, DownOutlined, WarningFilled } from "@ant-design/icons"; import { useSplitTreatments } from "@splitsoftware/splitio-react"; import { Checkbox, Divider, Dropdown, Form, Input, InputNumber, Radio, Select, Space, Tag } from "antd"; -import React from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { selectBodyshop } from "../../redux/user/user.selectors"; +import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component.jsx"; import CurrencyInput from "../form-items-formatted/currency-form-item.component"; import FormListMoveArrows from "../form-list-move-arrows/form-list-move-arrows.component"; import LayoutFormRow from "../layout-form-row/layout-form-row.component"; import VendorSearchSelect from "../vendor-search-select/vendor-search-select.component"; import PartsOrderModalPriceChange from "./parts-order-modal-price-change.component"; -import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component.jsx"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop @@ -33,7 +32,7 @@ export function PartsOrderModalComponent({ bodyshop, vendorList, sendTypeState, }); const { t } = useTranslation(); - const handleClick = ({ item, key, keyPath }) => { + const handleClick = ({ item }) => { form.setFieldsValue({ comments: item.props.value }); }; @@ -98,17 +97,18 @@ export function PartsOrderModalComponent({ bodyshop, vendorList, sendTypeState, )} - - - - {t("parts_orders.labels.parts_order")} - {t("parts_orders.labels.sublet_order")} - - + {!isReturn && ( + + + {t("parts_orders.labels.parts_order")} + {t("parts_orders.labels.sublet_order")} + + + )} {t("parts_orders.labels.inthisorder")} - {(fields, { add, remove, move }) => { + {(fields, { remove, move }) => { return (
{fields.map((field, index) => (