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

PR#1 of issue #2 #28

Merged
merged 2 commits into from
Oct 5, 2021
Merged

PR#1 of issue #2 #28

merged 2 commits into from
Oct 5, 2021

Conversation

youcefs21
Copy link
Member

@youcefs21 youcefs21 commented Sep 27, 2021

Overview

Implement Assignment Enrollment

This change is a

  • New feature (non-breaking change which adds functionality)

Description

  • Fixed up the AssignmentEnrollment entity
  • Created AssignmentEnrollmentRepository
  • Created AssignmentEnrollmentPage model
  • added test data to bootstrap_data.sql

Motivation/Links

#2

How was this tested?

The project runs without crashing, and the AssignmentEnrollment table shows up on H2 with the test data I added to bootstrap_data.sql

Todos

The rest of #2

Sorry, something went wrong.

- Fixed up the `AssignmentEnrollment` entity
- Created `AssignmentEnrollmentRepository`
- Created `AssignmentEnrollmentPage` model
- added test data to `bootstrap_data.sql`
Copy link
Member

@benjaminkostiuk benjaminkostiuk left a comment

Choose a reason for hiding this comment

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

Great stuff 👌! Couple small changes that I forgot when I first worked on the class but really good 👍

- Renamed the assignment associated with AssignmentEnrollment from "course" to "assignment
- Added a JsonIgnore tag to the ID in AssignmentEnrollment
- Added a USER_ID variable to bootstrap_data.sql for ease of testing
- Added a 2 more test cases to Assignment enrolment in bootstrap_data
@codecov-commenter
Copy link

Codecov Report

Merging #28 (6207236) into master (9b1b5d4) will decrease coverage by 0.27%.
The diff coverage is 20.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #28      +/-   ##
============================================
- Coverage     54.93%   54.66%   -0.28%     
- Complexity      139      140       +1     
============================================
  Files            46       47       +1     
  Lines           628      633       +5     
  Branches         19       19              
============================================
+ Hits            345      346       +1     
- Misses          270      274       +4     
  Partials         13       13              
Impacted Files Coverage Δ
...ls/api/response/page/AssignmentEnrollmentPage.java 0.00% <0.00%> (ø)
.../courseManagement/entity/AssignmentEnrollment.java 25.00% <33.33%> (+5.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b1b5d4...6207236. Read the comment docs.

Copy link
Member

@benjaminkostiuk benjaminkostiuk left a comment

Choose a reason for hiding this comment

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

Sweet I'll merge this right away :)

@benjaminkostiuk benjaminkostiuk merged commit b95f714 into master Oct 5, 2021
@benjaminkostiuk benjaminkostiuk deleted the Feature/add-user-endpoints branch October 5, 2021 13: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.

None yet

3 participants