Skip to content

[WPB-17534] user groups: getGroups, getGroupsForUser #4571

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

Draft
wants to merge 96 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
c55077d
Introduce UserGroupSubsystem.
fisx Apr 16, 2025
5a93932
Cleanup cabal file and test/unit/Main.hs
fisx Apr 16, 2025
ca90f4a
Make first test pass.
fisx Apr 16, 2025
95127b3
regen default.nix
fisx Apr 16, 2025
59edab5
simplify test.
fisx Apr 16, 2025
63d391d
Implement pagination interface.
fisx Apr 16, 2025
448160f
Test & implement group name update.
fisx Apr 16, 2025
b28588a
Test & implement group deletion.
fisx Apr 16, 2025
97c9a9d
Test & implement user addition & removal.
fisx Apr 16, 2025
7f1acbd
Fix wire-subsystems.cabal.
fisx Apr 16, 2025
1d77edd
rm hspec focus.
fisx Apr 16, 2025
1b9ce3c
Changelog.
fisx Apr 16, 2025
b1b120c
[drive-by] Make `make sanitize-pr` more exhaustive.
fisx Apr 16, 2025
41f61e5
Work-around mysteriously missing -XImportQualifiedPost.
fisx Apr 16, 2025
8d96baa
typo
fisx Apr 16, 2025
83ec866
Run postgresql in docker and add psql to dev env
akshaymankar Apr 17, 2025
3868882
Add psql target to Makefile.
fisx Apr 17, 2025
2956b42
TODO
fisx Apr 17, 2025
837a7c5
POSTGRES!!!!!!111!one!
akshaymankar Apr 17, 2025
73e4264
UserGroup: Use Vectors to avoid too much translation, cleanup store code
akshaymankar Apr 23, 2025
4d83ab5
Postgres migrations and use latest hasql
akshaymankar Apr 23, 2025
0dffad9
Use latest hasql
akshaymankar Apr 24, 2025
eac5be8
brig: Configure postgresql
akshaymankar Apr 24, 2025
08ffa11
ModService: Reduce brig logs
akshaymankar Apr 24, 2025
d2ed802
Script to initialize all the DBs
akshaymankar Apr 24, 2025
896168c
Wire.PostgersMigrations: Throw error when a migration fails
akshaymankar Apr 29, 2025
1426cd4
UserGroupSubsystem: Refine and keep constructors for getting and crea…
akshaymankar Apr 29, 2025
0660577
brig: Allow only running postgres migrations with option to reset schema
akshaymankar Apr 29, 2025
8bd8951
Makefile/db-reset: Also reset postgres
akshaymankar Apr 29, 2025
7c9563b
Makefile/db-migrate: Add note saying why we don't migrate postgres
akshaymankar Apr 29, 2025
bfb63e7
GalleyAPIAccess/mock: Allow specifying multiple team members as initi…
akshaymankar Apr 30, 2025
b585516
UserGroupSubsystem.InterpreterSpec: Add basic test for create user group
akshaymankar Apr 30, 2025
cd0d792
UserGroupSubsystem: Implement retrieving user groups
akshaymankar Apr 30, 2025
f72d128
Migrations: Make (team_id, id) the primary key of user_group table
akshaymankar Apr 30, 2025
0bbd162
Remove teamId from UserGroup as it is not really required by anything
akshaymankar Apr 30, 2025
0db9595
Makefile: Force compilation on reset
akshaymankar Apr 30, 2025
fc42ba3
brig: Implement create and get user group
akshaymankar Apr 30, 2025
a8208a9
[drive-by] clean up nix files.
fisx May 2, 2025
ee1a246
Changelog.
fisx Apr 16, 2025
2528d73
Aeson instances for user group data types + golden, roundtrip tests.
fisx Apr 16, 2025
f3e0eda
Public api skeleton (with undefined handlers).
fisx Apr 16, 2025
a683080
Smoke tests for user group public api in /integration.
fisx Apr 16, 2025
5502828
Add another TODO.
fisx Apr 16, 2025
0035b1b
fix issues due to merge
battermann May 2, 2025
36842e6
fix more merge stuff.
fisx May 2, 2025
a384b29
Access control for getUserGroup.
fisx May 2, 2025
a360c1d
add TODO; fix ghc warnings.
fisx May 3, 2025
41e99c3
Complete UserGroupStore in-mem-interpreter.
fisx May 3, 2025
918e36e
UserGroupSubsystem interface and api handlers.
fisx May 3, 2025
c50fc5f
Fixup: use UserGroupId in UserGroup{Subsystem,Store} interface
fisx May 3, 2025
0a2474b
Unit tests for UserGroupSubsystem [WIP].
fisx May 3, 2025
45acd5e
Re-add createdAt to UserGroup; return UserGroup from create.
fisx May 5, 2025
a4541a9
UserGroupSubsystem unit tests [wip]
fisx May 5, 2025
2507838
test gropu not found
battermann May 5, 2025
b83314d
wip: implement get user groups
battermann May 5, 2025
d595c26
wip
fisx May 5, 2025
3213cf1
Remove all user group actions except create, get.
fisx May 6, 2025
d3eea57
make sanitize-pr
fisx May 6, 2025
fd83d90
Update haddocks for ManagedBy.
fisx May 6, 2025
50d1bc0
Make user group name ranged.
fisx May 6, 2025
2371350
remove unhelpful TODO.
fisx May 6, 2025
3fa1599
in case of a 500 error code replace error message
battermann May 6, 2025
f3992a5
fix migration
battermann May 6, 2025
4c8f33d
typos
battermann May 6, 2025
a6d13e0
error handling for postgres interpreters
battermann May 6, 2025
0898cbf
fix postgres statements
battermann May 6, 2025
a83888f
cleanup.
fisx May 6, 2025
e056288
added nix package
battermann May 6, 2025
34b9114
get users more efficiently
battermann May 6, 2025
a0a84d6
renamed mockstate to inmemstate
battermann May 7, 2025
71637f7
updated changelogs
battermann May 7, 2025
8fa650c
postgres helm stuff
battermann May 7, 2025
7cdf489
added bitnami repo
battermann May 7, 2025
c6f769b
helm repo add bitnami in setup script
battermann May 8, 2025
73c397a
set default file permissions for brig secrets
battermann May 8, 2025
6e60c42
Revert "set default file permissions for brig secrets"
battermann May 8, 2025
e14a4b3
added comment on .pgpass file permissions
battermann May 8, 2025
007f5d4
workaround for permission issue with pg passfile
battermann May 8, 2025
d16d1a0
fix values for posrgres chart
battermann May 8, 2025
4201de6
postrgesql helm config
battermann May 8, 2025
9e75c24
another try
battermann May 8, 2025
2e5b5bb
wip: create and send event for new user group
battermann May 9, 2025
023e428
unit test for notifications
battermann May 9, 2025
180f60a
integration test for notifications
battermann May 9, 2025
493f265
fix user event
battermann May 9, 2025
81044c9
internal galley endpoint to get team admins
battermann May 9, 2025
eb2ca99
add get team admins to galley API access
battermann May 9, 2025
8cb239c
make unit test pass
battermann May 9, 2025
12975bc
fix integration test
battermann May 9, 2025
eea1685
fix event
battermann May 9, 2025
05aa63c
clean up and format
battermann May 9, 2025
7dda489
fix cargohold test
battermann May 9, 2025
c74e364
clean up
battermann May 9, 2025
43ba624
rename pgPassfile to pgPassword
battermann May 12, 2025
1771be6
Add rest of the UserGroup api. [wip]
fisx May 6, 2025
e762830
Add getUserGroups, getUserGroupsForUsers everywhere [wip]
fisx 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
regen default.nix
  • Loading branch information
fisx committed May 6, 2025
commit 95127b33642e22f9261ec6b6944251dfc7362425
54 changes: 48 additions & 6 deletions libs/wire-subsystems/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@
, mime-mail
, network
, network-conduit-tls
, pipes
, polysemy
, polysemy-plugin
, polysemy-time
, polysemy-wire-zoo
, postie
, prometheus-client
, QuickCheck
, quickcheck-instances
Expand All @@ -76,7 +74,6 @@
, sodium-crypto-sign
, statistics
, stomp-queue
, streaming-commons
, string-conversions
, template
, text
Expand Down Expand Up @@ -194,49 +191,94 @@ mkDerivation {
];
testHaskellDepends = [
aeson
aeson-pretty
amazonka
amazonka-core
amazonka-ses
amqp
async
attoparsec
base
base16-bytestring
base64-bytestring
bilge
bloodhound
bytestring
bytestring-conversion
case-insensitive
cassandra-util
conduit
containers
cql
crypton
currency-codes
data-default
data-timeout
email-validate
errors
exceptions
extended
extra
hashable
HaskellNet
HaskellNet-SSL
hex
HsOpenSSL
hspec
html-entities
http-client
http-types
http2-manager
imports
iproute
iso639
lens
lrucaching
memory
mime
mime-mail
network
pipes
network-conduit-tls
polysemy
polysemy-plugin
polysemy-time
polysemy-wire-zoo
postie
prometheus-client
QuickCheck
quickcheck-instances
random
resource-pool
resourcet
retry
saml2-web-sso
schema-profunctor
scientific
servant
servant-client-core
sodium-crypto-sign
streaming-commons
statistics
stomp-queue
string-conversions
template
text
text-icu-translit
time
time-out
time-units
tinylog
token-bucket
transformers
types-common
unliftio
unordered-containers
uri-bytestring
uuid
vector
wai-utilities
wire-api
wire-api-federation
wire-otel
witherable
zauth
];
testToolDepends = [ hspec-discover ];
Expand Down