lightning-terminal/firewalldb
Viktor Torstensson 94b7573623
firewalldb: actions mig handle empty RPCParamsJson
If there are no RPCParamsJson set for an action, the value is
represented differently in KVDB vs SQL.
In the SQL DB, empty RPCParamsJson are represented as nil, while they
are represented as an empty array in the KVDB version. Therefore, we
need to override the RPCParamsJson in that scenario, so that they are
set to the same representation when a KVDB and an SQL action is
compared.
2025-11-18 17:58:44 +01:00
..
action_paginator.go firewalldb+rpcserver: refactor ListActions 2025-05-09 13:57:10 +02:00
actions.go multi: add AddActionReq MacaroonId helper func 2025-10-03 11:44:05 +02:00
actions_kvdb.go multi: add AddActionReq MacaroonId helper func 2025-10-03 11:44:05 +02:00
actions_sql.go sqlc+firewalldb: add GetAction SQL query 2025-10-07 02:13:14 +02:00
actions_test.go multi: add AddActionReq MacaroonId helper func 2025-10-03 11:44:05 +02:00
db.go firewalldb: export FirewallDBs interface 2025-07-21 14:45:45 +02:00
interface.go firewalldb: export FirewallDBs interface 2025-07-21 14:45:45 +02:00
kvdb_store.go firewalldb: best effort link from actions to accounts 2025-05-21 14:14:13 +02:00
kvstores_kvdb.go firewalldb: clarify bbolt kvstores illustration 2025-07-21 14:45:45 +02:00
kvstores_sql.go multi: rename sql kvstores session_id to group_id 2025-07-21 14:45:45 +02:00
kvstores_test.go firewalldb: best effort tight coupling of actions and sessions 2025-05-21 14:14:12 +02:00
log.go multi: update LND and friends 2025-03-26 09:20:52 -05:00
metadata.go firewalldb+log: add main DB structure 2023-01-27 06:47:11 +02:00
mock.go multi: rename GetSessionByID to GetSession 2025-03-04 17:34:31 +02:00
privacy_mapper.go multi+refactor: remove unnecessary type alias 2025-04-22 06:10:48 +02:00
privacy_mapper_kvdb.go firewalldb+lit: plug in SQL privacy mapper 2025-04-22 06:10:48 +02:00
privacy_mapper_sql.go firewalldb+lit: plug in SQL privacy mapper 2025-04-22 06:10:48 +02:00
privacy_mapper_test.go firewalldb: add clock.Clock to firewalldb DB impls 2025-05-13 08:06:16 +02:00
sql_migration.go firewalldb: actions mig handle empty RPCParamsJson 2025-11-18 17:58:44 +01:00
sql_migration_test.go firewalldb: actions mig handle empty RPCParamsJson 2025-11-18 17:58:44 +01:00
sql_store.go firewalldb: add SQL impl of Actions store 2025-05-30 10:56:58 +02:00
test_kvdb.go firewalldb: actions mig handle empty RPCParamsJson 2025-11-18 17:58:44 +01:00
test_postgres.go firewalldb: actions mig handle empty RPCParamsJson 2025-11-18 17:58:44 +01:00
test_sql.go firewalldb: update NewTestDB funcs to return FirewallDBs 2025-07-21 14:45:45 +02:00
test_sqlite.go firewalldb: actions mig handle empty RPCParamsJson 2025-11-18 17:58:44 +01:00