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

Return back user registration option (registration has been removed in the initial stages) #66

Merged
merged 3 commits into from
Sep 4, 2018

Conversation

AleksandrPo
Copy link
Contributor

Checklist

  • I've run mvn test from the root directory to see all new and existing tests pass
  • I've followed code style and run and ensured the code style is valid
  • I've created new tests if necessary.

Motivation and Context

#59

Description

Registration return

MargoSank
MargoSank previously approved these changes Sep 4, 2018
@AleksandrPo AleksandrPo requested review from avisnakovs and olegvm and removed request for avisnakovs September 4, 2018 10:24
"username": usernameTxt.value,
"password": pwd1
}
register(dto)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't leave out semicolons at the end of statements, otherwise weird things may happen in some cases.

@olegvm
Copy link
Contributor

olegvm commented Sep 4, 2018

Please expand PR description to a sentence or two. "Registration return" is too short and is ambiguous because of that.

@AleksandrPo AleksandrPo changed the title Registration return Return back user registration option (registration has been removed in the initial stages) Sep 4, 2018
@@ -25,6 +25,75 @@ function login() {
})
}

function collectDto(){
Copy link
Contributor

@olegvm olegvm Sep 4, 2018

Choose a reason for hiding this comment

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

At the moment this function does two different things: 1) collects data; 2) sends a registration request. Work with UI-related code and HTTP requests should be implemented in separate functions.

Please extract the code that collects data into a separate function collectData, and rename this function to e.g. collectDataAndRegister to make its purpose clearer.

@olegvm
Copy link
Contributor

olegvm commented Sep 4, 2018

Side note: I see you've updated PR title but not description. The title should be the shorter one, and the description should contain the explanation or comment.

@olegvm olegvm merged commit 39eea09 into master Sep 4, 2018
@olegvm olegvm deleted the Registration branch September 4, 2018 13:24
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.

3 participants