Skip to content

Commit 62952a5

Browse files
committed
Add QA tag for QA challenges
1 parent 6d5fcb4 commit 62952a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/ChallengeEditor/index.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import {
2323
CHALLENGE_TYPE_ID,
2424
REVIEW_TYPES,
2525
MILESTONE_STATUS,
26-
PHASE_PRODUCT_CHALLENGE_ID_FIELD
26+
PHASE_PRODUCT_CHALLENGE_ID_FIELD,
27+
QA_TRACK_ID
2728
} from '../../config/constants'
2829
import { PrimaryButton, OutlineButton } from '../Buttons'
2930
import TrackField from './Track-Field'
@@ -965,6 +966,8 @@ class ChallengeEditor extends Component {
965966
// chooses first available timeline template or fallback template for the new challenge
966967
const defaultTemplate = avlTemplates && avlTemplates.length > 0 ? avlTemplates[0] : STD_DEV_TIMELINE_TEMPLATE
967968
const isTask = _.find(metadata.challengeTypes, { id: typeId, isTask: true })
969+
const tags = trackId === QA_TRACK_ID ? ['QA'] : []
970+
968971
const newChallenge = {
969972
status: 'New',
970973
projectId: this.props.projectId,
@@ -979,7 +982,8 @@ class ChallengeEditor extends Component {
979982
timelineTemplateId: defaultTemplate.id,
980983
terms: [{ id: DEFAULT_TERM_UUID, roleId: SUBMITTER_ROLE_UUID }],
981984
groups: [],
982-
milestoneId
985+
milestoneId,
986+
tags
983987
// prizeSets: this.getDefaultPrizeSets()
984988
}
985989
if (isTask) {

0 commit comments

Comments
 (0)