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

Add Grade Parameter to Person #42

Merged
merged 5 commits into from
Mar 20, 2024

Conversation

joelgoh1
Copy link

@joelgoh1 joelgoh1 commented Mar 15, 2024

Added grade parameter to person. Syntax for adding a grade would be /g testName: grade

Validation constraints are as follows:

has to be of format testName: grade e.g ca1: 50
testName cannot be empty
grade has to be a number between 0-100

@joelgoh1 joelgoh1 changed the title Fix merge conflicts in DeveloperGuide.md Add Grade Parameter to Peron Mar 15, 2024
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

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

Project coverage is 75.40%. Comparing base (00afeb4) to head (14c2f26).

Files Patch % Lines
...in/java/seedu/address/logic/parser/ParserUtil.java 27.27% 7 Missing and 1 partial ⚠️
.../java/seedu/address/model/util/SampleDataUtil.java 33.33% 6 Missing ⚠️
src/main/java/seedu/address/model/grade/Grade.java 70.58% 2 Missing and 3 partials ⚠️
...c/main/java/seedu/address/model/person/Person.java 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #42      +/-   ##
============================================
+ Coverage     75.26%   75.40%   +0.14%     
- Complexity      419      433      +14     
============================================
  Files            71       73       +2     
  Lines          1338     1403      +65     
  Branches        126      135       +9     
============================================
+ Hits           1007     1058      +51     
- Misses          301      310       +9     
- Partials         30       35       +5     

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

@joelgoh1 joelgoh1 changed the title Add Grade Parameter to Peron Add Grade Parameter to Person Mar 15, 2024
@joelgoh1 joelgoh1 mentioned this pull request Mar 15, 2024
@joelgoh1 joelgoh1 self-assigned this Mar 17, 2024
@joelgoh1 joelgoh1 added this to the v1.2 milestone Mar 17, 2024
Copy link

@amanzainal amanzainal left a comment

Choose a reason for hiding this comment

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

Overall:
LGTM! Added comments directly on the code for very minor changes, some general remarks:

  • Should we consider separating Test and Grade into two entities?
  • Is Checkstyle adhered to? On first glance looks like there's some unnecessary newlines and whitespaces, but I could be wrong
  • How do we fix Codecov errors T_T

*/
public static final String TEST_NAME_VALIDATION_REGEX = ".+?";
public static final String GRADE_VALIDATION_REGEX = "(100|[1-9]?[0-9])$";

Choose a reason for hiding this comment

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

(Styling) Extra line here can be removed

public final String grade;

/**
* Constructs an {@code Grade}.

Choose a reason for hiding this comment

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

Constructs an {@code Grade}.

an -> a

lol sorry😭

@joelgoh1 joelgoh1 merged commit 674e499 into AY2324S2-CS2103-F08-4:master Mar 20, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants