Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Additional checks for reviewer setup before allowing activation (PM-3…#55

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jmgasper merged 1 commit intodevelopfromreviewer_checks
Nov 25, 2025

Conversation

@jmgasper
Copy link
Contributor

PM-3062

@jmgasperjmgasper merged commit19eb10d intodevelopNov 25, 2025
4 checks passed
RESOURCE_ROLES_API_URL:
process.env.RESOURCE_ROLES_API_URL||"http://api.topcoder-dev.com/v5/resource-roles",
GROUPS_API_URL:process.env.GROUPS_API_URL||"http://localhost:4000/v5/groups",
GROUPS_API_URL:process.env.GROUPS_API_URL||"http://localhost:4000/v6/groups",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[❗❗correctness]
The change from/v5/groups to/v6/groups in theGROUPS_API_URL suggests an API version update. Ensure that the new version is backward compatible or that all necessary changes are made to accommodate any breaking changes in the new API version.


describe('update challenge tests',()=>{
constensureSkipTimelineTemplate=async()=>{
consttemplateId=config.SKIP_PROJECT_ID_BY_TIMLINE_TEMPLATE_ID

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[⚠️correctness]
The variabletemplateId is assigned usingconfig.SKIP_PROJECT_ID_BY_TIMLINE_TEMPLATE_ID. Ensure that this configuration value is correctly set and validated before use to prevent potential runtime errors.

constexistingPhases=awaitprisma.timelineTemplatePhase.findMany({
where:{timelineTemplateId:templateId}
})
constexistingPhaseIds=newSet(existingPhases.map(p=>p.phaseId))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[⚠️correctness]
The use ofnew Set(existingPhases.map(p => p.phaseId)) is efficient for checking existence, but ensure thatdata.phase.id anddata.phase2.id are defined and valid before this check to avoid potential errors.

}

constcreateChallengeWithRequiredReviewPhases=async()=>{
awaitensureSkipTimelineTemplate()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[⚠️correctness]
The functioncreateChallengeWithRequiredReviewPhases assumes thatdata.challenge.typeId anddata.challenge.trackId are available. Ensure these values are properly initialized and validated to prevent potential issues.

}
}

constcreateActivationChallenge=async(status=ChallengeStatusEnum.NEW)=>{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[⚠️correctness]
The functioncreateActivationChallenge usesdata.challenge.typeId anddata.challenge.trackId. Ensure these values are initialized and validated to prevent potential issues.

status:ChallengeStatusEnum.ACTIVE
})
}catch(e){
should.equal(e.message.indexOf('reviewer configured')>=0,true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[⚠️maintainability]
The error message checke.message.indexOf('reviewer configured') >= 0 is fragile and could break if the error message changes. Consider using a more robust error handling strategy.

}
)
}catch(e){
should.equal(e.message.indexOf('missing reviewers for phase(s): Review')>=0,true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[⚠️maintainability]
The error message checke.message.indexOf('missing reviewers for phase(s): Review') >= 0 is fragile and could break if the error message changes. Consider using a more robust error handling strategy.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jmgasper

[8]ページ先頭

©2009-2025 Movatter.jp