-
Notifications
You must be signed in to change notification settings - Fork 5
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
Complete SearchRoomCommand #90
Complete SearchRoomCommand #90
Conversation
…as long as spellings are the same
…stead of string, class does not interact with roomlist directly
… testing in EditRoomCommandTest), Add EditRoomCommandTest
…into editroomcommandtest * 'master' of https://github.com/AY2021S1-CS2103T-W12-1/tp: Remove redundant code Make changes to according to comments given by reviewers. Make changes to pass checkstyle. Make changes due to problems during merging. Fix checkstyle issues Update to save task list when editing room Update UserGuide.md # Conflicts: # src/main/java/seedu/address/logic/commands/room/EditRoomCommand.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just minor changes that will affect the UI for Room.
src/main/java/seedu/address/logic/commands/room/ListRoomCommand.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! good reorganization of the codebase!
|
||
*/ | ||
return null; | ||
model.updateFilteredRoomList(room -> room.getRoomNumber() == roomNumber); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe can include the predicate in a different method like:
private Predicate getPredicateForSearchRoom(int roomNumberExpected) {
Predicate predicateForSearchRoom = room1 -> room1.getRoomNumber() == roomNumberExpected;
return predicateForSearchRoom;
}
That is wat I meant.
assertCommandFailure(searchRoomCommand, model, expectedMessage); | ||
} | ||
|
||
//TODO success test cases once we finalise how rooms UI works |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that it has been finalised, maybe you want to implement it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's look into resolving the TODOs in v1.3?
This PR is quite huge (sorry about that because there's a lot of new PRs being merged this week and I had to keep resolving merge conflicts) so here's a summary of what's done: