Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMM-407 Fix incorrect enumeration/display of proposal rankings #460

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

sutherlanda
Copy link
Contributor

This PR closes issue: https://bcdevex.atlassian.net/browse/DMM-407

This PR fixes 2 issues related to the display of proposal rankings when viewing an evaluated SWU or TWU opportunity:

  1. Proposal rankings were being calculated against an incorrect query that returned duplicates of the same proposal. There was an unnecessary join being performed that returned a record of the same proposal for each question/response present. The fix was to remove that join.

  2. Proposal rankings that were in the 'teens' -- between 10 and 20 -- were showing with incorrect suffixes (i.e. 11st). An exception for amounts in that range was added to the utility function, so that these rankings will show correctly (see screen grab for example).

Screenshot 2024-02-11 at 4 08 36 PM

@sutherlanda sutherlanda self-assigned this Feb 11, 2024
@sutherlanda sutherlanda merged commit 99a82ad into development Feb 14, 2024
5 checks passed
@sutherlanda sutherlanda deleted the DMM-407-fix-incorrect-proposal-ranking branch February 14, 2024 22:49
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.

2 participants