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

Update code to use Availability attribute #80

Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
40f8735
Add `Availability` data field to Person
tsulim Mar 14, 2024
7f10c06
Update SampleDataUtil with `Availability` data
tsulim Mar 14, 2024
56119e3
Create JsonAdaptedAvailability class
tsulim Mar 14, 2024
ea9ded8
Add `Availability` data field to JsonAdaptedPerson
tsulim Mar 14, 2024
7f3d183
Update Messages with `Availability` data field
tsulim Mar 14, 2024
b6c40b4
Add Prefix "a/" for specifying `Availability`
tsulim Mar 14, 2024
549d44a
Update AddCommand with `Availability` data field
tsulim Mar 14, 2024
239c102
Update ParserUtil with `Availability` data field
tsulim Mar 14, 2024
0a9723c
Update AddCommandParser with `Availability` data field
tsulim Mar 14, 2024
740035c
Add `Availability` data field to PersonBuilder
tsulim Mar 14, 2024
e07bb2f
Update EditCommand with `Availability` data field
tsulim Mar 14, 2024
60ca861
Update usage message in AddCommand
tsulim Mar 14, 2024
56e6ddc
Update EditCommandParser with `Availability` data field
tsulim Mar 14, 2024
a6e7e28
Update EditPersonDescriptorBuilder with `Availability` data field
tsulim Mar 14, 2024
c439cce
Update CommandTestUtil with `Availability` data
tsulim Mar 14, 2024
dff8753
Update TypicalPersons with `Availability` data
tsulim Mar 14, 2024
0237e03
Update EditCommandTest with `Availability` data
tsulim Mar 14, 2024
0e4890b
Update AddCommandParserTest with `Availability` data field
tsulim Mar 14, 2024
35e04bf
Update PersonUtil with `Availability` data field
tsulim Mar 15, 2024
af02feb
Update JsonAdaptedPersonTest with `Availability` data field
tsulim Mar 15, 2024
590bdaa
Update PersonTest with `Availability` data field
tsulim Mar 15, 2024
0cc2b96
Fix error in ParserUtil and EditPersonDescriptorTest
tsulim Mar 15, 2024
a522cc2
Update EditCommandParserTest with `Availability` data field
tsulim Mar 15, 2024
3678600
Fix error in AddCommandParser and AddCommandParserTest
tsulim Mar 15, 2024
b65a51b
Update typicalPersonsStaffBook.json with `Availability` data
tsulim Mar 15, 2024
b4cd150
Fix error in LogicManagerTest
tsulim Mar 15, 2024
95228a5
Update ui with `Availability` data field
tsulim Mar 15, 2024
0522330
Fix error in PersonUtil
tsulim Mar 15, 2024
e784d83
Merge remote-tracking branch 'upstream/master'
tsulim Mar 15, 2024
833048f
Merge branch 'master' into 66-update-with-availability
tsulim Mar 15, 2024
255a3af
Merge remote-tracking branch 'upstream/master'
tsulim Mar 15, 2024
a4d230f
Merge remote-tracking branch 'upstream/master'
tsulim Mar 16, 2024
fcab6f9
Fix merge conflicts
tsulim Mar 16, 2024
6e71003
Fix errors in test
tsulim Mar 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix error in LogicManagerTest
tsulim committed Mar 15, 2024
commit b4cd1506e5b97dd2e3b343f8ed754d4119180d3f
2 changes: 1 addition & 1 deletion src/test/java/staffconnect/logic/LogicManagerTest.java
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ public void saveStaffBook(ReadOnlyStaffBook staffBook, Path filePath)
// Triggers the saveStaffBook method by executing an add command
String addCommand = AddCommand.COMMAND_WORD + NAME_DESC_AMY + PHONE_DESC_AMY
+ EMAIL_DESC_AMY + VENUE_DESC_AMY + MODULE_DESC_AMY;
Person expectedPerson = new PersonBuilder(AMY).withTags().build();
Person expectedPerson = new PersonBuilder(AMY).withTags().withAvailabilities().build();
ModelManager expectedModel = new ModelManager();
expectedModel.addPerson(expectedPerson);
assertCommandFailure(addCommand, CommandException.class, expectedMessage, expectedModel);