Commit Graph

56 Commits

Author SHA1 Message Date
c8227b405d Implement passwd command 2025-02-02 00:20:51 -08:00
7b83d01f12 Add channels to home page 2025-01-31 18:03:30 -08:00
e40e2a3245 Add channels 2025-01-31 17:24:30 -08:00
3f533d568a defer rows.Close() 2025-01-31 16:05:11 -08:00
8940fdf697 Split source and item functions into different files 2025-01-31 15:22:44 -08:00
f231c81f2d Reduce source.go to source functions 2025-01-31 15:21:44 -08:00
0337cc8ee3 Reduce items.go to item functions 2025-01-31 15:02:45 -08:00
c9949b7b25 Move item functions to items.go 2025-01-31 15:00:05 -08:00
79327bb34a Split action and execute functions into different files 2025-01-31 14:30:52 -08:00
9132bb46d7 Reduce action.go to action functions 2025-01-31 14:29:10 -08:00
e695094a0a Reduce execute.go to execute functions 2025-01-31 14:27:26 -08:00
860c8008e0 Move execute functions from action.go to execute.go 2025-01-31 14:25:31 -08:00
a0e4f1f9c4 Error on nonexistent sources instead of returning nothing 2025-01-31 14:22:38 -08:00
37142229ea Make item updates transactional 2025-01-31 09:55:07 -08:00
b769d71f6e Add DB implementation with fault injection 2025-01-31 09:32:23 -08:00
9c42847ee2 Add transaction DB implementation
This and the previous commit allow passing transactions to query functions
2025-01-31 08:53:11 -08:00
d89f85e141 Convert DB to interface 2025-01-31 08:44:09 -08:00
ced1de05e8 Set source envs in action executions 2025-01-31 08:00:07 -08:00
a238d1f239 Add source environment variables 2025-01-31 07:50:56 -08:00
9cfa568eff Pass state directly through Execute instead of statePath 2025-01-30 16:04:31 -08:00
5692f60318 Add state blob to source 2025-01-30 15:22:57 -08:00
68038839ec Remove argument used only for logging 2025-01-30 08:28:13 -08:00
f5e9277e26 Add statePath argument to Execute 2025-01-30 08:28:13 -08:00
34fa784c44 Factor out ExecuteItemAction helper 2025-01-30 08:28:13 -08:00
647584e55b Order items by .time or .created 2025-01-29 22:41:50 -08:00
f804299180 Add actions to items 2025-01-29 08:52:39 -08:00
d23efdf00b Check Item equality with a function
Using == won't work when the Action field is a map[string]RawMessage
2025-01-29 08:52:39 -08:00
453bc9d601 Replace AddItem with AddItems 2025-01-29 07:43:06 -08:00
421271e2c3 Require nonempty source in Execute() 2025-01-29 07:39:00 -08:00
6c312a1aae Update data path resolution 2025-01-27 21:54:46 -08:00
9dacdb987a Add more Execute test cases 2025-01-27 21:27:20 -08:00
f153263bc4 Add on_create triggers 2025-01-24 15:41:52 -08:00
a84a464901 Implement updating items 2025-01-23 14:24:16 -08:00
4a75e8e814 Implement most of action execute 2025-01-23 13:32:09 -08:00
9a77beb582 Add more information to CLI help text 2025-01-23 13:23:21 -08:00
b7683f6805 Implement source fetch 2025-01-23 12:26:21 -08:00
dde799ff8e Add option to show inactive items in feed 2025-01-23 11:40:56 -08:00
675cb64f47 Refactor get item functions 2025-01-23 11:36:51 -08:00
2d7d48846d Add transaction utility 2025-01-23 10:03:46 -08:00
0fa79abdfd Add missing err checks 2025-01-23 09:08:17 -08:00
7b8d3796bd Implement action {add,delete,edit,list} 2025-01-23 08:37:56 -08:00
14df3cac03 Implement source {add,list,delete} 2025-01-23 08:37:56 -08:00
fb0d4e9aee Add actions to the database 2025-01-23 06:57:39 -08:00
2a58c01319 Refactor db access to ensure pragmas are set, fix foreign keys 2025-01-19 21:33:49 -08:00
1468c3adc4 Split migrations and source logic into separate files
Merge commit '82a2b5e'; commit 'bd488d7' into HEAD
2025-01-18 14:03:50 -08:00
bd488d7b47 Remove migrations code 2025-01-18 14:03:14 -08:00
cd00c0fedc Move source logic to source.go 2025-01-18 14:02:17 -08:00
82a2b5eab9 Remove source code 2025-01-18 14:00:53 -08:00
f540ebcb4d Move migration logic to migrations.go 2025-01-18 13:59:31 -08:00
10f4294328 Add Execute() and test command 2025-01-17 13:49:23 -08:00