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 filter command #54

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Conversation

wolffe88
Copy link

No description provided.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

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

Project coverage is 75.54%. Comparing base (13aa58c) to head (84eaf5f).
Report is 2 commits behind head on master.

Files Patch % Lines
...va/seedu/address/logic/commands/FilterCommand.java 56.25% 5 Missing and 2 partials ⚠️
.../model/person/PersonContainsKeywordsPredicate.java 92.85% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #54      +/-   ##
============================================
+ Coverage     75.46%   75.54%   +0.07%     
- Complexity      432      445      +13     
============================================
  Files            72       75       +3     
  Lines          1390     1427      +37     
  Branches        134      137       +3     
============================================
+ Hits           1049     1078      +29     
- Misses          309      314       +5     
- Partials         32       35       +3     

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

Copy link

@howen02 howen02 left a comment

Choose a reason for hiding this comment

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

LGTM

@yiwern5 yiwern5 marked this pull request as draft March 18, 2024 15:44
@yiwern5 yiwern5 marked this pull request as ready for review March 18, 2024 15:49
@wolffe88 wolffe88 merged commit a4e6427 into AY2324S2-CS2103T-T14-1:master Mar 18, 2024
5 checks passed
@wolffe88 wolffe88 linked an issue Mar 18, 2024 that may be closed by this pull request
@wolffe88 wolffe88 added this to the v1.2 milestone Mar 18, 2024
import seedu.address.model.person.PersonContainsKeywordsPredicate;

/**
* Finds and lists all persons in address book whose name contains any of the argument keywords.
Copy link

Choose a reason for hiding this comment

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

Some typo in the java doc comments. Should be 'whose department or tags'

FilterCommand command = new FilterCommand(predicate);
expectedModel.updateFilteredPersonList(predicate);
assertCommandSuccess(command, model, expectedMessage, expectedModel);
assertEquals(Arrays.asList(CARL, DANIEL), model.getFilteredPersonList());
Copy link

Choose a reason for hiding this comment

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

Great work on testing the scenario of filtering based on multiple keywords.

import seedu.address.commons.util.ToStringBuilder;

/**
* Tests that a {@code Person}'s {@code Name} matches any of the keywords given.
Copy link

Choose a reason for hiding this comment

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

Javadoc typos

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.

As a HR manager, I can filter the list by Department and Tags
3 participants