Skip to content

[WPB-16870] introduce user groups subsystem #4545

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

Merged
merged 94 commits into from
May 21, 2025
Merged
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
b3f7861
Introduce UserGroupSubsystem.
fisx Apr 16, 2025
37468e0
Cleanup cabal file and test/unit/Main.hs
fisx Apr 16, 2025
1a83eba
Make first test pass.
fisx Apr 16, 2025
5517394
regen default.nix
fisx Apr 16, 2025
96e8667
simplify test.
fisx Apr 16, 2025
514181b
Implement pagination interface.
fisx Apr 16, 2025
2d2c6b8
Test & implement group name update.
fisx Apr 16, 2025
de4d1ed
Test & implement group deletion.
fisx Apr 16, 2025
2dcdd75
Test & implement user addition & removal.
fisx Apr 16, 2025
d959e71
Fix wire-subsystems.cabal.
fisx Apr 16, 2025
61c2e29
rm hspec focus.
fisx Apr 16, 2025
8083a98
Changelog.
fisx Apr 16, 2025
cb302f3
[drive-by] Make `make sanitize-pr` more exhaustive.
fisx Apr 16, 2025
c137fe4
Work-around mysteriously missing -XImportQualifiedPost.
fisx Apr 16, 2025
ca9f291
typo
fisx Apr 16, 2025
dc5b13c
Run postgresql in docker and add psql to dev env
akshaymankar Apr 17, 2025
bc13f4f
Add psql target to Makefile.
fisx Apr 17, 2025
a0de966
TODO
fisx Apr 17, 2025
f13c7d4
POSTGRES!!!!!!111!one!
akshaymankar Apr 17, 2025
66e34dc
UserGroup: Use Vectors to avoid too much translation, cleanup store code
akshaymankar Apr 23, 2025
d357cd3
Postgres migrations and use latest hasql
akshaymankar Apr 23, 2025
421db83
Use latest hasql
akshaymankar Apr 24, 2025
472f79e
brig: Configure postgresql
akshaymankar Apr 24, 2025
978f5c9
ModService: Reduce brig logs
akshaymankar Apr 24, 2025
22e0b4c
Script to initialize all the DBs
akshaymankar Apr 24, 2025
23f9e60
Wire.PostgersMigrations: Throw error when a migration fails
akshaymankar Apr 29, 2025
b8f3178
UserGroupSubsystem: Refine and keep constructors for getting and crea…
akshaymankar Apr 29, 2025
99e0a68
brig: Allow only running postgres migrations with option to reset schema
akshaymankar Apr 29, 2025
6908468
Makefile/db-reset: Also reset postgres
akshaymankar Apr 29, 2025
0b97242
Makefile/db-migrate: Add note saying why we don't migrate postgres
akshaymankar Apr 29, 2025
5980c41
GalleyAPIAccess/mock: Allow specifying multiple team members as initi…
akshaymankar Apr 30, 2025
c33b96e
UserGroupSubsystem.InterpreterSpec: Add basic test for create user group
akshaymankar Apr 30, 2025
976cad6
UserGroupSubsystem: Implement retrieving user groups
akshaymankar Apr 30, 2025
a3d09d8
Migrations: Make (team_id, id) the primary key of user_group table
akshaymankar Apr 30, 2025
0358bf0
Remove teamId from UserGroup as it is not really required by anything
akshaymankar Apr 30, 2025
a745e40
Makefile: Force compilation on reset
akshaymankar Apr 30, 2025
813545f
brig: Implement create and get user group
akshaymankar Apr 30, 2025
a83067b
[drive-by] clean up nix files.
fisx May 2, 2025
81bf16c
Changelog.
fisx Apr 16, 2025
d918db8
Aeson instances for user group data types + golden, roundtrip tests.
fisx Apr 16, 2025
e45098c
Public api skeleton (with undefined handlers).
fisx Apr 16, 2025
69ae5a1
Smoke tests for user group public api in /integration.
fisx Apr 16, 2025
cc29e13
Add another TODO.
fisx Apr 16, 2025
c1226ae
fix issues due to merge
battermann May 2, 2025
988142b
fix more merge stuff.
fisx May 2, 2025
1111c44
Access control for getUserGroup.
fisx May 2, 2025
c624cc5
add TODO; fix ghc warnings.
fisx May 3, 2025
db5a761
Complete UserGroupStore in-mem-interpreter.
fisx May 3, 2025
00d3b24
UserGroupSubsystem interface and api handlers.
fisx May 3, 2025
c000aa3
Fixup: use UserGroupId in UserGroup{Subsystem,Store} interface
fisx May 3, 2025
bcfdf56
Unit tests for UserGroupSubsystem [WIP].
fisx May 3, 2025
1873d20
Re-add createdAt to UserGroup; return UserGroup from create.
fisx May 5, 2025
23a8df2
UserGroupSubsystem unit tests [wip]
fisx May 5, 2025
150fdb2
test gropu not found
battermann May 5, 2025
c13efd3
wip: implement get user groups
battermann May 5, 2025
6a034c6
wip
fisx May 5, 2025
452574e
Remove all user group actions except create, get.
fisx May 6, 2025
d6abf07
make sanitize-pr
fisx May 6, 2025
914a45e
Update haddocks for ManagedBy.
fisx May 6, 2025
8aac4cc
Make user group name ranged.
fisx May 6, 2025
81168e7
remove unhelpful TODO.
fisx May 6, 2025
661e6c4
in case of a 500 error code replace error message
battermann May 6, 2025
3c4440e
fix migration
battermann May 6, 2025
49599e5
typos
battermann May 6, 2025
8aacba8
error handling for postgres interpreters
battermann May 6, 2025
e8c5e44
fix postgres statements
battermann May 6, 2025
cb4a41f
cleanup.
fisx May 6, 2025
f666dcb
added nix package
battermann May 6, 2025
e94bb8e
get users more efficiently
battermann May 6, 2025
cf33672
renamed mockstate to inmemstate
battermann May 7, 2025
8d0ccd4
updated changelogs
battermann May 7, 2025
d5669b6
postgres helm stuff
battermann May 7, 2025
e3f0c08
added bitnami repo
battermann May 7, 2025
045e7c8
helm repo add bitnami in setup script
battermann May 8, 2025
f56bf0d
set default file permissions for brig secrets
battermann May 8, 2025
1f06ca6
Revert "set default file permissions for brig secrets"
battermann May 8, 2025
74c5a5e
added comment on .pgpass file permissions
battermann May 8, 2025
3565abd
workaround for permission issue with pg passfile
battermann May 8, 2025
af2822a
fix values for posrgres chart
battermann May 8, 2025
cc8ddc0
postrgesql helm config
battermann May 8, 2025
2745ea4
another try
battermann May 8, 2025
5036b9f
wip: create and send event for new user group
battermann May 9, 2025
876e0dc
unit test for notifications
battermann May 9, 2025
563a1bd
integration test for notifications
battermann May 9, 2025
2df896b
fix user event
battermann May 9, 2025
b584aa3
internal galley endpoint to get team admins
battermann May 9, 2025
215663f
add get team admins to galley API access
battermann May 9, 2025
8c5e644
make unit test pass
battermann May 9, 2025
6fa7ac8
fix integration test
battermann May 9, 2025
2a72037
fix event
battermann May 9, 2025
4f0de8a
clean up and format
battermann May 9, 2025
a4e3ba7
fix cargohold test
battermann May 9, 2025
b78bd00
clean up
battermann May 9, 2025
446d703
rename pgPassfile to pgPassword
battermann May 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix values for posrgres chart
  • Loading branch information
battermann committed May 21, 2025
commit af2822a50f454c5f3dd560e5257ff6bb395c462c
6 changes: 4 additions & 2 deletions hack/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ releases:
chart: "bitnami/postgresql"
values:
- auth:
user: wire-server
postgresPassword: "posty-the-gres"
username: wire-server
password: "posty-the-gres"
primary:
initdb:
scripts:
Expand All @@ -191,8 +192,9 @@ releases:
chart: "bitnami/postgresql"
values:
- auth:
user: wire-server
postgresPassword: "posty-the-gres"
username: wire-server
password: "posty-the-gres"
primary:
initdb:
scripts:
Expand Down