Skip to content
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: Migrate app and core module to standalone #9426

Closed
wants to merge 12 commits into from

Conversation

krusche
Copy link
Member

@krusche krusche commented Oct 5, 2024

Checklist

General

Client

  • Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data (e.g. using paging).
  • I strictly followed the principle of data economy for all client-server REST calls.
  • I strictly followed the client coding and design guidelines.
  • Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
  • I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
  • I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
  • I documented the TypeScript code using JSDoc style.
  • I added multiple screenshots/screencasts of my UI changes.
  • I translated all newly inserted strings into English and German.

Changes affecting Programming Exercises

  • High priority: I tested all changes and their related features with all corresponding user types on a test server configured with the integrated lifecycle setup (LocalVC and LocalCI).
  • I tested all changes and their related features with all corresponding user types on a test server configured with Gitlab and Jenkins.

Motivation and Context

Modernize the Angular client codebase

Description

  • Convert the entry point components to standalone
  • Migrate everything to the new inject() function instead of constructor injection
  • Modernize some of the corresponding client tests

Steps for Testing

Prerequisites:

  • 1 Instructor
  • 2 Students
  • 1 Programming Exercise with Complaints enabled
  1. Log in to Artemis
  2. Navigate to Course Administration
  3. ...

Exam Mode Testing

Prerequisites:

  • 1 Instructor
  • 2 Students
  • 1 Exam with a Programming Exercise
  1. Log in to Artemis
  2. Participate in the exam as a student
  3. Make sure that the UI of the programming exercise in the exam mode stays unchanged. You can use the exam mode documentation as reference.
  4. ...

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

Performance Review

  • I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance even for very large courses with more than 2000 students.
  • I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance even for very large courses with more than 2000 students.

Code Review

  • Code Review 1
  • Code Review 2

Manual Tests

  • Test 1
  • Test 2

Exam Mode Test

  • Test 1
  • Test 2

Performance Tests

  • Test 1
  • Test 2

Test Coverage

Screenshots

@github-actions github-actions bot added the client Pull requests that update TypeScript code. (Added Automatically!) label Oct 5, 2024
@github-actions github-actions bot added the tests label Oct 5, 2024
# Conflicts:
#	src/main/webapp/app/shared/monaco-editor/monaco-diff-editor.component.ts
#	src/main/webapp/app/shared/monaco-editor/monaco-editor.component.ts
#	src/test/javascript/spec/component/programming-exercise/programming-exercise-custom-aeolus-build-plan.component.spec.ts
#	src/test/javascript/spec/component/programming-exercise/programming-exercise-custom-build-plan.component.spec.ts
# Conflicts:
#	src/main/webapp/app/core/user/admin-user.service.ts
#	src/main/webapp/app/exam/manage/student-exams/student-exam-timeline/programming-exam-diff/programming-exercise-exam-diff.component.ts
#	src/main/webapp/app/exercises/programming/hestia/git-diff-report/git-diff-report-modal.component.ts
#	src/main/webapp/app/exercises/programming/shared/build-details/programming-exercise-repository-and-build-plan-details.component.ts
#	src/main/webapp/app/exercises/programming/shared/code-editor/actions/code-editor-actions.component.ts
#	src/main/webapp/app/exercises/shared/exercise-detail-common-actions/non-programming-exercise-detail-common-actions.component.ts
#	src/main/webapp/app/exercises/text/participate/text-editor.component.ts
#	src/main/webapp/app/iris/exercise-chatbot/exercise-chatbot-button.component.ts
#	src/main/webapp/app/iris/settings/iris-settings-update/iris-common-sub-settings-update/iris-common-sub-settings-update.component.ts
#	src/main/webapp/app/lti/lti13-exercise-launch.component.ts
#	src/main/webapp/app/overview/course-conversations/dialogs/conversation-detail-dialog/tabs/conversation-members/conversation-member-row/conversation-member-row.component.ts
#	src/main/webapp/app/overview/course-exercises/course-exercises.component.ts
#	src/main/webapp/app/overview/course-overview.component.ts
#	src/main/webapp/app/overview/courses.component.ts
#	src/main/webapp/app/shared/http/file-uploader.service.ts
#	src/main/webapp/app/shared/layouts/main/main.component.ts
#	src/main/webapp/app/shared/user-settings/user-settings-container/user-settings-container.component.ts
Copy link

There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 21, 2024
@krusche krusche closed this Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Pull requests that update TypeScript code. (Added Automatically!) stale tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant