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

#166240995 User profile creation #19

Merged
merged 2 commits into from
Jun 13, 2019
Merged

Conversation

deschantkn
Copy link
Contributor

What does this PR do?

Enables user to create and update their profile information

Description of Task to be completed?

Implement the following endpoints:

  • PUT - /api/user
  • GET - /profiles/:username

How should this be manually tested?

Run the server and use Postman to test

Any background context you want to provide?

N/A

What are the relevant pivotal tracker stories?

#166240995

Screenshots (if appropriate)

N/A

Questions:

N/A

@deschantkn deschantkn added the WIP label Jun 12, 2019
import chaiHttp from 'chai-http';
import app from '../src';

const should = chai.should();

Choose a reason for hiding this comment

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

'should' is assigned a value but never used no-unused-vars

@Quantum-35
Copy link

@deschantkn Fix the Merge conflicts

package.json Outdated Show resolved Hide resolved
@@ -0,0 +1,30 @@
import models from '../../sequelize/models';

Choose a reason for hiding this comment

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

I don't find any valid reason for creating two files pofiles.js and users.js. You can just move all the implementation in the user.js to ProfileController class to make it more readable.
Anything to say about this suggestion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No I think this logic is more sound than what I currently have. Will make the necessary changes

@deschantkn deschantkn added Needs Merge Needs To merge and removed Needs Review labels Jun 13, 2019
- implement user profile creation
- implement user profile fetching functionality
- document endpoints
- fix token middleware
- make request validation middleware reusable

[Finishes #166240995]
@Quantum-35 Quantum-35 merged commit 0941dce into develop Jun 13, 2019
UhiriweAudace pushed a commit that referenced this pull request Jun 13, 2019
* feat: add registration validation errors

* feat(profiles): implement profiles functionality

- implement user profile creation
- implement user profile fetching functionality
- document endpoints
- fix token middleware
- make request validation middleware reusable

[Finishes #166240995]
UhiriweAudace pushed a commit that referenced this pull request Jun 14, 2019
* feat: add registration validation errors

* feat(profiles): implement profiles functionality

- implement user profile creation
- implement user profile fetching functionality
- document endpoints
- fix token middleware
- make request validation middleware reusable

[Finishes #166240995]
eliemugenzi pushed a commit that referenced this pull request Jun 19, 2019
* feat: add registration validation errors

* feat(profiles): implement profiles functionality

- implement user profile creation
- implement user profile fetching functionality
- document endpoints
- fix token middleware
- make request validation middleware reusable

[Finishes #166240995]
Diama1 pushed a commit that referenced this pull request Jul 17, 2019
* feat: add registration validation errors

* feat(profiles): implement profiles functionality

- implement user profile creation
- implement user profile fetching functionality
- document endpoints
- fix token middleware
- make request validation middleware reusable

[Finishes #166240995]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Merge Needs To merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants