-
Notifications
You must be signed in to change notification settings - Fork 15
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
Created component for editing account settings #627
Created component for editing account settings #627
Conversation
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.
Thanks for this @BenjaminCharmes! Looks good so far, just a couple of comments on the API endpoints:
f6ed14e
to
c7f3838
Compare
c7f3838
to
9fe501b
Compare
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.
Nearly finished, as discussed couple of things remain:
- Show and update contact email
- Potentially allow empty email addresses to mean -> delete my email address (set email to None in db)
- Update route to handle providing both display name and contact email
- Show GitHub username (and write ORCID so its ready in future)
- Test authentication
Everything should be working now, to sum up:
|
f36b7c5
to
b3925e7
Compare
For some reason all the e2e tests are failing here @BenjaminCharmes, would you be able to take a look when you get a chance before we merge? |
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.
Looks great! Nice clean code. Just two little suggestions in the js.
aaf77e0
to
bb2b1fd
Compare
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.
Just a couple more requests then this is good to go!
Removed the 'disabled' class from the account settings link in LoginDetails Added logic for opening the editAccountSettings modal Added a saveUser function to update display_name Created users.py in pydatalab route to update users [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Updated EditAccountSettingsModal with backend Add update:modalValue to close on submit Update pydatalab/pydatalab/routes/v0_1/users.py Co-authored-by: Matthew Evans <[email protected]> [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Added store and and API endpoint [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Last change: Replace orcid, add contact_email, show github username [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Remove .them in the submitForm Modification to e2e/sampleTablePage.cy test failing due to duplicate name entry Modification to e2e/sampleTablePage.cy test failing due to duplicate submit button Modification on e2e test failing due to duplicate submit button Update cypress commands createSample to selects right input Same for e2e/editPage.cy Same for e2e/batchSampleFeature.cy Update findByLabelText for name inside a sample Wrong modification using id rather than findBy
Co-authored-by: Matthew Evans <[email protected]>
Replace "Login via ORCID" with "Connect your ORCiD" Co-authored-by: Matthew Evans <[email protected]> [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Replace "Login via GitHub" with "Connect your GitHub account" Co-authored-by: Matthew Evans <[email protected]> Replace "account-name" with "account-email" Co-authored-by: Matthew Evans <[email protected]>
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Fix my own linting error [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Update webapp/src/server_fetch_utils.js
a8ec750
to
095f0e3
Compare
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.
Thank you @BenjaminCharmes!
* Created component for editing account settings Removed the 'disabled' class from the account settings link in LoginDetails Added logic for opening the editAccountSettings modal Added a saveUser function to update display_name Created users.py in pydatalab route to update users [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Updated EditAccountSettingsModal with backend Add update:modalValue to close on submit Update pydatalab/pydatalab/routes/v0_1/users.py Co-authored-by: Matthew Evans <[email protected]> [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Added store and and API endpoint [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Last change: Replace orcid, add contact_email, show github username [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Remove .them in the submitForm Modification to e2e/sampleTablePage.cy test failing due to duplicate name entry Modification to e2e/sampleTablePage.cy test failing due to duplicate submit button Modification on e2e test failing due to duplicate submit button Update cypress commands createSample to selects right input Same for e2e/editPage.cy Same for e2e/batchSampleFeature.cy Update findByLabelText for name inside a sample Wrong modification using id rather than findBy * Update error details in save_user route Co-authored-by: Matthew Evans <[email protected]> * Code review Replace "Login via ORCID" with "Connect your ORCiD" Co-authored-by: Matthew Evans <[email protected]> [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Replace "Login via GitHub" with "Connect your GitHub account" Co-authored-by: Matthew Evans <[email protected]> Replace "account-name" with "account-email" Co-authored-by: Matthew Evans <[email protected]> * Update method for processing data to update user * Final tweaks from code review [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Fix my own linting error [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Update webapp/src/server_fetch_utils.js --------- Co-authored-by: Matthew Evans <[email protected]>
Working:
display_name
display_name
Issue to fix:
When closing the form without submitting but modifying the display_name, it'll keep the modification in the form until page get refreshedWhen submitting, the form doesn't close and the new display_name need the page to be refreshed manually to be displayed correctlyCloses #623