-
Notifications
You must be signed in to change notification settings - Fork 294
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
Development
: Update typescript
#9051
Conversation
Co-authored-by: Lucas Welscher <ga53foy@mytum.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested these features on TS1:
Modeling Exercise Creation ✅
Modeling Exercise Participation ✅
Competency import ✅
Tutorial group session creation ✅
tutorial Group session student view ✅
short answer questions ✅
Lecture Unit management ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in testing session on ts1. Tested components for which the types where changed, no issues found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the changes on ts1 in testing session
- Tested modeling exercise (creation, participation, assessment, review of assessment)
- Tested sidebar and course switching
- Tested programming exercise grading configuration
- Participated in programming exercise
- Tested text exercise (creation, participation, assessment
Found an unrelated issue in the assessment Assessment: Tutor note input field available if not submission is selected #9203
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes lgtm
...cises/programming/manage/grading/tasks/programming-exercise-grading-tasks-table.component.ts
Outdated
Show resolved
Hide resolved
@@ -12,4 +12,6 @@ export class ProgrammingExerciseTask extends ProgrammingExerciseServerSideTask { | |||
resultingPoints?: number; | |||
resultingPointsPercent?: number; | |||
stats: TestCaseStats | undefined; | |||
|
|||
[key: string]: number | string | undefined | TestCaseStats | ProgrammingExerciseTestCase[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also sticks out a bit. Why do we need to define for arbitrary strings that a programming exercise task might have attributes of type number | string | undefined | TestCaseStats | ProgrammingExerciseTestCase[]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why we need this here, can you explain it to us @SimonEntholzer ?
When removing this type declaration I do not seem to encounter errors in the files that use the ProgrammingExerciseTask
I checked the following files:
- programming-exercise-grading-tasks-table.component.ts
- programming-exercise-task.component.ts
- programming-exercise-task.service.ts
- programming-exercise-grading-tasks-table.component.spec.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remove the type and the client and e2e tests are still running through, also double checked the programming grading table and it worked, I am quite confident that the type was not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might have been an IDE related issue on my side. It looked like without this additional attribute accessing some of the ProgrammingExerciseTask with the ....["..."] notation wouldn't work. Seems like it does work without the additional key attribute 👍
059c60a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove after changing types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approve after re-testing grading configuration for programming exercises after last two commits
Checklist
General
Client
Motivation and Context
Use the latest version of typescript
Description
This PR includes an upgrade prompted by the updated version of TypeScript, which no longer supports "suppressImplicitAnyIndexErrors": true. As a result, all implicit any assertions have been revised or rewritten.
Steps for Testing
Since this PR only modifies the typing of some variables, the behavior of the code should remain unchanged. However, it is crucial to verify that the affected areas function as expected, with a particular focus on testing modeling exercises and their assessment.
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Test Coverage
unchanged
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Map
objects for better data management.CompetencySearchComponent
tests for improved maintainability.Chores