Skip to content

Conversation

@rlorenzo
Copy link
Contributor

@rlorenzo rlorenzo commented Dec 10, 2025

  • Fix ApiResponse DeclaredType to prevent JsonDerivedType cast failures
  • Remove invalid v-bind spread on q-form causing TypeScript error
  • Remove unused imports in AssessmentEpaEdit (watch, types, components)
  • Convert synchronous DB calls to async (Count, BeginTransaction)
  • Remove unused variables shadowing injected dependencies
  • Add AttributeUsage to ApiResponseAttribute for clarity
  • Fix Vue template key warnings and strict equality in MyAssessments

…lization

- Fix ApiResponse DeclaredType to prevent JsonDerivedType cast failures
- Remove invalid v-bind spread on q-form causing TypeScript error
- Remove unused imports in AssessmentEpaEdit (watch, types, components)
- Convert synchronous DB calls to async (Count, BeginTransaction)
- Remove unused variables shadowing injected dependencies
- Add AttributeUsage to ApiResponseAttribute for clarity
- Fix Vue template key warnings and strict equality in MyAssessments
Copilot AI review requested due to automatic review settings December 10, 2025 02:28
@rlorenzo rlorenzo changed the title fix(cts): Fix TypeScript errors, lint warnings, and ApiResponse seria… fix(cts): Fix TypeScript errors, lint warnings, and ApiResponse serialization Dec 10, 2025
Copy link

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 PR addresses multiple TypeScript, linting, and serialization issues across both C# backend and Vue frontend components. The changes improve code quality, fix runtime bugs, and ensure consistent adherence to framework best practices.

Key Changes:

  • Fixed critical JsonDerivedType serialization failures by synchronizing ApiResponse DeclaredType
  • Converted synchronous database operations to async patterns for better scalability
  • Applied strict equality checks and removed invalid Vue directives causing TypeScript errors

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
web/Classes/ApiResponseAttribute.cs Added AttributeUsage decorator, fixed DeclaredType synchronization to prevent JsonDerivedType cast failures, removed unused variable
web/Areas/CTS/Controllers/AssessmentController.cs Converted Count/BeginTransaction to async variants, removed unused imports and variables, eliminated unnecessary casts
VueApp/src/CTS/pages/MyAssessments.vue Applied strict equality operators, fixed v-for keys, improved null/undefined checks, reformatted for consistency
VueApp/src/CTS/pages/AssessmentEpaEdit.vue Removed invalid v-bind spread, converted to kebab-case prop bindings, removed unused imports, applied code formatting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Set DeclaredType on ApiResponse to fix JsonDerivedType serialization
- Add unit tests for ApiResponseAttribute serialization behavior
- Suppress dotnet build verbosity for cleaner verify-build output
Copy link

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rlorenzo rlorenzo merged commit 2765e52 into main Dec 10, 2025
12 checks passed
@rlorenzo rlorenzo deleted the patch/cts-permission-check branch December 10, 2025 04:34
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