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 view command #90

Merged

Conversation

mgiang2015
Copy link
Collaborator

@mgiang2015 mgiang2015 commented Oct 7, 2020

Allow user to view only the book specified by index. No additional information is shown compared to list command for now, will see how that can be improved
closes #49

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@f11562c). Click here to learn what that means.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #90   +/-   ##
=========================================
  Coverage          ?   69.62%           
  Complexity        ?      405           
=========================================
  Files             ?       73           
  Lines             ?     1297           
  Branches          ?      132           
=========================================
  Hits              ?      903           
  Misses            ?      354           
  Partials          ?       40           
Impacted Files Coverage Δ Complexity Δ
...ava/seedu/bookmark/logic/commands/ViewCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ava/seedu/bookmark/logic/parser/CommandParser.java 88.88% <0.00%> (ø) 12.00 <0.00> (?)
...edu/bookmark/logic/parser/DeleteCommandParser.java 100.00% <ø> (ø) 2.00 <0.00> (?)
...seedu/bookmark/logic/parser/ViewCommandParser.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../bookmark/model/book/IsSpecifiedBookPredicate.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)

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 f11562c...7913395. Read the comment docs.

Copy link
Collaborator

@TanLeYang TanLeYang left a comment

Choose a reason for hiding this comment

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

Looks good except for some small stuffs! Fix those and it'll be good to merge 👍

@Test
public void equals() {
ViewCommand deleteFirstCommand = new ViewCommand(INDEX_FIRST_BOOK);
ViewCommand deleteSecondCommand = new ViewCommand(INDEX_SECOND_BOOK);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there's a typo here, should be viewFirstCommand and viewSecondCommand right?


import java.util.function.Predicate;

public class IsSpecifiedBookPredicate implements Predicate<Book> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps you could include a super simple javadoc for this class?

Copy link
Collaborator

@pennhanlee pennhanlee left a comment

Choose a reason for hiding this comment

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

Besides Leyang's comments, LGTM!

Copy link
Collaborator

@pangpuncake pangpuncake left a comment

Choose a reason for hiding this comment

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

LGTM!

@TanLeYang TanLeYang merged commit ccacf6d into AY2021S1-CS2103T-F13-2:master Oct 9, 2020
@mgiang2015 mgiang2015 added this to the v1.1 milestone Oct 16, 2020
@TanLeYang TanLeYang modified the milestones: v1.1, v1.2 Oct 23, 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.

Add view command
5 participants