Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 29, 2025

No description provided.

@vas3a vas3a requested review from jmgasper and kkartunov October 29, 2025 21:15
challenge: Challenge,
reviewers: ChallengeResource[],
): Promise<PaymentPayload[]> {
// skip reviewers payment for Marathon Match challenges

Choose a reason for hiding this comment

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

[❗❗ correctness]
The current logic skips payment for all reviewers if the challenge is a 'Marathon Match' in the 'Data Science' track. Ensure that this behavior is intended, as it might lead to reviewers not being compensated for their work. Consider adding a test case to verify this behavior.

attachments: any[]; // Replace with type if available
track: string;
type: string;
track: { name: string };

Choose a reason for hiding this comment

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

[❗❗ correctness]
Changing track from a string to an object with a name property could impact any existing logic that expects track to be a simple string. Ensure that all usages of track are updated accordingly to prevent runtime errors.

track: string;
type: string;
track: { name: string };
type: { name: string };

Choose a reason for hiding this comment

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

[❗❗ correctness]
Similar to track, changing type from a string to an object with a name property requires a thorough check of all code that interacts with type to avoid potential issues with existing logic.

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