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

Volunteer Management #116

Merged
merged 57 commits into from
Oct 23, 2018
Merged

Conversation

afiqlattif
Copy link

No description provided.

@afiqlattif afiqlattif added the status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. label Oct 16, 2018

// Identity fields
private final VolunteerId volunteerId;
private final Name name;

Choose a reason for hiding this comment

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

Remember to include the following fields for volunteers!

  • Birthday
  • Gender

Copy link
Author

Choose a reason for hiding this comment

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

Added Gender and Birthday classes, but have yet to implement the correct methods.

…olunteerAddressBook.xml to XmlAddressBookStorageTest
@afiqlattif afiqlattif added status.Ready The PR is ready to be reviewed. note: remove this label before merging a PR. and removed status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. labels Oct 22, 2018
+ PREFIX_VOLUNTEER_EMAIL + "johnd@example.com "
+ PREFIX_VOLUNTEER_ADDRESS + "311, Clementi Ave 2, #02-25 "
+ PREFIX_VOLUNTEER_TAG + "friends "
+ PREFIX_VOLUNTEER_TAG + "owesMoney";

Choose a reason for hiding this comment

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

Might want to change the second tag to fit a volunteer's context instead.

Instead of 'owed money', a tag which says 'driver' would be better. (In the context of volunteer)


public static final String MESSAGE_EDIT_VOLUNTEER_SUCCESS = "Edited Volunteer: %1$s";
public static final String MESSAGE_NOT_EDITED = "At least one field to edit must be provided.";
public static final String MESSAGE_DUPLICATE_VOLUNTEER = "This volunteer already exists in the address book.";

Choose a reason for hiding this comment

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

Change address book to something like
"This volunteer already exists in the application"

/**
* Selects a person identified using it's displayed index from the address book.
*/
public class ManageVolunteerCommand extends Command {

Choose a reason for hiding this comment

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

Volunteers do not need a manage command. Manage is just used in the event's context to switch to the record context.

/**
* Parses input arguments and creates a new SelectVolunteerCommand object
*/
public class ManageVolunteerCommandParser implements Parser<ManageVolunteerCommand> {

Choose a reason for hiding this comment

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

Again, this class is not needed for the volunteers :)

new Birthday("02-10-1996"), new VolunteerPhone("87438807"),
new VolunteerEmail("alexyeoh@example.com"),
new VolunteerAddress("Blk 30 Geylang Street 29, #06-40"),
getTagSet("friends")),

Choose a reason for hiding this comment

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

Try to use tags related to volunteers instead!!

/*
* Gender must only be male or female
*/
public static final String GENDER_MALE_VALIDATION_REGEX = "male";

Choose a reason for hiding this comment

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

Do we want users to enter the whole word? 'Male and Female'. Or should we allow them to type 'M' and 'F' for convenience. Then when storing and retrieving, we can always do a if-else to convert the char to the whole word.

@iMarbles iMarbles merged commit 84d9be0 into CS2103-AY1819S1-W16-2:master Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.Ready The PR is ready to be reviewed. note: remove this label before merging a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants