Skip to content

Make CreatedUser take the id from different properties#245

Merged
lbalmaceda merged 1 commit intomasterfrom
user-id-mapping
Apr 13, 2020
Merged

Make CreatedUser take the id from different properties#245
lbalmaceda merged 1 commit intomasterfrom
user-id-mapping

Conversation

@lbalmaceda
Copy link
Copy Markdown
Contributor

Changes

When a new user is created via the signup endpoint, the user id value could be returned in different properties, depending on the connection where this user was created on. The properties include _id (default), id (custom DB connections), and user_id (custom external DB connections).

Luckily, this was easy to solve using Jackson annotations for providing alternative aliases.

References

Fixes #176.

Testing

Tests were added to ensure there was no introduced breaking change in behavior.

  • This change adds test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@lbalmaceda lbalmaceda requested a review from a team April 9, 2020 16:36
@lbalmaceda lbalmaceda added this to the v1-Next milestone Apr 9, 2020
@jimmyjames jimmyjames requested review from jimmyjames and removed request for a team April 10, 2020 16:09
Copy link
Copy Markdown
Contributor

@jimmyjames jimmyjames left a comment

Choose a reason for hiding this comment

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

👍 for adding tests around CreatedUser!

@lbalmaceda lbalmaceda merged commit 1ea0644 into master Apr 13, 2020
@lbalmaceda lbalmaceda deleted the user-id-mapping branch April 13, 2020 17:11
@jimmyjames jimmyjames modified the milestones: v1-Next, 1.16.0 Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Created user does not return a user id

2 participants