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

[CS2103T-W11-1] HRMate #76

Open
wants to merge 711 commits into
base: master
Choose a base branch
from

Conversation

ryanozx
Copy link

@ryanozx ryanozx commented Sep 20, 2023

HRMate aims to streamline HR processes by offering an intuitive, CLI-based contact management system with specialised functionalities for HR tasks. This enables easy access to employee records and facilitates the tracking of performance evaluations and interview schedules.

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Attention: 154 lines in your changes are missing coverage. Please review.

Comparison is base (517b785) 75.26% compared to head (208fe51) 84.40%.

❗ Current head 208fe51 differs from pull request most recent head 0701af0. Consider uploading reports for the commit 0701af0 to get more accurate results

Files Patch % Lines
src/main/java/seedu/address/ui/LeaveCard.java 0.00% 22 Missing ⚠️
src/main/java/seedu/address/MainApp.java 0.00% 21 Missing ⚠️
src/main/java/seedu/address/ui/LeaveListPanel.java 0.00% 12 Missing ⚠️
...rc/main/java/seedu/address/model/ModelManager.java 71.79% 11 Missing ⚠️
...ess/commons/controllers/FileDialogHandlerImpl.java 30.00% 7 Missing ⚠️
...ress/model/leave/LeaveContainsPersonPredicate.java 45.45% 6 Missing ⚠️
...c/main/java/seedu/address/model/person/Person.java 76.00% 0 Missing and 6 partials ⚠️
src/main/java/seedu/address/ui/MainWindow.java 0.00% 6 Missing ⚠️
src/main/java/seedu/address/model/leave/Leave.java 93.15% 0 Missing and 5 partials ⚠️
...du/address/logic/parser/AddLeaveCommandParser.java 85.71% 0 Missing and 4 partials ⚠️
... and 27 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #76      +/-   ##
============================================
+ Coverage     75.26%   84.40%   +9.13%     
- Complexity      419     1000     +581     
============================================
  Files            71      146      +75     
  Lines          1338     2904    +1566     
  Branches        126      289     +163     
============================================
+ Hits           1007     2451    +1444     
- Misses          301      395      +94     
- Partials         30       58      +28     

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

yuxunn pushed a commit to yuxunn/tp that referenced this pull request Oct 20, 2023
yuxunn pushed a commit to yuxunn/tp that referenced this pull request Oct 20, 2023
…commands"

This reverts commit ef8ba7c, reversing
changes made to 083d789.
yuxunn added a commit to yuxunn/tp that referenced this pull request Oct 20, 2023
Revert "Merge pull request nus-cs2103-AY2324S1#76 from yuxunn/delete_commands"
ivyy-poison and others added 26 commits November 11, 2023 23:59
…n of feature freeze"

This reverts commit 34ae093.

Reason for revert: Clarified with Prof and received approval for change
…-addressBookParser-caseInsensitive

Revert "Make the command word case-insensitive"
AddLeaveCommandParser::parse is modified to use if-else instead of
stream operations, as Stream::map is unable to handle ParseException.

All changes related to Messages::format(Leave) have been reverted to
avoid violating feature flaw. Note that this means that all leaves
printed in CommandResult will not feature the Description field.

Other changes include renaming the variables containing the error
messages - Messages.java from the master branch was used instead
to remove all modified error messages from this branch.
Commit d447735 had changes that improved index parsing, which would
allow it to distinguish between an integer overflow and a
non-numeric index. These changes have been reverted, along with
their test cases, as the overflow scenario would have thrown a
different error message, a violation of the feature freeze.
Leave::belongsTo previously used equals, which is an issue as there
is no guarantee that the employee field in the leave contains the
same instance as the employee list. By changing it to use
ComparablePerson::isSamePerson instead, only the name will be
compared, thus fixing the bug.

Test cases were added for Leave and EditCommandIntegrationTest
to guarantee that the code produces the desired behaviour.
DeleteCommand::execute was affected by the same Leave::belongsTo
bug as EditCommand::execute. These test cases will ensure that
a similar bug can be detected in future.

Additionally, assertCommandFailure will now check that the
LeavesBook and filteredLeaveList remain unmodified.
Clear command now clears both the employee list and the leave list.
ryanozx and others added 30 commits November 14, 2023 12: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.

5 participants