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

#150437771 implement feedback from scorecard 2 #23

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from

Conversation

joel-ace
Copy link
Owner

@joel-ace joel-ace commented Sep 5, 2017

What does this PR do?

This PR improves code quality and implements the feedback gotten from second scorecard

Description of Task to be completed?

Nil

How should this be manually tested?

Nil

Any background context you want to provide?

This is an implementation of feedback gotten from scorecard.

What are the relevant pivotal tracker stories?

Implement feedback from score card

Screenshots (if appropriate)

Nil

Questions:

Nil

add max-len to eslin config and ensured no line wen above 80
abstract and create function to check if query result is empty and return error message
@coveralls
Copy link

Coverage Status

Coverage increased (+2.3%) to 90.152% when pulling 3c2d099 on chore/150437771/implement-feedback-from-scorecard-2 into 8492577 on staging.

use proper naming
allow users search for other users and aadmin
@coveralls
Copy link

Coverage Status

Coverage increased (+2.3%) to 90.152% when pulling f726e0f on chore/150437771/implement-feedback-from-scorecard-2 into 8492577 on staging.

);
done();
});
});

Choose a reason for hiding this comment

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

Expected a newline before ')' function-paren-newline

expect(res.status).to.equal(404);
expect(res.body.message).to.equal(
'user does not exist or has been previously deleted'
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

.set({ Authorization: adminToken })
.end((err, res) => {
expect(res.status).to.equal(404);
expect(res.body.message).to.equal(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

);
done();
});
});

Choose a reason for hiding this comment

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

Expected a newline before ')' function-paren-newline

expect(res.status).to.equal(401);
expect(res.body.message).to.equal(
'user making this request cannot be authenticated'
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

.end((err, res) => {
expect(res.status).to.equal(404);
expect(res.body.message).to.equal('user does not exist or has been previously deleted');
expect(res.body.message).to.equal(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

expect(res.body.documents[0].access).to.equal('role');
done();
});
});

Choose a reason for hiding this comment

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

Expected a newline before ')' function-paren-newline

expect(res.body.documents[0].access).to.equal('role');
expect(res.body.message).to.equal(
'No document associated with this user'
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

expect(res.body).include.keys(['documents']);
expect(res.body.documents[0].title).to.equal('A new title');
expect(res.body.documents[0].access).to.equal('role');
expect(res.body.message).to.equal(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

);
done();
});
});

Choose a reason for hiding this comment

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

Expected a newline before ')' function-paren-newline

@coveralls
Copy link

Coverage Status

Coverage increased (+2.3%) to 90.152% when pulling 2fd9242 on chore/150437771/implement-feedback-from-scorecard-2 into 8492577 on staging.

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