Skip to content

Staging #3

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

Open
wants to merge 105 commits into
base: master
Choose a base branch
from
Open

Staging #3

wants to merge 105 commits into from

Conversation

iakhator
Copy link
Owner

@iakhator iakhator commented Jul 8, 2017

What does this PR do?

  • For review

Description of Task to be completed?

  • None

How should this be manually tested?

  • None

Any background context you want to provide?

  • None

What are the relevant pivotal tracker stories?

  • None

Screenshots (if appropriate)

  • None

Questions:

  • None

Andela Developer added 29 commits July 8, 2017 16:52
- ensure directory is properly linting
[Finishes #148533841]
- make sure application runs smoothly
[Footer #148533999]
- make sure application runs smoothly
[Footer #148533999]
-ensure sequelize is configure properly
[Finishes #14854220]
-ensure schemas are linked successfully
[Finishes #148544303]
-ensure gulp runs the server without errors
[Finishes #149215875]
- make sure user see an exciting gaming screen
[Finishes #146622705]
- ensures hound is set up to follow code style guide
[Finishes #149221199]
- ensures api endpoints are reachable
[Finishes #149221719]
'
- ensure user is registered
- ensure user data is stored in the database
[Finishes #149293369]
-ensures user is logged in
ensures a token is given to each logged in user
[Finishes #149350019]
- get all users if the user is an admin
- return unauthorized access if the user is not an admin
[Finishes #14935501]
- ensure users can find a user when logged in
[Finishes #149355603]
-ensures user is logged in before updating attributes.
ensures user cannot update another user attributes.
[Finishes #149356073]
[Finishes #149356281]
- ensure when user search it return the  result
[Finishes #149357097]
-make sure user can create document and give it an access type
[Finishes #149357821]
-user can edit document after creating
[Footer #149358075]
- ensure user can find and view document based on public on private access
- ensure user can can delete only document associated to the userid
[Finishes #149367289]
- ensure user can find and view document based on public on private access
- ensure user can can delete only document associated to the userid
[Finishes #149367289]
- ensure all document associated to a user Id is retrieved
[Footer #149530895]
@iakhator iakhator temporarily deployed to doksmanager August 15, 2017 18:23 Inactive
@iakhator iakhator temporarily deployed to doksmanager August 15, 2017 18:26 Inactive
Andela Developer added 7 commits August 16, 2017 15:14
- ensure user can delete self
- ensure admin can delete all users
[Finishes #150296222]
- ensure messages are uniform
- ensure Read me is descriptive enough
[Finishes #150296222]
- ensure document search is better and dynamic
- ensure all test are passing after refactoring code
[Finishes #150296222]
- ensure document search get documents with trailing space
[Finishes #150296222]
- refactor read me to be descriptive
[Finishes #150296222]
- refactor test to match
[Finishes #150296222]
/** GET /api/users/id/documents - Find documents of a specific user*/
.get(auth.verifyToken, userController.getUserDocuments);

export default router;

Choose a reason for hiding this comment

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

'export' is only available in ES6 (use 'esversion: 6').

@@ -0,0 +1,16 @@
import express from 'express';

Choose a reason for hiding this comment

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

'import' is only available in ES6 (use 'esversion: 6').

/** GET /api/v1/search - search list of documents */
.get(auth.verifyToken, searchController.searchDocuments);

export default router;

Choose a reason for hiding this comment

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

'export' is only available in ES6 (use 'esversion: 6').

@iakhator iakhator temporarily deployed to doksmanager August 17, 2017 18:07 Inactive
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 58f5831 on staging into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 58f5831 on staging into ** on master**.

Andela Developer added 4 commits August 18, 2017 10:38
- write unit tests
- ensure unit tests passes
[Finishes #150296222]
- write unit tests
- ensure unit tests passes
[Finishes #150296222]
db.User.create(uniqueTest)
.then()
.catch((error) => {
expect(error.errors[0].message).to.equal(`${field} already exist`);

Choose a reason for hiding this comment

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

'template literal syntax' is only available in ES6 (use 'esversion: 6').

it(`should fails for existing ${field}`, (done) => {
db.User.create(uniqueTest)
.then()
.catch((error) => {

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

uniqueFields.forEach((field) => {
const uniqueTest = Object.assign({}, helper.firstUser);
uniqueTest[field] = helper.regularUser[field];
it(`should fails for existing ${field}`, (done) => {

Choose a reason for hiding this comment

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

'template literal syntax' is only available in ES6 (use 'esversion: 6').
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').


describe('Unique', () => {
uniqueFields.forEach((field) => {
const uniqueTest = Object.assign({}, helper.firstUser);

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

});

describe('Unique', () => {
uniqueFields.forEach((field) => {

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

];
const uniqueFields = ['userName', 'email'];
const defaultRoleId = 2;
let regularUser;

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

'password'
];
const uniqueFields = ['userName', 'email'];
const defaultRoleId = 2;

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

'email',
'password'
];
const uniqueFields = ['userName', 'email'];

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

const expect = chai.expect;

describe('User Model', () => {
const requiredFields = [

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).


const expect = chai.expect;

describe('User Model', () => {

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

Andela Developer added 3 commits August 18, 2017 19:53
- ensure document update successfully
- ensure document doesn't update data thats not specified for update
[Finishes #150296222]
describe('User Model', () => {
const uniqueFields = ['userName', 'email'];
const defaultRoleId = 2;
let regularUser;

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).


describe('User Model', () => {
const uniqueFields = ['userName', 'email'];
const defaultRoleId = 2;

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

import db from '../../models';
import helper from '../controllers/mockData';

const expect = chai.expect;

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@iakhator iakhator temporarily deployed to doksmanager October 3, 2017 15:20 Inactive
@iakhator iakhator temporarily deployed to doksmanager October 11, 2017 08:46 Inactive
@iakhator iakhator temporarily deployed to doksmanager January 26, 2018 14:30 Inactive
@iakhator iakhator temporarily deployed to doksmanager January 26, 2018 14:43 Inactive
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.

4 participants