Commit Graph

189 Commits

Author SHA1 Message Date
Carl-Gerhard Lindesvärd
e4bc21fc2e fix: set random groupId if events from a server without a profile id 2025-10-07 09:57:12 +02:00
Carl-Gerhard Lindesvärd
af580333b4 fix: bump groupmq, fix stalled sessions in buffers, improve heavy event count 2025-10-06 22:20:14 +02:00
Carl-Gerhard Lindesvärd
b3e06e985d chore: update bots and series icons 2025-10-05 12:01:06 +02:00
Carl-Gerhard Lindesvärd
d06589831d chore: update groupmq 2025-10-05 12:00:50 +02:00
Carl-Gerhard Lindesvärd
0b4fcbad69 feat: use groupmq instead of bullmq for incoming events (#206)
* wip

* wip working group queue

* wip

* wip

* wip

* fix: groupmq package (tests failed)

* minor fixes

* fix: zero is fine for duration

* add logger

* fix: make buffers more lightweight

* bump groupmq

* new buffers and bump groupmq

* fix: buffers based on comments

* fix: use profileId as groupId if exists

* bump groupmq

* add concurrency env for only events
2025-10-04 21:07:55 +02:00
Carl-Gerhard Lindesvärd
ca4a880acd feat: graceful shutdown (#205)
* feat: graceful shutdown

* comments by coderabbit

* fix
2025-10-02 11:03:54 +02:00
Carl-Gerhard Lindesvärd
df32bb04a0 feat(api): add insights endpoints 2025-09-08 22:07:09 +02:00
Carl-Gerhard Lindesvärd
113ab0a28d chore: update bots and referrers 2025-07-02 12:16:01 +02:00
Carl-Gerhard Lindesvärd
5445d6309e test: add vitest
* feature(root): add vitest and some basic tests

* fix(test): after rebase + added referrars test and more sites

* fix(test): test broken after rebase

* fix(test): provide db url to make prisma happy

* fix tests
2025-06-06 19:14:18 +02:00
Carl-Gerhard Lindesvärd
34414e1d3e feat(geo): make geo a package instead of service (#161) 2025-06-06 05:56:54 +02:00
Carl-Gerhard Lindesvärd
5c5154ee86 fix: clear cache for organizations when subscriptions updates 2025-06-04 12:00:45 +02:00
Carl-Gerhard Lindesvärd
0d58a5bf0c improve(queue): how we handle incoming events and session ends 2025-06-03 21:19:01 +02:00
Carl-Gerhard Lindesvärd
95a30a660c fix(api): ensure we use correct date format to get chart (export) 2025-05-23 12:00:24 +02:00
Carl-Gerhard Lindesvärd
ce184b157f fix(api): filter events by profileId for export route 2025-05-21 20:52:26 +02:00
Carl-Gerhard Lindesvärd
89ab8d08de improve(api): increase limit 1000, allow both projectId and project_id 2025-04-16 21:40:22 +02:00
Carl-Gerhard Lindesvärd
34769a5d58 feat(ai): add ai chat to dashboard 2025-04-15 14:30:21 +02:00
Carl-Gerhard Lindesvärd
e9133aa5a8 trigger(build) 2025-03-28 09:37:24 +01:00
Carl-Gerhard Lindesvärd
1ce8ab8fc8 trigger build 2025-03-24 19:17:44 +01:00
Carl-Gerhard Lindesvärd
563551992d trigger(build) 2025-03-20 09:47:48 +01:00
Carl-Gerhard Lindesvärd
a1eb4a296f feature(dashboard): refactor overview
fix(lint)
2025-03-20 09:40:01 +01:00
Carl-Gerhard Lindesvärd
08b07e42fb fix(buffer): do not update created_at for profiles since its our partition key 2025-03-06 11:07:09 +01:00
Carl-Gerhard Lindesvärd
020ed5eb04 fix(api): send empty response 2025-02-28 11:17:48 +01:00
Carl-Gerhard Lindesvärd
5c6ad93ff5 improve(api): how we check duplicate requests 2025-02-28 10:03:28 +01:00
Carl-Gerhard Lindesvärd
7750ca117f improve(api): update api to fastify v5 2025-02-28 09:19:27 +01:00
Carl-Gerhard Lindesvärd
44721f84da fix(buffer): ensure we don't have duplicate events 2025-02-27 12:48:43 +01:00
Carl-Gerhard Lindesvärd
d6f5bb7833 fix(public): remove db dependencies and use traditional api call to get stats 2025-02-27 00:07:25 +01:00
Carl-Gerhard Lindesvärd
168ebc3430 feat(subscriptions): added polar as payment provider for subscriptions
* feature(dashboard): add polar / subscription

* wip(payments): manage subscription

* wip(payments): add free product, faq and some other improvements

* fix(root): change node to bundler in tsconfig

* wip(payments): display current subscription

* feat(dashboard): schedule project for deletion

* wip(payments): support custom products/subscriptions

* wip(payments): fix polar scripts

* wip(payments): add json package to dockerfiles
2025-02-26 11:24:00 +01:00
Carl-Gerhard Lindesvärd
86bf9dd064 remove(api): profile alias are no gone since not used 2025-02-24 23:24:25 +01:00
Carl-Gerhard Lindesvärd
6ad47c8bd1 improve(api): ensure we do 3 attempts to add events to the queue 2025-02-19 10:34:52 +01:00
Carl-Gerhard Lindesvärd
59012526e2 fix(worker): add reqId to logger for better traceability 2025-02-19 10:33:42 +01:00
André Brito
acc675bd36 style: formatted and added example env 2025-02-17 21:27:18 +01:00
Carl-Gerhard Lindesvärd
0ce963fc7e chore(api): update test mocks 2025-02-17 21:00:14 +01:00
Carl-Gerhard Lindesvärd
329c0885d4 improve(self-hosting): remove goose, custom migration, docs, remove zookeeper 2025-02-17 20:54:54 +01:00
Carl-Gerhard Lindesvärd
4bf55fe840 improve(api): cache geo 2025-02-11 21:57:07 +01:00
Carl-Gerhard Lindesvärd
3205ea0a31 fix(buffer): live counter 2025-02-11 21:39:10 +01:00
Carl-Gerhard Lindesvärd
848f475412 improve(db): do not use keys in redis 2025-02-11 21:39:10 +01:00
Carl-Gerhard Lindesvärd
0cf73e299a chore(root): clean up unused stuff 2025-02-11 12:07:57 +01:00
Carl-Gerhard Lindesvärd
18874405b9 fix(api): swift sdk has issues with double OpenPanel tags in user-agent, if so remove one 2025-02-09 21:56:58 +01:00
Carl-Gerhard Lindesvärd
af0f9717a8 improve(worker): handle sessions with unknown state 2025-02-09 20:39:52 +01:00
Carl-Gerhard Lindesvärd
2688a428d9 chore(api): add option to not add new jobs 2025-02-08 22:13:16 +01:00
Carl-Gerhard Lindesvärd
afef578389 build 2025-02-04 14:27:40 +01:00
Carl-Gerhard Lindesvärd
b3fc8ba850 fix(api): disable healthcheck 2025-02-04 11:09:45 +01:00
Carl-Gerhard Lindesvärd
10f648fa51 fix(ci): pnpm broken 2025-02-03 09:38:46 +01:00
Carl-Gerhard Lindesvärd
71bf22af51 feature(queue): use postgres instead of redis for buffer
* wip(buffer): initial implementation of psql buffer

* wip(buffer): add both profile and bots buffer
2025-01-30 22:50:57 +00:00
Carl-Gerhard Lindesvärd
2b5b8ce446 chore(api): remove console log 2025-01-30 22:50:24 +00:00
Carl-Gerhard Lindesvärd
0ffca70782 fix(api): use ping instead of keys for healtcheck 2025-01-29 16:07:43 +00:00
Carl-Gerhard Lindesvärd
7deee7e4c2 fix(api): handle common errors better 2025-01-28 07:14:35 +00:00
Carl-Gerhard Lindesvärd
8bbf36473b improve(export): improve docs for export and add some default values 2025-01-26 07:15:51 +00:00
Carl-Gerhard Lindesvärd
c4e815b405 fix(auth): improve oauth flow, fix invite flow (with google), add copy invite link 2024-12-30 20:09:25 +01:00
Carl-Gerhard Lindesvärd
e5b5a8af62 fix(api): better logging for verify oauth code 2024-12-29 09:28:45 +01:00