Skip to content
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

feat: sync user_company to CIO #2199

Merged
merged 6 commits into from
Sep 2, 2024
Merged

feat: sync user_company to CIO #2199

merged 6 commits into from
Sep 2, 2024

Conversation

rebelchris
Copy link
Contributor

Stream change: https://github.com/dailydotdev/streams/pull/37

Idea is that we listen to user_company and if a company link is found/changed we sync it to CIO.
We had to introduce a hack to use v2 of the CIO api as the official client doesn't expose it and we need it to insert company with attributes basically. (see one and two)

We might need to find a way to retro fix the couple companies we have now, but can happen later even. (or retrigger manually)

CIO side receives as such, which is nice because from there we can then target everyone at company x
Screenshot 2024-08-30 at 14 28 53

src/cio.ts Outdated Show resolved Hide resolved
src/common/typedPubsub.ts Outdated Show resolved Hide resolved
src/workers/cdc/primary.ts Outdated Show resolved Hide resolved
src/cio.ts Show resolved Hide resolved
rebelchris and others added 2 commits August 30, 2024 14:34
src/workers/userCompanyApprovedCio.ts Outdated Show resolved Hide resolved
@rebelchris rebelchris merged commit 8d39392 into main Sep 2, 2024
8 checks passed
@rebelchris rebelchris deleted the feat-user-company-cio branch September 2, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants