Skip to content

fix: use the correct value name and data type#1618

Merged
chrimesdev merged 6 commits intomainfrom
fix/use-the-correct-values
Sep 9, 2025
Merged

fix: use the correct value name and data type#1618
chrimesdev merged 6 commits intomainfrom
fix/use-the-correct-values

Conversation

@chrimesdev
Copy link
Copy Markdown
Member

@chrimesdev chrimesdev commented Sep 8, 2025

Description

This pull request uses the correct value name and data type for the UpdateExceptionServiceNowId endpoint

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 8, 2025 18:19
Copy link
Copy Markdown
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

This pull request fixes the data structure and property naming for the UpdateExceptionServiceNowId endpoint, correcting field names and data types to ensure proper API functionality.

  • Renamed ServiceNowNumber to ServiceNowId across the codebase for consistency
  • Changed ExceptionId from string to number type to match expected data format
  • Enhanced error handling and validation logic in the API route

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
updateExceptions.ts Updated request body to use correct field names and removed unnecessary string conversion
updateExceptions.test.ts Updated test expectations to match new field names and data types
route.ts Enhanced type definitions, validation logic, and error handling for the API endpoint

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

Comment thread application/CohortManager/src/Web/app/api/UpdateExceptionServiceNowId/route.ts Outdated
@chrimesdev chrimesdev force-pushed the fix/use-the-correct-values branch from 6cf0d98 to af4d129 Compare September 8, 2025 18:21
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 8, 2025

Unit Test Results

✔️ Tests 824 / 824 - passed in 58.6s
📝 Coverage 58.05%
📏 4486 / 7617 lines covered 🌿 1086 / 1982 branches covered
🔍 click here for more details

✏️ updated for commit a05e088

@chrimesdev chrimesdev force-pushed the fix/use-the-correct-values branch 2 times, most recently from 129d877 to ab1b313 Compare September 8, 2025 20:05
@chrimesdev chrimesdev force-pushed the fix/use-the-correct-values branch from 13792f8 to a05e088 Compare September 9, 2025 12:33
@chrimesdev chrimesdev added this pull request to the merge queue Sep 9, 2025
Merged via the queue into main with commit 8b2e409 Sep 9, 2025
14 checks passed
@chrimesdev chrimesdev deleted the fix/use-the-correct-values branch September 9, 2025 12:36
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 9, 2025

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