Skip to content

Add QA tag for QA challenges #1410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/ChallengeEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand All @@ -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) {
Expand Down