-
Notifications
You must be signed in to change notification settings - Fork 27
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
🎨 Extends user table with username and first/second name for a user 🗃️ #5229
🎨 Extends user table with username and first/second name for a user 🗃️ #5229
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5229 +/- ##
========================================
- Coverage 87.4% 87.2% -0.2%
========================================
Files 1295 1295
Lines 53068 53066 -2
Branches 1162 1164 +2
========================================
- Hits 46382 46299 -83
- Misses 6436 6517 +81
Partials 250 250
Flags with carried forward coverage won't be shown. Click here to find out more.
|
c6f0dcf
to
657900e
Compare
...database/src/simcore_postgres_database/migration/versions/f9f9a650bf4b_new_user_name_cols.py
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/users.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_users.py
Outdated
Show resolved
Hide resolved
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.
Very nice! 🎉 Looking forward to seeing it in action.
A question/suggestion on how sharing can be improved thanks to this PR. Probably the following is more related to frontend part.
- when user A wants to share something with user B he sees the weird usernames (created from the email) we have now in the DB. Will it be possible to have here the Name Surname?
Edit: @pcrespov maybe you can link this issue as well: ITISFoundation/osparc-issues#1193
packages/postgres-database/src/simcore_postgres_database/models/users.py
Outdated
Show resolved
Hide resolved
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.
great thanks!
packages/postgres-database/src/simcore_postgres_database/utils_users.py
Outdated
Show resolved
Hide resolved
packages/pytest-simcore/src/pytest_simcore/helpers/rawdata_fakers.py
Outdated
Show resolved
Hide resolved
edbf1e2
to
e905d23
Compare
@elisabettai the problem we had until now is that we did not have a proper "username" concept but rather a composition of "guessed" first and last name. Only if the user would update its profile it would show in there. I mean This PR makes a clean separation and therefore, yes we could use either username or First+Last name in this list. I would suggest to do like github and other online tools where usernames are the default reference. Moreover in notes we can create automatically references by adding The problem with ITISFoundation/osparc-issues#1193 is that upon registration we do not know the first and last name of the user. I will add a separate PR to somehow get that info from the invitation but when the product has no required invitation the only option is to require it during registration |
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 the changes 👍
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!
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.
👍
27fa30e
to
ac12e4c
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.
Very cool! Added a few suggestions and questions. Sorry for the slow review.
ac12e4c
to
1b538a7
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Hi @pcrespov,
In sim4life.io (a product with invitation and where First Name and Last Name are mandatory):
|
What do these changes do?
Enhances
users
table by adding first/last name (previously encoded inname
column) and reusesname
to implement a proper "user name"'s unique identifier.@pcrespov
) and in the session cookieslogin
functionality (will be further decoupled in separate PRs)Related issue/s
address
,first_name
,last_name
and properuser_name
#5138How to test
packages/postgres-database/tests/test_users.py
master
pg datasetDev Checklist
DevOps Checklist