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

QuestDB + Cube.js + Reports #2424

Merged
merged 299 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
299 commits
Select commit Hold shift + click to select a range
a285c34
Remove Cube.js in emails worker
loicsaintroch May 2, 2024
b1dfe06
cleanup
May 3, 2024
5306a82
Merge branch 'feat/init-questdb' of github.com:CrowdDotDev/crowd.dev …
May 3, 2024
2c42285
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 3, 2024
e7778a9
conversation service fixed, a bunch of query fixes
May 3, 2024
6a8321d
Merge branch 'feat/init-questdb' of github.com:CrowdDotDev/crowd.dev …
May 3, 2024
68c3429
fixes
May 6, 2024
025a58c
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 7, 2024
2f0d741
conversations fixed
May 8, 2024
e97ad64
Merge branch 'feat/init-questdb' of github.com:CrowdDotDev/crowd.dev …
May 8, 2024
5737c6c
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 10, 2024
f2c248d
Upgrade to QuestDB client v3
loicsaintroch May 10, 2024
bec6d3f
Pass the whole activity to processActivity fixing delay
loicsaintroch May 10, 2024
f86e2cb
Fix QuestDB connection using pg protocol
loicsaintroch May 13, 2024
50ae203
fixes, active members query, last activity for member queries
May 13, 2024
cab368f
Merge branch 'feat/init-questdb' of github.com:CrowdDotDev/crowd.dev …
May 13, 2024
f11068b
fixes
May 13, 2024
9f372a1
fixes
May 13, 2024
f216650
more queries fixed
May 13, 2024
4eec1ac
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 14, 2024
8d62f61
fixes
May 14, 2024
c35b281
Merge branch 'feat/init-questdb' of github.com:CrowdDotDev/crowd.dev …
May 14, 2024
243bf4c
added back widgets.json file
May 20, 2024
e178bdf
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 21, 2024
530025f
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 22, 2024
e779fbd
Start deprecating Cube.js in workers
loicsaintroch May 22, 2024
6906f2a
Auto init QuestDB schema
loicsaintroch May 22, 2024
5ff3717
Merge branch 'crowd-linux' into feat/init-questdb
gaspergrom May 23, 2024
f645802
Modify dashboard chart display
gaspergrom May 23, 2024
7f2554f
Remove Cube.js, reports, widgets on the back-end
loicsaintroch May 23, 2024
3c5eb1f
Remove cube (#2420)
gaspergrom May 24, 2024
8ae95c3
Fix and improve queries for charts
loicsaintroch May 24, 2024
257a2e3
align sentiment to new format
gaspergrom May 24, 2024
3b00c53
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 24, 2024
ace459d
Create migrations for new org-segments table
sausage-todd May 7, 2024
c40e9e0
Add data-access-layer dependecy to search-sync-api
sausage-todd May 7, 2024
8e0a1a8
Prepare stuff for storing org aggregates in postgres
sausage-todd May 15, 2024
2f9877b
Remove trailing spaces
sausage-todd May 15, 2024
e4e0545
Sync org activities aggregates to postgres from questdb
sausage-todd May 15, 2024
6e98409
Query org data with aggregates from postgres
sausage-todd May 13, 2024
681f639
Fetch orgs from postgres for merge suggestion generation
sausage-todd May 19, 2024
dfcc165
Sync orgs to opensearch without segments
sausage-todd May 20, 2024
b4b0031
Cleanup code
sausage-todd May 20, 2024
ed80d56
Use new structure for querying orgs by id
sausage-todd May 27, 2024
b58eb78
Merge branch 'move-orgs-back-to-postgres-questdb' into feat/init-questdb
sausage-todd May 27, 2024
ad7cb50
Merge branch 'crowd-linux' into feat/init-questdb
May 30, 2024
8095481
fix
May 30, 2024
39246ff
lint fix
May 30, 2024
18b1fdb
Some fixes for activities and conversations
loicsaintroch May 30, 2024
9425f5c
Merge remote-tracking branch 'origin/feat/init-questdb' into feat/ini…
loicsaintroch May 30, 2024
9b9a2a0
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 31, 2024
559a214
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch May 31, 2024
cfe4622
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jun 6, 2024
7ac8527
Improvements and fixes for conversation queries
loicsaintroch Jun 6, 2024
532e1d5
Remove unused alerting library
loicsaintroch Jun 6, 2024
77eaa5f
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jun 6, 2024
9f64071
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jun 10, 2024
50b6e27
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jun 11, 2024
919a128
Merge branch 'crowd-linux' into feat/init-questdb
Jul 10, 2024
b82917b
crowd-linux merge
Jul 10, 2024
f136d2b
Merge branch 'crowd-linux' into feat/init-questdb
Jul 10, 2024
0a7ae0b
fixing member query
Jul 11, 2024
5344132
temp fix
Jul 12, 2024
2a8f39c
Merge branch 'crowd-linux' into feat/init-questdb
Jul 12, 2024
87825a5
init sync service fix
Jul 12, 2024
9453b89
small refactor
Jul 12, 2024
21cb18a
fixes for org indexing and active members endpoint
Jul 13, 2024
670237f
Add conditions for all columns before using ILP
loicsaintroch Jul 16, 2024
79191d4
Better check for contribution boolean
loicsaintroch Jul 16, 2024
107f7b1
Do not execute ilp.flush if no activities
loicsaintroch Jul 16, 2024
4dc8a4a
Lint
loicsaintroch Jul 16, 2024
67a870a
sql inserts for activities (WIP)
Jul 17, 2024
694738d
Upgrade to QuestDB 8.0.3 in Docker
loicsaintroch Jul 18, 2024
781d5ce
Remove ulimits for QuestDB
loicsaintroch Jul 18, 2024
9a3752d
wip
Jul 19, 2024
4d8275b
Merge branch 'crowd-linux' into feat/init-questdb
Jul 19, 2024
69ad11f
Merge of crowd-linux
Jul 22, 2024
207b89a
Merge branch 'crowd-linux' into feat/init-questdb
Jul 22, 2024
53cbb1f
Handle QuestDB ILP connection on non-localhost
loicsaintroch Jul 22, 2024
236bf36
fixed materialized view
Jul 22, 2024
3fc8675
bugfixes
Jul 22, 2024
47c1893
bugfixes
Jul 22, 2024
1180c3d
fixes
Jul 22, 2024
3b63bd3
fix for indexing orgs
Jul 23, 2024
6108f74
Populate activity with member
loicsaintroch Jul 23, 2024
219162f
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jul 23, 2024
c052f83
fix for indexing orgs and members
Jul 23, 2024
1543cd0
Merge branch 'feat/init-questdb' of github.com:CrowdDotDev/crowd.dev …
Jul 23, 2024
03c3cfc
Fixed lastActivity property when querying members.
Jul 23, 2024
43acf44
fix
Jul 23, 2024
34a5119
fix
Jul 23, 2024
3b7281a
Fix reach query filter
loicsaintroch Jul 23, 2024
31c06c3
Remove unused ILP key credntials
loicsaintroch Jul 24, 2024
353f6cb
Add SSL when using pg-wire
loicsaintroch Jul 24, 2024
f57abc9
Fix QuestDB query with SAMPLE BY and ORDER BY
loicsaintroch Jul 26, 2024
769a9b1
Set QuestDB idleTimeoutMillis
loicsaintroch Jul 26, 2024
b8ad6d9
Improve QuestDB env vars for clarity
loicsaintroch Jul 26, 2024
5cb30f7
Remove unused connection test/leak
loicsaintroch Jul 29, 2024
3d21ecc
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jul 29, 2024
e6cab17
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Jul 29, 2024
9fe6736
Lint front-end
loicsaintroch Jul 29, 2024
91b899f
Apply connection test/leak to PostgreSQL
loicsaintroch Jul 29, 2024
4d51354
Enclose column names in double quotes when needed
loicsaintroch Jul 29, 2024
3fe7c40
Fix order by query
loicsaintroch Jul 29, 2024
cfd70b0
Fix non-iterable arg.filter.and
loicsaintroch Jul 29, 2024
0cde3d2
Try with no process exit
loicsaintroch Jul 30, 2024
f28320b
Benchmark with ILP ingestion on staging
loicsaintroch Jul 31, 2024
14acad6
Benchmark ILP auto flush params
loicsaintroch Jul 31, 2024
c68ba35
Put QuestDB SQL connection error handling back
loicsaintroch Jul 31, 2024
39037a3
Try to fix parent id race condition
loicsaintroch Aug 1, 2024
6d664db
Try to fix parent id race condition
loicsaintroch Aug 1, 2024
1a0a9bf
Fix a few QuestDB queries
loicsaintroch Aug 1, 2024
627b438
Populate display object
loicsaintroch Aug 1, 2024
5b21ea3
Fix active members and organizations on overview
loicsaintroch Aug 1, 2024
82a7958
Revert 5b21ea38cf633b57a876df7e5cdf545e12b96002
loicsaintroch Aug 1, 2024
58bfa10
scaffold
garrrikkotua Aug 2, 2024
884c8a9
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Aug 6, 2024
1f4ec72
Fix people page after merge
loicsaintroch Aug 6, 2024
61b2d73
Enforce number type for QuestDB and Temporal data
loicsaintroch Aug 6, 2024
9abf404
oauth wip
garrrikkotua Aug 7, 2024
108f67a
connect wip
garrrikkotua Aug 8, 2024
9845d83
Improve QuestDB partitioning and auto flush logic
loicsaintroch Aug 9, 2024
d2e53e3
check subreddit existence check
garrrikkotua Jan 10, 2024
4ebacaa
working oauth
garrrikkotua Aug 9, 2024
e73f02f
wip
garrrikkotua Aug 9, 2024
85e0c4b
drawer wip
garrrikkotua Aug 12, 2024
83b56f7
wip integration code
garrrikkotua Aug 13, 2024
0568a5d
fix some types
garrrikkotua Aug 14, 2024
acdc1e8
wip integration logic
garrrikkotua Aug 15, 2024
2e3eeca
wip
garrrikkotua Aug 15, 2024
d50e8a4
wip
garrrikkotua Aug 16, 2024
155f4d2
fix mapping url
garrrikkotua Aug 19, 2024
f7f0ce1
wip
garrrikkotua Aug 20, 2024
da6b628
activity parsing
garrrikkotua Aug 21, 2024
f89e26f
rate limits and webhooks
garrrikkotua Aug 22, 2024
3a6a998
Fix identity to work with write transactions
gaspergrom Aug 6, 2024
22f4e74
Fix transaction on member identitites
gaspergrom Aug 6, 2024
6ed31f6
Fix transaction creation
gaspergrom Aug 6, 2024
ffd1f5e
Add transaction commits and rollbacks
gaspergrom Aug 6, 2024
59acc73
return only subproject segments in member profile (#2564)
skwowet Aug 7, 2024
240920a
wip oracle cloud
Aug 8, 2024
5e98cf9
wip oracle cloud
Aug 8, 2024
5f29871
wip oracle cloud github ci test
Aug 8, 2024
a5c2b45
wip oracle cloud github ci test
Aug 8, 2024
a287814
wip oracle cloud github ci test
Aug 8, 2024
69d316e
wip oracle cloud github ci test
Aug 8, 2024
9102062
wip oracle cloud github ci test
Aug 8, 2024
c51ebb5
wip oracle cloud github ci test
Aug 8, 2024
9092b90
wip oracle cloud github ci test
Aug 8, 2024
561874c
wip oracle cloud github ci test
Aug 8, 2024
b375560
Fix member unmerge transaction error (#2571)
skwowet Aug 9, 2024
fa33b98
Improve search sync perf (#2566)
sausage-todd Aug 9, 2024
9e00890
Improve organization and member update perf (#2567)
skwowet Aug 12, 2024
371a801
Endpoint to serve organizations across all segments (#2560)
skwowet Aug 12, 2024
c587f46
Organization optimizations (#2570)
gaspergrom Aug 13, 2024
211fdcb
Fix organization ordering
gaspergrom Aug 13, 2024
16156a7
Fix organization ordering
gaspergrom Aug 13, 2024
746f746
rm orgId from redis so that it's not processed again (#2575)
skwowet Aug 13, 2024
85e5524
Fix contributor title
gaspergrom Aug 13, 2024
cff35ba
Update lfx membership script (#2572)
joanagmaia Aug 13, 2024
b391bff
Fix job title in people list
gaspergrom Aug 14, 2024
eec1940
Organization add (#2573)
gaspergrom Aug 14, 2024
a3b274d
adjust the findById endpoint to show an org across all segments (#2577)
skwowet Aug 14, 2024
0d96fbd
Resilient and transparent org affiliation updates (#2576)
epipav Aug 15, 2024
fa48bb9
Organization identity editing (#2574)
gaspergrom Aug 17, 2024
8496276
sort member work experiences (#2578)
skwowet Aug 19, 2024
2352fee
Calculate sentiment for only subset of activity types (#2579)
epipav Aug 20, 2024
a0308bb
Improve current organization display in list (#2584)
joanagmaia Aug 20, 2024
ba44eea
Member sync fixes (#2587)
epipav Aug 21, 2024
08d0d2a
Prevent creating unknown date work experiences (#2583)
skwowet Aug 22, 2024
0342c07
List loading optimizations and fixes (#2582)
gaspergrom Aug 22, 2024
c84a9e6
Filter out deleted memberOrganizations in list (#2588)
skwowet Aug 22, 2024
27a3a2e
soft delete member work experience (#2589)
skwowet Aug 22, 2024
04ab904
calculateSentiment: true for patchset_comment-created type
epipav Aug 22, 2024
9a8d541
fix organization's name when unmerging LinkedIn identity (#2590)
skwowet Aug 23, 2024
65aebad
fix insert org query on member enrichment
epipav Aug 23, 2024
33c7587
remove obsolete names column from insertOrganization in member enrich…
epipav Aug 23, 2024
d4cd658
Support lfxMembership filter in organization list (#2580)
skwowet Aug 23, 2024
cfa8ff0
Merge branch 'crowd-linux' into feat/init-questdb
sausage-todd Aug 26, 2024
3b18f55
Fix linting
sausage-todd Aug 26, 2024
a5fb430
working form and bulk select
garrrikkotua Aug 26, 2024
86b8c21
issue webhooks
garrrikkotua Aug 27, 2024
645ee51
webhook base
garrrikkotua Aug 27, 2024
40efccc
webhooks wip
garrrikkotua Aug 28, 2024
6f96c13
Benchmark ILP auto flush params
loicsaintroch Aug 29, 2024
bf06be8
Use ILP token auth instead of password
loicsaintroch Aug 29, 2024
3730c64
looking good
garrrikkotua Aug 29, 2024
460b4ec
More ILP benchmark on staging
loicsaintroch Aug 29, 2024
384e8f2
Merge branch 'crowd-linux' into feat/gitlab-integration
garrrikkotua Aug 30, 2024
b89eb3b
update lock file
garrrikkotua Aug 30, 2024
aa40714
Merge branch 'crowd-linux' into feat/gitlab-integration
garrrikkotua Aug 30, 2024
3fe8656
Merge branch 'feat/gitlab-integration' into feat/init-questdb
garrrikkotua Aug 30, 2024
8a6c696
pnpm i
garrrikkotua Aug 30, 2024
458f48d
update webhook base
garrrikkotua Aug 30, 2024
515b336
Merge branch 'feat/gitlab-integration' into feat/init-questdb
garrrikkotua Aug 30, 2024
2885c9c
fix attributes
garrrikkotua Aug 30, 2024
2a3abbb
Merge branch 'feat/gitlab-integration' into feat/init-questdb
garrrikkotua Aug 30, 2024
c00d105
add member attributes
garrrikkotua Sep 2, 2024
14baf6c
Merge branch 'feat/gitlab-integration' into feat/init-questdb
garrrikkotua Sep 2, 2024
56ca1d3
adjustments for gitlab
garrrikkotua Sep 3, 2024
e2a46ab
Try out new activities worker
loicsaintroch Sep 9, 2024
d4c90ed
Merge remote-tracking branch 'origin/feat/init-questdb' into feat/ini…
loicsaintroch Sep 9, 2024
36dc723
Increase activities worker timeout
loicsaintroch Sep 9, 2024
6f98b2c
Decrease activities worker timeout
loicsaintroch Sep 9, 2024
310ce18
Merge branch 'crowd-linux' into feat/init-questdb
loicsaintroch Sep 12, 2024
ea2e691
Try to improve schedule policies
loicsaintroch Sep 12, 2024
c0af710
Try to improve schedule policies
loicsaintroch Sep 12, 2024
63b9558
Try to improve schedule policies
loicsaintroch Sep 12, 2024
1fcca2f
Update Temporal packages
loicsaintroch Sep 12, 2024
809954e
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Sep 13, 2024
eaa143b
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Sep 17, 2024
e21717d
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Sep 18, 2024
f143d0b
Fix few issues detected on data import
loicsaintroch Sep 24, 2024
81487d8
Fix few issues detected on data import
loicsaintroch Sep 26, 2024
678af3b
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Sep 26, 2024
32c92bd
Fix docker-compose
loicsaintroch Sep 26, 2024
95ef0cb
Rename old_activities and old_conversations
loicsaintroch Sep 26, 2024
4bc2f9a
Run lint and format
loicsaintroch Sep 27, 2024
2ea00b7
Fix missing export in DAL for members
loicsaintroch Sep 27, 2024
803bd40
Fix merge conflicts
loicsaintroch Sep 27, 2024
1cd3bc8
check message value exists before processing messages
epipav Sep 27, 2024
27e35fa
changed empty message log level
epipav Sep 27, 2024
5ee85bc
Fix missing imports after merge
loicsaintroch Sep 27, 2024
2a71478
Merge remote-tracking branch 'origin/feat/init-questdb' into feat/ini…
loicsaintroch Sep 27, 2024
62c11eb
Comment slow (and unused?) query for now
loicsaintroch Sep 27, 2024
859f15d
small bugfix
themarolt Sep 30, 2024
e19a866
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
loicsaintroch Sep 30, 2024
2300159
Run format in search-sync-worker
loicsaintroch Sep 30, 2024
0ba1edf
Maintainers data (#2629)
gaspergrom Sep 30, 2024
613a9ce
Fix maintainer roles empty
gaspergrom Sep 30, 2024
a9d07ae
Maintainers minor issues fixing
gaspergrom Sep 30, 2024
b188f6d
Include maintainers data in member query
sausage-todd Sep 30, 2024
4b49cbe
Include maintainers in member/query
sausage-todd Sep 30, 2024
d5c4539
Remove project sorting
gaspergrom Sep 30, 2024
8511076
Remove project sorting
gaspergrom Sep 30, 2024
a86963e
Fix list maintainers data display
gaspergrom Sep 30, 2024
466c790
Fix list maintainers data display
gaspergrom Sep 30, 2024
fc9fe66
more logging to debug data-sink-worker
themarolt Sep 30, 2024
ccc0f3c
kafka consumer config
themarolt Sep 30, 2024
ec79cac
kafka consumer config
themarolt Sep 30, 2024
053548f
Fix FLOAT / DOUBLE type on QuestDB
loicsaintroch Sep 30, 2024
419a4b6
Merge remote-tracking branch 'origin/feat/init-questdb' into feat/ini…
loicsaintroch Sep 30, 2024
1ebdc93
Benchmark truncate activity body to 1024
loicsaintroch Sep 30, 2024
12e9e48
Benchmark truncate activity body to 512
loicsaintroch Sep 30, 2024
e971f87
Rename body after LEFT function
loicsaintroch Sep 30, 2024
cd69d25
Try wihout connection error handler
loicsaintroch Sep 30, 2024
6fec835
Reduce QuestDB client idle timeout
loicsaintroch Sep 30, 2024
24103e8
Set max QuestDB connection to 4
loicsaintroch Sep 30, 2024
8a5ec4c
removed ignored services as default
themarolt Oct 1, 2024
7ac898a
Merge remote-tracking branch 'origin/crowd-linux' into feat/init-questdb
joanagmaia Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 60 additions & 0 deletions .github/workflows/lf-staging-deploy-activities-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: LF Staging Deploy Activities Worker

on:
push:
branches:
- 'lf-staging/**'
- 'lf-staging-**'
paths:
- 'services/libs/**'
- 'services/apps/activities_worker/**'

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
CROWD_CLUSTER: ${{ secrets.LF_STAGING_CLUSTER_NAME }}
CROWD_ROLE_ARN: ${{ secrets.LF_STAGING_CLUSTER_ROLE_ARN }}
AWS_ACCESS_KEY_ID: ${{ secrets.LF_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LF_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.LF_AWS_REGION }}
SLACK_CHANNEL: deploys-lf-staging
SLACK_WEBHOOK: ${{ secrets.LF_STAGING_SLACK_CHANNEL_HOOK }}

jobs:
build-and-push:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash

steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: activities-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

deploy-activities-worker:
needs: build-and-push
runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/deploy-service
with:
service: activities-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
60 changes: 60 additions & 0 deletions .github/workflows/staging-deploy-activities-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Staging Deploy Activities Worker

on:
push:
branches:
- 'staging/**'
- 'staging-**'
paths:
- 'services/libs/**'
- 'services/apps/activities_worker/**'

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
CROWD_CLUSTER: ${{ secrets.STAGING_CLUSTER_NAME }}
CROWD_ROLE_ARN: ${{ secrets.STAGING_CLUSTER_ROLE_ARN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SLACK_CHANNEL: deploys-staging
SLACK_WEBHOOK: ${{ secrets.STAGING_SLACK_CHANNEL_HOOK }}

jobs:
build-and-push:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash

steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: activities-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

deploy-activities-worker:
needs: build-and-push
runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/deploy-service
with:
service: activities-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ api-test/__pycache__/api_test.cpython-39-pytest-6.2.4.pyc
docker/volume

services/libs/*/dist

**/.cubestore
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Any contributions you make are **greatly appreciated**. ❤️
</tr>
<tr>
<td>
Bug in Core Features (Home, Members, Organizations, Activities, Reports)
Bug in Core Features (Home, Members, Organizations, Activities)
</td>
<td>
<a href="https://github.com/calcom/cal.com/issues?q=is:issue+is:open+sort:updated-desc+label:%22High+priority%22">
Expand Down
1 change: 0 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
**/venv*
**/.webpack
**/.serverless
**/.cubestore
**/.idea
**/.vscode
7 changes: 4 additions & 3 deletions backend/.env.dist.composed
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ CROWD_DB_WRITE_HOST="db"
PRODUCT_DB_HOST=product
PRODUCT_DB_PORT=5432

# CubeJS settings
CROWD_CUBEJS_URL="http://cubejs:4000/cubejs-api/v1"

# Nango settings
CROWD_NANGO_URL=http://nango:3003

Expand All @@ -29,3 +26,7 @@ CROWD_TEMPORAL_SERVER_URL=temporal:7233

# Seach sync api
CROWD_SEARCH_SYNC_API_URL=http://search-sync-api:8083

# QuestDB
CROWD_QUESTDB_SQL_HOST=questdb
CROWD_QUESTDB_ILP_HOST=questdb
15 changes: 9 additions & 6 deletions backend/.env.dist.local
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ PRODUCT_DB_DATABASE=product-db
# OpenSearch settings
CROWD_OPENSEARCH_NODE=http://localhost:9200

# CubeJS settings
CROWD_CUBEJS_URL=http://localhost:4000/cubejs-api/v1
CROWD_CUBEJS_JWT_SECRET=137ea167812145c6d77452a58d7dd29b
CROWD_CUBEJS_JWT_EXPIRY=2h

# AWS Comprehend settings
CROWD_COMPREHEND_AWS_ACCOUNT_ID=
CROWD_COMPREHEND_AWS_ACCESS_KEY_ID=
Expand Down Expand Up @@ -178,9 +173,17 @@ CROWD_TEMPORAL_ENCRYPTION_KEY=FweBMRnGCLshER8FlSvNusQA6G3MRUKt
# Seach sync api
CROWD_SEARCH_SYNC_API_URL=http://localhost:8083

CROWD_MV_CUBEJS_REFRESH_PERIOD='* * * * *'
CROWD_MV_OTHERS_REFRESH_PERIOD='* * * * *'

# Loki
CROWD_LOKI_DB_TURSO_URL=dummy
CROWD_LOKI_DB_TURSO_TOKEN=dummy

# QuestDB
CROWD_QUESTDB_SQL_HOST=localhost
CROWD_QUESTDB_SQL_PORT=8812
CROWD_QUESTDB_SQL_USERNAME=admin
CROWD_QUESTDB_SQL_PASSWORD=quest
CROWD_QUESTDB_SQL_DATABASE=qdb
CROWD_QUESTDB_ILP_HOST=localhost
CROWD_QUESTDB_ILP_PORT=9000
1 change: 0 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dist/
**/.env*
!.env.test
!.env.dist*
**/.cubestore
**/local-events
**/local_events

Expand Down
5 changes: 0 additions & 5 deletions backend/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@
"password": "PRODUCT_DB_PASSWORD",
"database": "PRODUCT_DB_DATABASE"
},
"cubejs": {
"url": "CROWD_CUBEJS_URL",
"jwtSecret": "CROWD_CUBEJS_JWT_SECRET",
"jwtExpiry": "CROWD_CUBEJS_JWT_EXPIRY"
},
"segment": {
"writeKey": "CROWD_SEGMENT_WRITE_KEY"
},
Expand Down
1 change: 0 additions & 1 deletion backend/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"logging": false,
"transactions": false
},
"cubejs": {},
"searchEngine": {},
"segment": {},
"comprehend": {
Expand Down
5 changes: 2 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,21 @@
"@aws-sdk/s3-request-presigner": "^3.229.0",
"@aws-sdk/url-parser": "^3.226.0",
"@aws-sdk/util-format-url": "^3.226.0",
"@crowd/alerting": "workspace:*",
"@crowd/audit-logs": "workspace:*",
"@crowd/common": "workspace:*",
"@crowd/common_services": "workspace:*",
"@crowd/cubejs": "workspace:*",
"@crowd/data-access-layer": "workspace:*",
"@crowd/feature-flags": "workspace:*",
"@crowd/integrations": "workspace:*",
"@crowd/logging": "workspace:*",
"@crowd/opensearch": "workspace:*",
"@crowd/questdb": "workspace:*",
"@crowd/redis": "workspace:*",
"@crowd/queue": "workspace:*",
"@crowd/telemetry": "workspace:*",
"@crowd/temporal": "workspace:*",
"@crowd/tracing": "workspace:*",
"@crowd/types": "workspace:*",
"@cubejs-client/core": "^0.30.4",
"@google-cloud/storage": "5.3.0",
"@octokit/auth-app": "^3.6.1",
"@octokit/graphql": "^4.8.0",
Expand Down Expand Up @@ -129,6 +127,7 @@
"passport-slack": "0.0.7",
"peopledatalabs": "~6.1.5",
"pg": "^8.7.3",
"pg-promise": "^11.4.3",
"pm2": "^5.2.0",
"sanitize-html": "^2.7.1",
"sequelize": "6.21.2",
Expand Down
Loading
Loading