Skip to content

fix: fix proposals fap review counts - #1814

Merged
TCMeldrum merged 6 commits into
developfrom
fix-review-counts
Nov 4, 2026
Merged

TCMeldrum merged 6 commits into
developfrom
fix-review-counts

Conversation

@TCMeldrum

@TCMeldrum TCMeldrum commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes UserOfficeProject/issue-tracker#1729

Description

This PR addresses an issue with incorrect review counts on the FAP Proposals page.

Motivation and Context

Previously, the review count was based on the number of graded proposals, which did not correctly reflect the actual number of reviews. Now, the count is determined by the number of submitted proposals, which provides a more accurate representation of the review process.

Changes

  • Added ReviewStatus to the imports from 'generated/sdk'.
  • Changed the gradedProposals variable to submittedProposals to better represent its purpose.
  • Replaced the condition for counting reviews from assignment.review.grade !== null to assignment.review.status === ReviewStatus.SUBMITTED. This ensures that only submitted reviews are counted.

How Has This Been Tested?

Fixes Jira Issue

https://jira.ess.eu//browse/

Depends On

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@TCMeldrum
TCMeldrum requested a review from a team as a code owner September 21, 2026 10:53
@TCMeldrum
TCMeldrum requested review from ellen-wright and removed request for a team September 21, 2026 10:53

@jekabs-karklins jekabs-karklins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fix looks good so I approve just one thong for the failing e2e . e2e is failing because test saves a review only as a draft and then expects 1 / 1, but this PR now counts only submitted reviews, so the page correctly shows 0 / 1

@TCMeldrum
TCMeldrum merged commit 6642754 into develop Nov 4, 2026
26 checks passed
@TCMeldrum
TCMeldrum deleted the fix-review-counts branch November 4, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As an LSF FAP member the reviews completed scores should show only submitted not draft review completion

3 participants