Commit Graph

51 Commits (main)

Author SHA1 Message Date
Bel LaPointe 6d81164161 impl PersistenceToRecap pipeline where each resolved event gets an ai recap of each of its threads that have messages persisted under the thread as a Recap column 2024-04-19 13:19:14 -06:00
Bel LaPointe 782b9ec3cf if no therads or no messages then no ai 2024-04-19 12:39:50 -06:00
Bel LaPointe 12de99da57 impl GET /api/v1/rpc/aievent?id=123 2024-04-19 12:34:49 -06:00
Bel LaPointe 79de56e236 impl storage.GetThreadMessages 2024-04-19 12:21:31 -06:00
Bel LaPointe f8861a73b5 async slack scrape goes up to ?since 2024-04-18 14:56:33 -06:00
Bel LaPointe 8557ddc522 boo 2024-04-17 17:32:07 -06:00
Bel LaPointe 1e43c2a14e split 2024-04-17 17:28:48 -06:00
Bel LaPointe 04c574ffec f it 2024-04-17 16:58:06 -06:00
Bel LaPointe b2f64037e2 GET /api/v1/version 2024-04-17 16:23:15 -06:00
Bel LaPointe fbd151f9ef when initializing slack, stash token in driver 2024-04-17 16:07:43 -06:00
Bel LaPointe 95b0394199 slack can parse optional channel wrapper for scrape 2024-04-16 15:03:24 -06:00
Bel LaPointe a8e8fdc451 synchronous fanout from channel to threads for scrape 2024-04-16 08:33:21 -06:00
Bel LaPointe 39c0056190 found running locally that i dont need rest, pipeline needs a way to drop messages as garbage 2024-04-16 07:56:54 -06:00
Bel LaPointe 8ae8f47753 tests run and fail again 2024-04-16 06:52:07 -06:00
Bel LaPointe 3c62411927 wip normalize 2024-04-15 17:09:31 -06:00
Bel LaPointe d76f8e2c15 stub second pipeline 2024-04-15 16:26:16 -06:00
Bel LaPointe ff280997b1 main can run many pipelines 2024-04-15 16:23:41 -06:00
Bel LaPointe 9d7a175c62 at least main_test runs 2024-04-15 16:12:41 -06:00
Bel LaPointe 1dcffdd956 ew compile errs 2024-04-15 16:04:12 -06:00
Bel LaPointe 8193bf7377 f sql jeez 2024-04-15 13:08:21 -06:00
Bel LaPointe 961be827d0 log less 2024-04-15 07:35:39 -06:00
Bel LaPointe 6fbafe6700 PUT /api/v1/rpc/scrapeslack 2024-04-15 07:34:30 -06:00
Bel LaPointe a8270b524c oops tests are failing 2024-04-14 20:13:48 -06:00
bel 6b962ea509 parse datacenter from Tags field 2024-04-13 10:24:02 -06:00
bel b1d93a7698 add /events and /eventnames 2024-04-13 10:15:29 -06:00
bel 10630df394 Accept $ASSET_PATTERN 2024-04-13 10:00:21 -06:00
bel 1324376399 also accpt text/tsv 2024-04-13 09:52:53 -06:00
bel e58fa50656 accept Accept:text/csv 2024-04-13 09:48:28 -06:00
bel 9bfbcf2d70 wip text/csv 2024-04-13 09:29:00 -06:00
bel 847cd83fd5 extract into writeJSON 2024-04-13 09:26:02 -06:00
bel e7b3418932 extract parsing ?since 2024-04-13 09:20:03 -06:00
bel ab933e3c53 impl GET /api/v1/messages 2024-04-13 09:19:53 -06:00
bel a48518fea6 yay 2024-04-12 15:30:50 -06:00
Bel LaPointe 20a9589eb8 add HTTP server test with main and testdata 2024-04-12 14:05:02 -06:00
Bel LaPointe c0977a6b7a return ErrIrrelevantMessage and log http server ignored messages 2024-04-12 13:32:53 -06:00
Bel LaPointe 6ca1f83727 stub handling GET /.../messages 2024-04-12 11:23:30 -06:00
Bel LaPointe 0d3910829d if $POSTGRES_CONN set then use it 2024-04-12 10:00:13 -06:00
Bel LaPointe 8f288cf12e impl Postgres driver 2024-04-12 09:58:32 -06:00
Bel LaPointe 1b148092b9 on slack webhook storage.Upsert message 2024-04-12 09:22:42 -06:00
Bel LaPointe 24628f4ebb Config has a .storage, .queue, .driiver 2024-04-12 09:21:36 -06:00
Bel LaPointe 82fc7526d0 main parses incoming slack event 2024-04-12 09:15:16 -06:00
Bel LaPointe fb5e7b580e log not impl'd slack event 2024-04-11 17:21:44 -06:00
Bel LaPointe bdc40e91b4 only write METHOD PATH | BODY if $DEBUG=true 2024-04-11 17:21:07 -06:00
Bel LaPointe 64af8f5085 only handle slack events in $SLACK_CHANNELS csv 2024-04-11 17:19:32 -06:00
Bel LaPointe 6a6524692a POST /api/v1/events/slack asserts .token==$SLACK_TOKEN 2024-04-11 17:11:43 -06:00
Bel LaPointe 2372fa8bb9 route /api/v1/events/slack differently when INITIALIZE_SLACK=true 2024-04-11 17:02:03 -06:00
Bel LaPointe 967d33b03b log 2024-04-11 16:51:23 -06:00
Bel LaPointe 84e4600737 http.ServeMux to route POST /api/v1/events/x$ 2024-04-11 16:49:17 -06:00
Bel LaPointe bf7e067628 log access 2024-04-11 16:39:56 -06:00
Bel LaPointe 4c4d92478d to Config struct for configging 2024-04-11 16:36:23 -06:00