Skip to content

Commit

Permalink
EPMRPP-88599 || Make decision. Set link_name analytics parameter on e…
Browse files Browse the repository at this point in the history
…ach defect comment change
  • Loading branch information
AmsterGet committed Jan 3, 2024
1 parent 6481839 commit 474af40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ const MakeDecision = ({ data }) => {
!item.issue.issueType.startsWith(TO_INVESTIGATE_LOCATOR_PREFIX),
),
commentOption: isBulkOperation ? NOT_CHANGED_FOR_ALL : REPLACE_FOR_ALL,
extraAnalyticsParams: {},
extraAnalyticsParams: {
link_name: false,
},
});
const [activeTab, setActiveTab] = useState(SELECT_DEFECT_MANUALLY);
const windowSize = useWindowResize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const SelectDefectManually = ({

const source = modalState.selectManualChoice;

const handleManualChange = (value = {}) => {
const handleManualChange = (value = {}, extraAnalyticsParams = {}) => {
const issue = {
...(modalState.decisionType === SELECT_DEFECT_MANUALLY ? source.issue : itemData.issue),
...value,
Expand All @@ -85,6 +85,10 @@ export const SelectDefectManually = ({
...modalState,
decisionType: SELECT_DEFECT_MANUALLY,
selectManualChoice: { issue },
extraAnalyticsParams: {
...modalState.extraAnalyticsParams,
...extraAnalyticsParams,
},
});
if (!issue.comment) {
commentEditor.focus();
Expand All @@ -100,7 +104,7 @@ export const SelectDefectManually = ({
trackEvent(getClickIgnoreAACheckboxEvent(defectFromTIGroup, e.target.checked));
};
const handleDefectCommentChange = (value) => {
handleManualChange({ comment: value.trim() });
handleManualChange({ comment: value.trim() }, { link_name: true });
if (isBulkOperation) {
const isValueEmpty = value.trim() === '';
if (!source.issue.comment && !isValueEmpty) {
Expand Down

0 comments on commit 474af40

Please sign in to comment.