Commit Graph

55 Commits (847cd83fd5b9b8a6675478b64e3838aea6214318)

Author SHA1 Message Date
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 d5b09db0c6 ai not lookin great 2024-04-12 23:18:17 -06:00
bel f288a9b098 all of langchaingo just calls apis ffff 2024-04-12 22:44:36 -06:00
bel ecf29d54b8 fix newlines in ai 2024-04-12 21:30:57 -06:00
bel 5f31a2c572 yay ai test fails 2024-04-12 16:31:23 -06:00
bel 046dc0e1ba WE GOT AI 2024-04-12 15:58:47 -06:00
bel a48518fea6 yay 2024-04-12 15:30:50 -06:00
Bel LaPointe 163f894f3a wip ai 2024-04-12 14:36:58 -06:00
Bel LaPointe 109899f9f8 split postgres integration test as -tags=postgres 2024-04-12 14:32:36 -06:00
Bel LaPointe 20a9589eb8 add HTTP server test with main and testdata 2024-04-12 14:05:02 -06:00
Bel LaPointe a8d1d69f63 parse []string from env 2024-04-12 13:57:53 -06:00
Bel LaPointe a7e254ff94 drop random human messages 2024-04-12 13:53:31 -06:00
Bel LaPointe a2cc8ed2a1 run as FILL_WITH_TESTDATA=true go run . to run with slack messages in RAM 2024-04-12 13:37:10 -06:00
Bel LaPointe d5b84da8f5 move FillWithTestdata from RAM method to function 2024-04-12 13:35:27 -06:00
Bel LaPointe b6526b8360 impl NewRam().Fill() to load testdata 2024-04-12 13:33:06 -06:00
Bel LaPointe c0977a6b7a return ErrIrrelevantMessage and log http server ignored messages 2024-04-12 13:32:53 -06:00
Bel LaPointe feb48ee4bc Fix alert resolved via bot messages 2024-04-12 13:25:04 -06:00
Bel LaPointe 88f6746c85 add storage.Threads, storage.ThreadsSince, storage.Thread 2024-04-12 13:02:18 -06:00
Bel LaPointe 5817dce70e swap to RAM for test driver 2024-04-12 13:02:06 -06:00
Bel LaPointe 04c7a5c9e1 add message.Time() 2024-04-12 13:01:42 -06:00
Bel LaPointe 83c8fccb78 test RAM driver cant delete 2024-04-12 13:01:27 -06:00
Bel LaPointe cb44dfd49d fix RAM driver cant delete 2024-04-12 13:00:56 -06:00
Bel LaPointe 6ca1f83727 stub handling GET /.../messages 2024-04-12 11:23:30 -06:00
Bel LaPointe 02331752fe ID scoped to thread and dont out of bounds except 2024-04-12 10:05:25 -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 c51e580e09 impl RAM db 2024-04-12 09:19:48 -06:00
Bel LaPointe 82fc7526d0 main parses incoming slack event 2024-04-12 09:15:16 -06:00
Bel LaPointe 02fecb7eb2 little things all tested 2024-04-12 09:13:48 -06:00
Bel LaPointe 6ba23e61c3 make helper NewTestDB more helpful with t.TempDir 2024-04-12 09:10:23 -06:00
Bel LaPointe 8883856a63 test driver 2024-04-12 09:06:57 -06:00
Bel LaPointe 634255725a test q 2024-04-12 09:02:08 -06:00
Bel LaPointe 233ba8ae2b test parsing slack messages 2024-04-12 08:57:17 -06:00
Bel LaPointe ccee4a49da break slack_events.json into many files for testing 2024-04-12 08:08:59 -06:00
Bel LaPointe 4080af952d oooone more sample 2024-04-12 08:05:38 -06:00
Bel LaPointe 2911b2f884 more message fields 2024-04-12 08:04:46 -06:00
Bel LaPointe 81f887c08c all the slack_events i need 2024-04-12 08:01:17 -06:00
Bel LaPointe 8ee774240e some type stubs 2024-04-12 07:53:29 -06:00
Bel LaPointe 63d7454fb6 testdata for slack events 2024-04-11 17:38:04 -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 052a093ad7 config accepts INITIALIZE_SLACK 2024-04-11 17:01:45 -06:00
Bel LaPointe 967d33b03b log 2024-04-11 16:51:23 -06:00