-
Notifications
You must be signed in to change notification settings - Fork 303
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 to Angular 19, standalone and inject()
#10112
Conversation
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.
reviewed the account and admin components. why are all standalone: true
removed?standalone: true
is default value in angular 19
I have noticed that the MockBuilder requires standalone components to be marked with: |
I created a temporary patch based on help-me-mom/ng-mocks#10583 which should fix certain test issues related to standalone with So please pull the latest changes ;-) and make sure to invoke `npm install? |
79d2666 removes See https://angular.dev/api/forms/NgModel#options:
Was this intentional? |
no, sorry, you can add it again if it makes sense |
I re-added them |
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 ts3. Complaints and manual assessments work as they used to.
This approval is limited to complaints and manual assessments.
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 on TS3, tested build overview, build agents, programming exercises creation and participation
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 on TS3 and TS1 and found a UI glitch regarding the import competency/prerequisite-buttons, described on the Confluence Page.
Those are small issues. I would suggest to merge this huge PR now and fix those issues quickly in follow-up PRs before we deploy the next release |
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 programming exercise related pages on Ts3
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 communication module on ts3
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 exam mode on ts3 (regular, test, test Run, all exercise types, events, assessment, complaints, grading, import, archive, scores, checklist). 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 on TS3 during testing session - text, quiz, modeling and file upload exercises behave as expected
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 Communication Module in Testing Session.
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 Tutorial Groups feature on TS3 in the testing session and locally. No major issues found, only one small UI issue which can be fixed in a follow up. I noted this down on the respective confluence page 👍
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 exercise file upload, competencies and learning paths on TS1 in testing session
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 Communication Module & Quiz in Testing Session
Checklist
General
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Changes affecting Programming Exercises
Motivation and Context
We want to update our client code the latest and greatest Angular version and profit from new features and optimizations. As a first step, this PR updates to Angular 19, converts all Angular components to standalone and to use inject() instead of constructor injection
Description
ng update
to migrate the client app to Angular 19inject()
instead of constructor injectionjhiExtensionPoint
s for Orion, because they currently do no seem to work.Right now, many client tests fail, but the main functionality of the client app seems to work, at least some basic testing looked promising. I believe it will be easier to collectively fix the issues in the functionality as well as the client tests in this PR instead of having many small PRs that deal with similar issues during the migration and manually migrate aspects that could be done automatically
What is missing for a complete transition:
However, I suggest to apply those improvements in follow-up PRs to avoid
Steps for Testing
Test everything in the app and make sure it works identical to
develop
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
Exam Mode Test