Skip to content

Conversation

@chrimesdev
Copy link
Member

@chrimesdev chrimesdev commented Sep 16, 2025

Description

Fixes the sort order parameters by correcting the mapping between sort option values and their corresponding sort behaviors across the exception handling system.

  • Swapped the sort option values so "0" represents oldest first (ascending) and "1" represents newest first (descending)
  • Updated the sort logic in the API route to match the corrected value mappings
  • Updated test expectations to reflect the new sort order behavior

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@chrimesdev chrimesdev requested a review from Copilot September 16, 2025 16:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes the sort order parameters by correcting the mapping between sort option values and their corresponding sort behaviors across the exception handling system.

  • Swapped the sort option values so "0" represents oldest first (ascending) and "1" represents newest first (descending)
  • Updated the sort logic in the API route to match the corrected value mappings
  • Updated test expectations to reflect the new sort order behavior

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
application/CohortManager/src/Web/app/exceptions/page.tsx Updated sort option values and default sort logic for general exceptions page
application/CohortManager/src/Web/app/exceptions/[filter]/page.tsx Updated sort option values and default sort logic for filtered exceptions page
application/CohortManager/src/Web/app/api/GetValidationExceptions/route.ts Fixed sort logic to match corrected value mappings with added comments
application/CohortManager/src/Web/tests/features/raisedExceptions.feature Updated expected exception IDs in test scenarios
application/CohortManager/src/Web/tests/features/notRaisedExceptions.feature Updated expected exception IDs in test scenarios

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link

Unit Test Results

✔️ Tests 843 / 843 - passed in 60.8s
📝 Coverage 57.84%
📏 4514 / 7676 lines covered 🌿 1081 / 1998 branches covered
🔍 click here for more details

@chrimesdev chrimesdev added this pull request to the merge queue Sep 16, 2025
Merged via the queue into main with commit 67a32dc Sep 16, 2025
17 checks passed
@chrimesdev chrimesdev deleted the fix/sort-order branch September 16, 2025 16:39
@sonarqubecloud
Copy link

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