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

Communication: Accept messaging code of conduct #7154

Merged
merged 102 commits into from
Oct 14, 2023

Conversation

nityanandaz
Copy link
Contributor

@nityanandaz nityanandaz commented Sep 7, 2023

Checklist

General

Server

  • Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
  • I followed the coding and design guidelines.
  • I added multiple integration tests (Spring) related to the features (with a high test coverage).
  • I added pre-authorization annotations according to the guidelines and checked the course groups for all new REST Calls (security).
  • I documented the Java code using JavaDoc style.

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.
  • I followed the 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.

Motivation and Context

#7085: Accept a course's code of conduct

Description

Add a guard such that a user can only write messages if they accepted the course's code of conduct.

Steps for Testing

Prerequisites:

  • 1 Student/Instructor
  • 1 Course
  1. Log in to Artemis
  2. Navigate to Messages
  3. Accept the Code of Conduct
  4. Click the Code of Conduct button to look it up
  5. Navigate elsewhere
  6. Navigate to Messages, the Code of Conduct should remain accepted

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
  • I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

  • Code Review 1
  • Code Review 2

Manual Tests

  • Test 1
  • Test 2

Test Coverage

Client

Class/File Line Coverage Confirmation (assert/expect)
user.model.ts 100%
course-update.component.ts 82.3%
course-conversations-code-of-conduct.component.ts 92.85%
course-conversations.component.ts 100%
conversation-selection-sidebar.component.ts 93.25%
file.service.ts 50%
conversation.service.ts 96.38%
metis-conversation.service.ts 83.79%

Server

Class/File Line Coverage Confirmation (assert/expect)
ConductAgreement.java 62%
ConductAgreementId.java 43%
ConductAgreementRepository.java not found (added)
ConductAgreementService.java 100%
ResponsibleUserDTO.java 100%
CourseResource.java 94%
FileResource.java 72%
ConversationResource.java 92%

Screenshots

image image
Screen.Recording.2023-10-12.at.10.46.16.mov

@nityanandaz nityanandaz self-assigned this Sep 7, 2023
@github-actions github-actions bot added tests server Pull requests that update Java code. (Added Automatically!) client Pull requests that update TypeScript code. (Added Automatically!) database Pull requests that update the database. (Added Automatically!). Require a CRITICAL deployment. labels Sep 7, 2023
@nityanandaz nityanandaz changed the base branch from develop to 7085/v2/configure-messaging-code-of-conduct September 7, 2023 21:34
@github-actions github-actions bot removed the tests label Sep 8, 2023
@krusche krusche added this to the 6.6.0 milestone Oct 12, 2023
Copy link
Contributor

@TimOrtel TimOrtel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Looks good to me

Copy link
Contributor

@tobias-lippert tobias-lippert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reapprove after clarifiying that the change requests are no longer valid.

Copy link
Contributor

@lennart-keller lennart-keller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code lgtm 👍

Copy link
Contributor

@florian-glombik florian-glombik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approve since no major changes since last review #7154 (comment) and issues are clarified / resolved in follow-ups

@krusche krusche merged commit 19a81aa into develop Oct 14, 2023
19 of 24 checks passed
@krusche krusche deleted the 7085/v2/accept-messaging-code-of-conduct branch October 14, 2023 07:04
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!) cypress Pull requests that update cypress tests. (Added Automatically!) database Pull requests that update the database. (Added Automatically!). Require a CRITICAL deployment. ready to merge server Pull requests that update Java code. (Added Automatically!) tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants