Skip to content

Conversation

@himaniraghav3
Copy link
Collaborator

@jmgasper I found the isMM var logic weird and changed it. This fixed the bug and now submissions are visible for Data Science F2Fs

LMK if that was intentional as Sathya told me there are some rules whch are different for DS mms and Dev mms

const { challenge } = this.props;
const trackName = getTrackName(challenge);
return (trackName || '').toLowerCase() === 'data science' || checkIsMM(challenge);
return (trackName || '').toLowerCase() === 'data science' && checkIsMM(challenge);
Copy link

Choose a reason for hiding this comment

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

[❗❗ correctness]
The change from || to && in the isMM function alters the logic significantly. Previously, the function returned true if the track name was 'data science' or if checkIsMM(challenge) was true. Now, both conditions must be true. Ensure this change aligns with the intended logic for determining if a challenge is a marathon match (MM). If this change was not intentional, it could lead to incorrect behavior when loading submissions.

const { challenge } = this.props;
const trackName = getTrackName(challenge);
return (trackName || '').toLowerCase() === 'data science' || checkIsMM(challenge);
return checkIsMM(challenge);
Copy link

Choose a reason for hiding this comment

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

[⚠️ correctness]
The removal of the trackName check simplifies the isMM method, but it assumes that checkIsMM(challenge) alone is sufficient to determine if a challenge is a Marathon Match. Ensure that checkIsMM correctly encapsulates all necessary logic, as this change could affect the behavior for challenges that are not strictly Marathon Matches but were previously filtered by the trackName check.

@himaniraghav3 himaniraghav3 merged commit a495d36 into develop Dec 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants