-
Notifications
You must be signed in to change notification settings - Fork 334
Add postgres interpreter for UserStore #4951
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
akshaymankar
wants to merge
22
commits into
develop
Choose a base branch
from
user-pg-migration
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
22 commits
Select commit
Hold shift + click to select a range
b5f6632
UserStore.Postgres: Implement the interpreter for UserStore
akshaymankar 9bfd510
brig: Allow selecting postgres storage for user
akshaymankar 4518e4c
UserStore.Postgres: Allow getting deleted users
akshaymankar fdad35e
UserStore.Postgres: Make sure lookupStatus returns Deleted for delete…
akshaymankar e5a1a12
UserStore.Postgres: Makes no sense to say a deleted user is activated
akshaymankar a58c8c9
UserStore.Postgres: Keep track of team id of a deleted user
akshaymankar 857f175
UserStore.Postgres: Remove TODOs about making things work for deleted…
akshaymankar 2370c53
Test 6 letter passwords in unit tests
akshaymankar 06b7f64
Fix queries for service user lookup
akshaymankar 234a52d
tab -> spaces
akshaymankar de9cad6
docs and changelog
akshaymankar 9d153e9
More fixes for queries
akshaymankar b459d45
Use serializable transaction to update handle
akshaymankar 5d5afe6
Typos and better words
akshaymankar 389ae24
hlint and fix import
akshaymankar 846428f
background-worker.integration.yaml: Add postgresMigration settings back
akshaymankar e28cbfd
UserStore.Postgres: Log when inconsistence is found between wire_user…
akshaymankar 0c6f33a
UserStore.Postgres: Reduce scope of a statement only used in one impl
akshaymankar 589f622
UserStore.Postgres: select password as the correct type
akshaymankar 198b9dd
integration: Add assertions for updates to actually happen, add some …
akshaymankar d172ef5
UserStore.Postgres: Correctly update locale
akshaymankar 50fc241
WIP
akshaymankar 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| Allow storing user data in PostgreSQL. | ||
|
|
||
| This is currently not the default and is experimental. The migration path from Cassandra is yet to be implemented. | ||
|
|
||
| However, new installations can use this by configuring the wire-server Helm chart like this: | ||
|
|
||
| ```yaml | ||
| galley: | ||
| config: | ||
| postgresqlMigration: | ||
| user: postgresql | ||
| ``` | ||
|
|
||
| (##) |
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
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.
Uh oh!
There was an error while loading. Please reload this page.