Krunal Gandhi
058eb9db52
handle userid with '_' ( #1853 )
...
* fix endpoints and unused vars
* add response on failure of writing events to db
* update response code
* handle userid with '_' & dont process events with log_to_store disabled
* use '%' as separator instead of '_'
* optimize '%' removal from userid
2024-07-24 10:44:07 +05:30
Krunal Gandhi
3494155b7a
update flag for logging events to store ( #1846 )
...
* remove analytics logging to tsv file
* add event_type in db_key & add tests for db persistence
* add test for sparsely added event retrieval
* update flag name to log events to store
2024-07-22 07:21:59 +05:30
Krunal Gandhi
99a774d359
remove analytics logging to tsv file ( #1843 )
...
* remove analytics logging to tsv file
* add event_type in db_key & add tests for db persistence
* add test for sparsely added event retrieval
2024-07-18 15:43:27 +05:30
Krunal Gandhi
a1f8d7257a
analytics db with ttl ( #1789 )
...
* initial commit for analytics db with ttl
* refactor store class
* get last N events from db and minor changes
* add more tests & limit keys fetching per user
2024-06-27 12:41:51 +05:30
Krunal Gandhi
e1bdfc1ca6
delete associated events on deleting rule ( #1794 )
...
* delete associated events on deleting rule
* remove mandatory query param & unnecessary if
* update failing test
2024-06-21 22:26:57 +05:30
Krunal Gandhi
459d9149f6
update non-counter event rule ( #1643 )
...
* update non-counter event rule
* update indents
2024-04-03 15:27:42 +05:30
Krunal Gandhi
64f6d77571
add events in get response ( #1632 )
...
* add events in get response
* add counter_field in response, add test
2024-03-25 18:10:28 +05:30
Krunal Gandhi
fe2a0be564
refactor counter events with tests ( #1557 )
...
* add tests for persisting events
* fix test by adding unique event name
* fix persistance with analytics events
* early return raft_server check
* increment populairty count instead of overwrite
* extract method serialize_as_docs
* move func definition from header to source
* counter events refactor and tests
* fix test
* configure log_to_file per counter event
2024-02-19 20:47:32 +05:30
Krunal Gandhi
c7c24e6ab9
Analytics manager fixes ( #1553 )
...
* add tests for persisting events
* fix test by adding unique event name
* fix persistance with analytics events
* early return raft_server check
* increment populairty count instead of overwrite
* extract method serialize_as_docs
* move func definition from header to source
2024-02-15 16:51:08 +05:30
Krunal Gandhi
206cecffbd
Event analytics revised ( #1522 )
...
* remove query hits aggregation & store
* refactor analytics changes
* avoid string copy
* typo correction
* event analytics revised
* refactoring code
* add test for collection array
2024-02-02 11:50:42 +05:30
Kishore Nallan
525995c7e9
Make analytics event cache a member.
2024-01-26 22:14:02 +05:30
Kishore Nallan
71f905f18c
Flush analytics event log on every persist call.
2024-01-26 16:33:04 +05:30
Krunal Gandhi
cde131f4b3
Refactor analytics changes ( #1502 )
...
* remove query hits aggregation & store
* refactor analytics changes
* avoid string copy
* typo correction
2024-01-22 17:37:29 +05:30
Krunal Gandhi
9565efefb3
remove query hits aggregation & store ( #1496 )
2024-01-19 10:57:25 +05:30
krunal
35988725f5
pass only analytics dir instead of db ptr
2024-01-09 11:43:42 +05:30
krunal
29943c5089
store purchase, click events in tsv log file
2024-01-08 17:14:57 +05:30
krunal
ee414dfb1d
enable rate limit in test for specific test only
2024-01-04 20:35:32 +05:30
krunal
e379b72813
generify counter events with different events types
2024-01-03 16:29:54 +05:30
krunal
5115419e1c
generify all events
2024-01-02 15:49:24 +05:30
krunal
4b6990c7c3
initial special events commit
2023-12-29 16:34:08 +05:30
Kishore Nallan
9d9ffd3bf9
Add option to expand search query for suggestion aggregation.
2023-12-27 15:56:02 +05:30
krunal
a2fd6e07bb
store rule type in suggestion config
2023-12-26 14:37:38 +05:30
krunal
e37b9bf775
make get_click_events as export
2023-12-18 16:36:12 +05:30
krunal
2ecd42795e
adding popularity score
2023-12-12 14:29:16 +05:30
krunal
4fc0482875
remove sleep from tests
2023-12-06 14:42:02 +05:30
krunal
4c1e487398
reduce wait time in test
2023-12-05 15:38:18 +05:30
krunal
81bb569b8f
add events expiry and minor bug fix
2023-12-01 14:09:47 +05:30
krunal
15f1f7ecbc
merging click events and query hits code
2023-11-27 15:47:05 +05:30
krunal
a6b404e7ff
query hits count analytics
2023-11-24 15:27:15 +05:30
krunal
5b4df3211c
rename noresults_queries to nohits_queries
2023-11-23 13:00:08 +05:30
krunal
6335f7b87f
refactor anlaytics queries
2023-11-22 15:06:34 +05:30
krunal
81ae4f8069
noresults queries analytics
2023-11-21 17:59:48 +05:30
krunal
2de56ee39a
return empty array on GET when analytics are not enabled
2023-11-15 11:45:29 +05:30
krunal
40d55bc340
updating function name
2023-11-14 14:32:17 +05:30
krunal
ab6957671f
update rate limit params and adding tests
2023-11-09 15:57:03 +05:30
krunal
34290ab1d9
add rate limit for clickevents, make tests more verbose
2023-11-09 13:39:55 +05:30
krunal
1c4c7ac320
make click events analytics optional
2023-11-08 14:42:48 +05:30
krunal
e26c782190
adding field user_id and creating new store for analytics
2023-11-03 15:32:08 +05:30
krunal
c51f44aacf
refactor replication and minor updates
2023-11-03 11:04:26 +05:30
krunal
7dbd53cbc6
initial click event analytics
2023-11-02 15:47:19 +05:30
Kishore Nallan
5c879ccc49
Fix analytics aggregstion with interval > 60s
2023-09-15 11:43:29 +05:30
Kishore Nallan
f1cd6038ea
Trim query suggesitons before aggregation.
2023-08-21 16:46:06 +05:30
Kishore Nallan
8e1f6caaf1
Add upsert + get APIs for analytics rules.
2023-07-07 12:43:01 +05:30
Kishore Nallan
4c32ead921
Handle aliasing for analytics query.
2023-05-30 11:55:20 +05:30
Kishore Nallan
fde28a5df3
Move analytics params into sub-object.
2023-05-26 19:17:07 +05:30
Kishore Nallan
5abec3f6e0
Refactor analytics paths.
2023-05-25 22:40:24 +05:30
Kishore Nallan
c349148e2d
Refactor query aggregation.
2023-05-23 14:26:46 +05:30