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

Added Lesson and Subject classes #41

Conversation

justinlengch
Copy link

@justinlengch justinlengch commented Mar 20, 2024

Also deleted Tag class since I replaced it with Lesson

@justinlengch justinlengch added the Epic A big feature which can be broken down into smaller stories e.g. search label Mar 20, 2024
@justinlengch justinlengch added this to the v1.2 milestone Mar 20, 2024
@justinlengch justinlengch self-assigned this Mar 20, 2024
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 85.46512% with 25 lines in your changes are missing coverage. Please review.

Project coverage is 75.35%. Comparing base (9cf5719) to head (0eb34b1).
Report is 8 commits behind head on master.

Files Patch % Lines
...c/main/java/seedu/address/model/person/Lesson.java 78.72% 8 Missing and 2 partials ⚠️
src/main/java/seedu/address/ui/PersonCard.java 0.00% 4 Missing ⚠️
.../main/java/seedu/address/model/person/Subject.java 78.57% 2 Missing and 1 partial ⚠️
...in/java/seedu/address/logic/parser/ParserUtil.java 85.71% 1 Missing and 1 partial ⚠️
...c/main/java/seedu/address/model/person/Person.java 83.33% 1 Missing and 1 partial ⚠️
.../java/seedu/address/storage/JsonAdaptedPerson.java 87.50% 1 Missing and 1 partial ⚠️
...java/seedu/address/logic/commands/EditCommand.java 95.45% 0 Missing and 1 partial ⚠️
.../seedu/address/logic/parser/EditCommandParser.java 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #41      +/-   ##
============================================
+ Coverage     74.60%   75.35%   +0.75%     
- Complexity      431      445      +14     
============================================
  Files            74       75       +1     
  Lines          1394     1473      +79     
  Branches        133      144      +11     
============================================
+ Hits           1040     1110      +70     
- Misses          320      324       +4     
- Partials         34       39       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinlengch justinlengch changed the title Lesson and subject classes Added Lesson and Subject classes Mar 21, 2024
@@ -7,6 +7,8 @@
* Guarantees: immutable; is always valid
*/
public class Remark {

Choose a reason for hiding this comment

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

will we be including the remark class?

@@ -23,21 +24,28 @@ public static Person[] getSamplePersons() {
return new Person[] {
new Person(new Name("Alex Yeoh"), new Phone("87438807"), new Email("[email protected]"),
new Address("Blk 30 Geylang Street 29, #06-40"),
EMPTY_REMARK, getTagSet("friends")),
new Subject("Math"),
EMPTY_REMARK, getLessonSet("Maths|10-05-2004|12:29|0")),

Choose a reason for hiding this comment

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

have to include test cases

Copy link
Author

Choose a reason for hiding this comment

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

Ok done!

Copy link

@leepoeaik leepoeaik left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@justinlengch justinlengch merged commit b81adfb into AY2324S2-CS2103T-T16-4:master Mar 21, 2024
5 checks passed
This was linked to issues Mar 21, 2024
This was linked to issues Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic A big feature which can be broken down into smaller stories e.g. search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Lesson and Command classes Add Subject Class Add Lesson Class Find student View students
3 participants