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

Branch model applicant #69

Merged

Conversation

Nikhilalalalala
Copy link

No description provided.

@Nikhilalalalala Nikhilalalalala added this to the v1.3 milestone Oct 19, 2020
@Nikhilalalalala Nikhilalalalala linked an issue Oct 19, 2020 that may be closed by this pull request
Copy link

@Ben-Hanan Ben-Hanan left a comment

Choose a reason for hiding this comment

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

Overall good quality of work. Just a few changes to be made before it can be merged

src/main/java/com/eva/logic/parser/AddCommandParser.java Outdated Show resolved Hide resolved
@@ -16,4 +16,5 @@
public static final Prefix PREFIX_INDEX = new Prefix("i/");
public static final Prefix PREFIX_LEAVE_START = new Prefix("ls/");
public static final Prefix PREFIX_LEAVE_END = new Prefix("le/");
public static final Prefix PREFIX_INTERVIEW_DATE = new Prefix("id/");

Choose a reason for hiding this comment

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

maybe instead of coming up with a myriad of prefixes when we make a new command like ls, le, id, we can standardize a date input to always just use PREFIX_DATE which is d: or d/ or something along these lines?

Copy link
Author

Choose a reason for hiding this comment

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

Sure!, we can discuss in upcoming meeting to standardise this.

src/main/java/com/eva/ui/ApplicantListCard.java Outdated Show resolved Hide resolved
src/main/java/com/eva/ui/ApplicantListCard.java Outdated Show resolved Hide resolved
src/main/java/com/eva/ui/ApplicantListPanel.java Outdated Show resolved Hide resolved
src/main/java/com/eva/ui/ApplicantListPanel.java Outdated Show resolved Hide resolved
src/main/resources/view/MainWindow.fxml Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Oct 20, 2020

Codecov Report

Merging #69 into master will decrease coverage by 0.97%.
The diff coverage is 22.42%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #69      +/-   ##
============================================
- Coverage     49.56%   48.59%   -0.98%     
- Complexity      448      454       +6     
============================================
  Files           101      105       +4     
  Lines          2090     2175      +85     
  Branches        228      240      +12     
============================================
+ Hits           1036     1057      +21     
- Misses         1015     1079      +64     
  Partials         39       39              
Impacted Files Coverage Δ Complexity Δ
src/main/java/com/eva/MainApp.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...va/com/eva/logic/commands/AddApplicantCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...n/java/com/eva/logic/commands/AddStaffCommand.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...main/java/com/eva/logic/commands/ClearCommand.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
...in/java/com/eva/logic/commands/CommentCommand.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ain/java/com/eva/logic/commands/DeleteCommand.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
.../main/java/com/eva/logic/commands/EditCommand.java 94.44% <ø> (ø) 12.00 <0.00> (ø)
.../main/java/com/eva/logic/commands/ExitCommand.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
.../main/java/com/eva/logic/commands/FindCommand.java 100.00% <ø> (ø) 6.00 <0.00> (ø)
.../main/java/com/eva/logic/commands/ListCommand.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
... and 40 more

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 ff41c51...12f1b8b. Read the comment docs.

Copy link

@Ben-Hanan Ben-Hanan left a comment

Choose a reason for hiding this comment

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

minor optional change. LGTM

@@ -24,7 +22,7 @@ public ApplicationStatus(String status) {
requireNonNull(status);
status = status.strip().toLowerCase();
checkArgument(isValidApplicationStatus(status), MESSAGE_CONSTRAINTS);
this.status = status;
this.value = PossibleApplicationStatus.getStatus(status);

Choose a reason for hiding this comment

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

Perhaps a better way to process statuses from strings would be to use the valueOf function of enums. i.e
PossibleApplicationStatus.valueOf(status.toUpperCase()); //throws Illegal argument exception if its not a valid enum
not really sure if it can be applied here as you would have to try catch either here or whatever is calling the constructor.

Comment on lines +16 to +28
public static PossibleApplicationStatus getStatus(String status) {
if (status.equals(RECEIVED.status)) {
return RECEIVED;
} else if (status.equals(PROCESSING.status)) {
return PROCESSING;
} else if (status.equals(ACCEPTED.status)) {
return ACCEPTED;
} else if (status.equals(REJECTED.status)) {
return REJECTED;
} else {
throw new IllegalArgumentException();
}
}

Choose a reason for hiding this comment

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

with relation to my previous comment, this can be removed i think but im not sure how the constructors and the enums tagged to strings work.

@IsaacTin
Copy link

lgtm

@IsaacTin IsaacTin merged commit 4616fc8 into AY2021S1-CS2103T-W13-1:master Oct 20, 2020
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.

Adding of applicants
4 participants