Skip to content

Additional ranking fix#7144

Merged
jmgasper merged 2 commits intomasterfrom
develop
Nov 22, 2025
Merged

Additional ranking fix#7144
jmgasper merged 2 commits intomasterfrom
develop

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

No description provided.

@jmgasper jmgasper requested a review from kkartunov as a code owner November 22, 2025 22:57
@jmgasper jmgasper merged commit 646d2c0 into master Nov 22, 2025
7 of 8 checks passed
const normalizedScore = normalizeScoreValue(_.get(summation, 'aggregateScore'));
const isProvisional = Boolean(summation.isProvisional);
const isLatest = _.isNil(summation.isLatest) ? true : Boolean(summation.isLatest);
const isLatest = _.isNil(summation.isLatest) ? null : Boolean(summation.isLatest);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[❗❗ correctness]
The change from isLatest defaulting to true to null could affect logic that relies on this flag being a boolean. Ensure that all parts of the codebase handle null values appropriately, as this could introduce unexpected behavior if not managed correctly.

}))
.sort((a, b) => toTimestampValue(b.submissionTime) - toTimestampValue(a.submissionTime));

const hasLatestFlag = submissions.some(s => !_.isNil(s.isLatest));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[⚠️ correctness]
The logic for determining latestSubmissions now depends on the presence of the isLatest flag. Ensure that all submissions are correctly flagged with isLatest where applicable, as missing flags could lead to incorrect determination of the latest submissions.

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.

1 participant