-
Notifications
You must be signed in to change notification settings - Fork 9
BREAKING CHANGE: remove gender, telephone, username, position, placeholder, birthdate … #1126
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
Open
bolmsten
wants to merge
27
commits into
develop
Choose a base branch
from
SWAP-4778-View_Only_Profile
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
fffa7e6
Remove gender, telephone, username, position, placeholder, birthdate …
bolmsten 803b69f
fix for E2E tests
bolmsten 321f5ed
clean up tests from legacy fields
bolmsten c5b1ddd
Merge branch 'develop' of github.com:UserOfficeProject/user-office-co…
bolmsten 2b0e5ca
Update apps/frontend/src/components/user/UpdateUserInformation.tsx
bolmsten d192872
Remove old redeemCodes functionality
bolmsten 86d9cd2
Remove gender, telephone, username, position, placeholder, birthdate …
bolmsten 64c9c6e
fix for E2E tests
bolmsten 40bc957
clean up tests from legacy fields
bolmsten bcac694
Update apps/frontend/src/components/user/UpdateUserInformation.tsx
bolmsten 8300471
Remove old redeemCodes functionality
bolmsten 809e1d6
Merge branch 'SWAP-4778-View_Only_Profile' of github.com:UserOfficePr…
bolmsten 24d53b5
remove unused graphql call for email invite
bolmsten 3ae7b38
fix merge
bolmsten 80aba85
Fix E2E test after removing email invite
bolmsten 94c7b36
fix seeds by removing unused parameters
bolmsten 9aa98cb
remove seed file for redeem codes
bolmsten a939f89
fix E2E tests
bolmsten 6511609
update validation package
bolmsten a0fe7a9
Merge branch 'develop' of github.com:UserOfficeProject/user-office-co…
bolmsten d1f92a6
Fix E2E tests for removal of old people search
bolmsten 5943bcf
Change proposals E2E test to use the new people selector
bolmsten e61c6d5
Merge branch 'develop' of github.com:UserOfficeProject/user-office-co…
bolmsten 15c8e10
Removed aforementioned fields in more places
yoganandaness d41343f
Removed department from the user object
yoganandaness 1bf5c12
Merge branch 'develop' into SWAP-4778-View_Only_Profile
bolmsten c62ea6f
Merge branch 'develop' into SWAP-4778-View_Only_Profile
bolmsten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| -- 0181_RemoveUserColumns.sql | ||
| DO | ||
| $$ | ||
| BEGIN | ||
| IF register_patch( | ||
| '0182_RemoveUserColumns2.sql', | ||
| 'Fredrik Bolmsten', | ||
| 'Remove gender, telephone, username, position, placeholder, birthdate and department columns from users table', | ||
| '2025-05-12' | ||
| ) THEN | ||
| BEGIN | ||
| -- now drop the unwanted columns | ||
| ALTER TABLE public.users | ||
| DROP COLUMN username, | ||
| DROP COLUMN gender, | ||
| DROP COLUMN birthdate, | ||
| DROP COLUMN department, | ||
| DROP COLUMN position, | ||
| DROP COLUMN telephone; | ||
| END; | ||
| END IF; | ||
| END; | ||
| $$ | ||
| LANGUAGE plpgsql; | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,26 +3,25 @@ $DO$ | |
| BEGIN | ||
|
|
||
| INSERT INTO users( | ||
| user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, | ||
| telephone, created_at, updated_at, institution_id, placeholder) | ||
| VALUES (100, '', 'Instrument', 'Scientist1', 'instr.sci1', '-', 'instr.sci1.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', '[email protected]', '', NOW(), NOW(), 1, false); | ||
| user_id, user_title, firstname, lastname, preferredname, oidc_sub, oauth_refresh_token, email, created_at, updated_at, institution_id | ||
| ) | ||
| VALUES (100, '', 'Instrument', 'Scientist1', '-', 'instr.sci1.oauthsub', 'dummy-refresh-token', '[email protected]', NOW(), NOW(), 1); | ||
|
|
||
| INSERT INTO users( | ||
| user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, | ||
| telephone, created_at, updated_at, institution_id, placeholder) | ||
| VALUES (101, '', 'Instrument', 'Scientist2', 'instr.sci2', '-', 'instr.sci2.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', '[email protected]', '', NOW(), NOW(), 1, false); | ||
| user_id, user_title, firstname, lastname, preferredname, oidc_sub, oauth_refresh_token, email, created_at, updated_at, institution_id | ||
| ) | ||
| VALUES (101, '', 'Instrument', 'Scientist2', '-', 'instr.sci2.oauthsub', 'dummy-refresh-token', '[email protected]', NOW(), NOW(), 1); | ||
|
|
||
| -- user account with every roles except instrument scientist and user officer | ||
| INSERT INTO users( | ||
| user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, | ||
| telephone, created_at, updated_at, institution_id, placeholder) | ||
| VALUES (102, '', 'Not', 'Scientist', 'not.instr.sci', '-', 'not.instr.sci.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', '[email protected]', '', NOW(), NOW(), 1, false); | ||
| user_id, user_title, firstname, lastname, preferredname, oidc_sub, oauth_refresh_token, email, created_at, updated_at, institution_id | ||
| ) | ||
| VALUES (102, '', 'Not', 'Scientist', '-', 'not.instr.sci.oauthsub', 'dummy-refresh-token', '[email protected]', NOW(), NOW(), 1); | ||
|
|
||
| -- user account with experiment safety reviewer | ||
| INSERT INTO users( | ||
| user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, | ||
| telephone, created_at, updated_at, institution_id, placeholder) | ||
| VALUES (103, '', 'Experiment', 'Safety', 'experiment.safety', '-', 'experiment.safety.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', '[email protected]', '', NOW(), NOW(), 1, false); | ||
| user_id, user_title, firstname, lastname, preferredname, oidc_sub, oauth_refresh_token, email, created_at, updated_at, institution_id) | ||
| VALUES (103, '', 'Experiment', 'Safety', 'experiment.safety', 'experiment.safety.oauthsub', 'dummy-refresh-token', '[email protected]', NOW(), NOW(), 1); | ||
|
|
||
| INSERT INTO role_user( | ||
| role_id, user_id) | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
suggestion: No need for the numbers, they might go easily out of sync with the file name