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

[PROD RELEASE] - Bug fixes#7093

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
kkartunov merged 7 commits intomasterfromdevelop
May 13, 2025
Merged

[PROD RELEASE] - Bug fixes#7093

kkartunov merged 7 commits intomasterfromdevelop
May 13, 2025

Conversation

kkartunov
Copy link
Collaborator

hentrymartinand others added7 commitsMay 7, 2025 23:44
fix(PM-1192): showing wrong review scorecard link
Previously, the sorting failed when getFinal() returned undefined. Now we fallback to getSubmissionDate() in case of anonymous userFixes PM-1055
Fix(registrants): sort by submitted date correctly
phases,
}=challenge;

constgetScoreCardByPhase=(phaseName)=>{

Choose a reason for hiding this comment

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

Consider adding error handling or a default return value ingetScoreCardByPhase in casephases is undefined or does not contain the expected structure. This will prevent potential runtime errors.

}=challenge;

constgetScoreCardByPhase=(phaseName)=>{
constphase=phases.find(item=>item.name===phaseName);

Choose a reason for hiding this comment

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

Thefind method will returnundefined if no matching phase is found. Ensure thatphase is checked before attempting to accessphase.constraints to avoid potential errors.


constgetScoreCardByPhase=(phaseName)=>{
constphase=phases.find(item=>item.name===phaseName);
constscoreCardConstraint=phase&&phase.constraints&&phase.constraints.find(item=>item.name==='Scorecard');

Choose a reason for hiding this comment

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

Consider checking ifphase.constraints is an array before callingfind on it to prevent runtime errors ifconstraints is not defined or not an array.

}),
metadata:PT.array,
events:PT.arrayOf(PT.string),
phases:PT.arrayOf(PT.any),

Choose a reason for hiding this comment

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

UsingPT.any forphases prop type is not specific and can lead to potential issues with type checking. Consider defining a more specific prop type that accurately reflects the expected structure of thephases array.

@kkartunovkkartunov merged commit609d44c intomasterMay 13, 2025
8 checks passed
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

@ajeftsajeftsAwaiting requested review from ajeftsajefts is a code owner

@luizrrodriguesluizrrodriguesAwaiting requested review from luizrrodriguesluizrrodrigues is a code owner

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
@kkartunov@hentrymartin

[8]ページ先頭

©2009-2025 Movatter.jp