Skip to content

Conversation

@rashidsp
Copy link
Contributor

@rashidsp rashidsp commented Nov 15, 2018

Summary

  • Allow empty user ID in all APIs.
  • Added/Updated unit tests.

if (strlen($userId) == 0) {
$this->_logger->log(Logger::DEBUG, 'User ID is invalid');
// check for empty string user ID
if (!is_string($userId)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we are not using validateInputs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@msohailhussain Addressed.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

lgtm

self::USER_ID => $userId
]
)
) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This indentation seems weird to me. Perhaps we can collapse this into the previous line so we'll have )) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed.

self::USER_ID => $userId
]
)
) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here!

@mikeproeng37 mikeproeng37 merged commit 5efdd3f into master Nov 27, 2018
@oakbani oakbani deleted the rashid/empty-userid-as-valid branch November 28, 2018 05:05
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