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

Added data folder and person class #37

Merged
merged 6 commits into from
Jun 30, 2020
Merged

Added data folder and person class #37

merged 6 commits into from
Jun 30, 2020

Conversation

GrantComm
Copy link
Contributor

@GrantComm GrantComm commented Jun 29, 2020

This pr is made to replace what was previously approved and merged into #33.

@GrantComm GrantComm requested a review from apluscs June 29, 2020 20:25
Copy link
Collaborator

@apluscs apluscs left a comment

Choose a reason for hiding this comment

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

Run mvn compile so that the formatter can format everything and tell you where there's errors.

src/main/java/com/google/sps/data/Person.java Outdated Show resolved Hide resolved
* The email is used as the key to the user table.
*/
public class Person {
private string email, name, company, job, linkedin;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pretty sure we need these to be defined on different lines. Can @acmcarther or @jalexanderqed confirm (or deny) this?

src/main/java/com/google/sps/data/Person.java Outdated Show resolved Hide resolved
src/main/java/com/google/sps/data/Person.java Outdated Show resolved Hide resolved
@GrantComm GrantComm requested a review from apluscs June 29, 2020 21:45
Copy link
Collaborator

@apluscs apluscs left a comment

Choose a reason for hiding this comment

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

Alex/Jack might ask you to put Javadoc on the public methods, but l don't know for sure since they are just simple setters/getters. Other than that, LGTM.

Update: just remembered one more thing. See comment below.

Copy link
Collaborator

@apluscs apluscs left a comment

Choose a reason for hiding this comment

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

Sorry, can you add a getter for email? Just so it matches what we have in Datastore.

@GrantComm
Copy link
Contributor Author

@apluscs the key() method returns the email, should I just change the name of the method?

@acmcarther
Copy link
Collaborator

Nit: PR title is too long. Use the description for details.

Example: google/cargo-raze#134

@GrantComm GrantComm changed the title Added data folder and person class (Previous approved pr merged with branch that is to be closed) Added data folder and person class Jun 30, 2020
@apluscs
Copy link
Collaborator

apluscs commented Jun 30, 2020

@apluscs the key() method returns the email, should I just change the name of the method?

Yes that'd be good!

@GrantComm GrantComm requested a review from apluscs June 30, 2020 18:21
@apluscs apluscs merged commit 33ae39b into master Jun 30, 2020
@apluscs apluscs deleted the newPersonClass branch June 30, 2020 19:02
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.

None yet

3 participants