From 62952a52ce8f5f08b10bd47c521bf0eecb42fc0a Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Tue, 9 Aug 2022 07:36:55 -0700 Subject: [PATCH] Add QA tag for QA challenges --- src/components/ChallengeEditor/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ChallengeEditor/index.js b/src/components/ChallengeEditor/index.js index c44b1433..a64eb95b 100644 --- a/src/components/ChallengeEditor/index.js +++ b/src/components/ChallengeEditor/index.js @@ -23,7 +23,8 @@ import { CHALLENGE_TYPE_ID, REVIEW_TYPES, MILESTONE_STATUS, - PHASE_PRODUCT_CHALLENGE_ID_FIELD + PHASE_PRODUCT_CHALLENGE_ID_FIELD, + QA_TRACK_ID } from '../../config/constants' import { PrimaryButton, OutlineButton } from '../Buttons' import TrackField from './Track-Field' @@ -965,6 +966,8 @@ class ChallengeEditor extends Component { // chooses first available timeline template or fallback template for the new challenge const defaultTemplate = avlTemplates && avlTemplates.length > 0 ? avlTemplates[0] : STD_DEV_TIMELINE_TEMPLATE const isTask = _.find(metadata.challengeTypes, { id: typeId, isTask: true }) + const tags = trackId === QA_TRACK_ID ? ['QA'] : [] + const newChallenge = { status: 'New', projectId: this.props.projectId, @@ -979,7 +982,8 @@ class ChallengeEditor extends Component { timelineTemplateId: defaultTemplate.id, terms: [{ id: DEFAULT_TERM_UUID, roleId: SUBMITTER_ROLE_UUID }], groups: [], - milestoneId + milestoneId, + tags // prizeSets: this.getDefaultPrizeSets() } if (isTask) {