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

Implement deleteBy ISBN or times and add tests #90

Merged

Conversation

richardcom
Copy link

Implement deleteBy ISBN or times and add tests
Fix #52

@richardcom richardcom added this to the v1.2b milestone Oct 13, 2020
@richardcom richardcom self-assigned this Oct 13, 2020
@richardcom richardcom merged commit 3124095 into AY2021S1-CS2103-F09-3:master Oct 13, 2020
@HCY123902 HCY123902 self-requested a review November 3, 2020 07:37
@HCY123902
Copy link

LGTM

Copy link

@HCY123902 HCY123902 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -24,11 +24,18 @@
public static final String MESSAGE_DELETE_BOOK_SUCCESS = "Deleted Book: %1$s";

private final String targetName;
private final int attribute;

Choose a reason for hiding this comment

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

LGTM

/**
* Parses input arguments and creates a new DeleteByCommand object
*/
public class DeleteByCommandParser implements Parser<DeleteByCommand> {
Copy link

@HCY123902 HCY123902 Nov 6, 2020

Choose a reason for hiding this comment

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

LGTM. Interesting command with the usage of different types of keyword. Maybe there can also be the functionality to delete using more than 1 keyword at the same time.


import seedu.address.logic.commands.DeleteByCommand;


Choose a reason for hiding this comment

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

LGTM

Copy link

@HCY123902 HCY123902 left a comment

Choose a reason for hiding this comment

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

LGTM

boolean isTimesPresent = isPrefixesPresent(argMultimap, PREFIX_TIMES)
&& !arePrefixesPresent(argMultimap, PREFIX_NAME, PREFIX_ISBN);


Choose a reason for hiding this comment

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

LGTM. The defensiveness seems to be present.

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.

Implement deleteBookByTimes function
2 participants