-
Notifications
You must be signed in to change notification settings - Fork 2
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
retrieve current user information and display it. #118
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
we create a userSlice that makes use of the usersAPI to store the user information in the state
dispatch call needs to be mocked not to be considered a plain action and for that we used thunk
reset user state once the button has been clicked. Update nav test js
blankdots
force-pushed
the
feature/user-login
branch
from
December 23, 2020 12:26
9b6c905
to
8cf296a
Compare
blankdots
force-pushed
the
feature/user-login
branch
from
December 28, 2020 11:32
89dcfcf
to
af41f50
Compare
we mock the user using the mockauth API and verify the name is set accordingly to fixtures
this will force to keep master branch in sync
blankdots
force-pushed
the
feature/user-login
branch
from
December 28, 2020 11:47
af41f50
to
503078a
Compare
blankdots
requested review from
hannyle,
saulipurhonen and
lilachic
and removed request for
hannyle
December 28, 2020 12:18
hannyle
approved these changes
Dec 28, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Login and get user info works fine for me
- Logout also works
will merge as is and if anything comes up will create a hotfix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
we create a userSlice that makes use of the usersAPI to store the user information in the state
Related issues
Fixes #11
Type of change
Changes Made
current
user and display thename
Error: Actions must be plain objects. Use custom middleware for async actions.
by addingthunk
develop
branch of backendcypress
failureTesting
Mentions
needs the
develop
branch of backendmade the integration tests with cypress follow the
develop
branch, not sure the right choice any opinions ?