-
Notifications
You must be signed in to change notification settings - Fork 334
WPB-20728 background job for user group to channel association #4797
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
battermann
wants to merge
40
commits into
develop
Choose a base branch
from
WPB-20728-background-job-for-user-group-to-channel-association
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.
Draft
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
909912b
WPB-19712: Allow team admin to update the channels to user-group asso…
blackheaven b4af1e1
WPB-19712: Allow team admin to update the channels to user-group asso…
blackheaven 05cb59e
job types
battermann 2af71d8
job consumer scaffold
battermann d1b656b
implement basic handler for jobs
battermann 0638cd3
clean up
battermann c7903c7
refactor: some clean ups
blackheaven 0954e7f
feat: add jobs defiinitions, fix schema and validate settings
blackheaven 42f8567
feat: add Effect and Interpreters
blackheaven 9a54bf0
update cabal and nix dependencies
battermann f315a2a
moved and removed some code
battermann 66e322f
background job runner
battermann 9c0d7a9
split job publisher and runner
battermann aa19626
interpret job runner from background worker
battermann e53e152
config maps, helm charts, default values, docs
battermann 49f443e
reduce invalid message sleep
battermann ed353a2
fix linting issue
battermann 4b83b63
fix arbitrary instance of request id
battermann 6053f5d
wip
battermann ac34b18
fix warnings in background worker tests
battermann ed0aac7
implement sync user group job
battermann a09bc11
fix: rebase
blackheaven 4dcbb28
feat: call the jobs, run the jobs, add config options
blackheaven c0c61ef
fix: hlint
blackheaven c0f8a25
fix: nix files
blackheaven 975475b
fix: config in yamls
blackheaven aca0036
refactor: move publish from wire-api to wire-subsystem
blackheaven 86b8fc9
fix: k8s configs
blackheaven 26c4936
fix: k8s configs
blackheaven cc46c4f
fix: k8s configs
blackheaven f3666c6
fix: k8s config
battermann 3b719fe
refactor
battermann e9252ad
missing wiring of postgres config in background-worker
battermann fb9ce89
removed todos
battermann e967a41
configure brig cassandra client for background worker
battermann b040bda
fix testTemporaryQueuesAreDeletedAfterUse test
battermann 583b878
wip: debugging bg jobs
battermann e702d0d
fix: backgroung timeout second translation
blackheaven cc07944
fix: integration tests background-worker postgresql params
blackheaven aad7bca
fix fetching the channels for a group
battermann 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 @@ | ||
Implement `channels` and `channelsCount` in `user-groups` endpoints. |
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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
Note that background-worker depends on some provisioned storage, namely: | ||
Note that background-worker depends on some provisioned storage/services, namely: | ||
|
||
- rabbitmq | ||
- postgresql | ||
- cassandra (two clusters) | ||
|
||
PostgreSQL configuration | ||
- Set connection parameters under `config.postgresql` (libpq keywords: `host`, `port`, `user`, `dbname`, etc.). | ||
- Provide the password via `secrets.pgPassword`; it is mounted at `/etc/wire/background-worker/secrets/pgPassword` and referenced from the configmap. | ||
|
||
Cassandra configuration | ||
- Background-worker connects to two Cassandra clusters: | ||
- `config.cassandra` (keyspace: `gundeck`) for the dead user notification watcher. | ||
- `config.cassandraBrig` (keyspace: `brig`) for the user store. | ||
- TLS may be configured via either a reference (`tlsCaSecretRef`) or inline CA (`tlsCa`) for each cluster. Secrets mount under: | ||
- `/etc/wire/background-worker/cassandra-gundeck` | ||
- `/etc/wire/background-worker/cassandra-brig` | ||
|
||
These are dealt with independently from this chart. |
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.
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.
isn't this something we want to define per job type? deleting users takes less time than scanning a huge table for inconsistencies.
i have little context, though. maybe i'm thinking ahead to far.