Johannes Kirschbauer
10cf0bfafe
Feat(inventoryStore): add get_raw to read all the values unsafe
2025-06-10 17:02:16 +02:00
Johannes Kirschbauer
e4b95b5465
Test(InventoryPersistence): improve error message
2025-05-30 10:23:57 +02:00
Johannes Kirschbauer
976c4d52cb
Tests(inventoryStore): add tests for intersecting nix/json lists
2025-05-28 15:39:52 +02:00
Johannes Kirschbauer
07a574cbb0
Tests(inventoryStore): add fixture, make extensible
2025-05-28 15:06:17 +02:00
Johannes Kirschbauer
104343a334
feat(InventoryStore): return a restricted view of the inventory
2025-05-28 14:04:34 +02:00
Johannes Kirschbauer
d482e22610
chore(nix_models): migrate import to use exported clan models
2025-05-28 14:03:22 +02:00
Johannes Kirschbauer
db31b91401
Fix(inventoryStore): use 'nix_eval' wrapper to set the store correct
2025-05-28 11:34:16 +02:00
Johannes Kirschbauer
84622222d8
Fix(tests): fix failing pytests
2025-05-28 11:01:54 +02:00
Johannes Kirschbauer
4c6063c75e
Tests(inventoryStore): fixup tests to run in ci
2025-05-28 10:42:47 +02:00
Johannes Kirschbauer
a49466e1a9
Feat(inventoryStore): add possibility to turn off output filtering
2025-05-28 10:42:47 +02:00
Johannes Kirschbauer
dd9ea44770
refactor(persist/utils): rename apply_patch to 'set_value_by_path'
2025-05-28 10:16:48 +02:00
Johannes Kirschbauer
f591ac0c32
Feat(inventoryStore): add 'invalidate_cache' to the Flake protocol
2025-05-27 17:56:35 +02:00
Johannes Kirschbauer
c32d196428
Fix: configure deferred setting module path correctly
2025-05-27 16:31:54 +02:00
Johannes Kirschbauer
a7f4927e0c
test(persist/inventory): add test for adding deferredModule
...
This feature will allow us to read/write to 'settings' of service
'instances' which are of type deferredModule.
Usually a deferredModule needs to be evaulated, but because we use our
own type, which forces some constraints, we can safely perform read and
write
2025-05-23 21:49:16 +02:00
Johannes Kirschbauer
9cea8e8901
fix(persist/delete): delete explizitly
2025-05-23 21:47:12 +02:00
Johannes Kirschbauer
4d9202551f
feat(persist/inventory): add transformation and filtering to support deferredModules
2025-05-23 21:45:52 +02:00
Johannes Kirschbauer
1b11ecf37a
fixes(persist/util): fix some expected error messages in tests
2025-05-23 21:43:49 +02:00
Johannes Kirschbauer
38b2f0ca0f
test(persist/util): add test for adding empty submodules
2025-05-23 21:43:09 +02:00
Johannes Kirschbauer
040e12c3e9
refactor(persist/util): improve calc_patches
2025-05-23 21:42:35 +02:00
Johannes Kirschbauer
9572f36175
feat(persist/util): init parent_is_dict
...
Check if a parent value is of type dict
This utility is helpfull for cross checking of flattened dicts
2025-05-23 21:41:34 +02:00
Johannes Kirschbauer
598902a766
chore(inventory): find_deleted_paths rename variables
2025-05-23 21:40:02 +02:00
Johannes Kirschbauer
29f1c6ee0a
fix(inventory/store): keep empty dicts as leafs
2025-05-23 21:39:23 +02:00
Johannes Kirschbauer
3f82ceddb3
test(inventory/store): clean up simple test
2025-05-23 21:38:16 +02:00
Johannes Kirschbauer
6cd2c1ce1a
feat(inventory/store): init path_match utility
2025-05-23 21:36:14 +02:00
Johannes Kirschbauer
e2520f6aa8
Test(InventoryPersistence): add persist integration tests
2025-05-21 17:55:43 +02:00
Johannes Kirschbauer
0f7cc56776
Feat(inventoryStore): add FlakeInterface protocol
2025-05-21 16:44:28 +02:00
Johannes Kirschbauer
069d6e5569
Fix: don't try to persist 'inventory.instances'
2025-05-21 11:42:29 +02:00
lassulus
f2bf142e80
clan-cli: clan_cli.git -> clan_lib.git
2025-05-20 14:35:14 +02:00
lassulus
fa052f45bd
clan_lib: move clan_lib.flake.flake to clan_lib.flake
2025-05-16 19:28:36 +02:00
Johannes Kirschbauer
fe0507b47c
refactor: move clan_cli.error to clan_lib.error
2025-05-16 16:14:39 +02:00
lassulus
5423b9af41
clan_cli: move flake class to clan_lib
2025-05-16 13:38:47 +02:00
Johannes Kirschbauer
6de58478fa
Refactor: replace direct references to inventory
...
Deprecated. Inventory should be accessed via InventoryStore {read(),write(),...}
2025-05-16 11:30:41 +02:00
Johannes Kirschbauer
633e6ffeae
refactor(lib/persist): rename 'patch' to 'apply_patch'
2025-05-14 16:16:16 +02:00
Johannes Kirschbauer
574ed11df4
feat(lib/InventoryStore): add read method
2025-05-14 16:10:49 +02:00
Johannes Kirschbauer
deb6b57a23
refactor(clan/lib): move tests for persist.util into clan_lib
2025-05-14 13:35:27 +02:00
Johannes Kirschbauer
1a4922817a
refactor(lib/persist): move WriteInfo class into persistence lib
2025-05-14 10:19:07 +02:00
Johannes Kirschbauer
1860504fb0
feat(clan_lib): add 'InventoryStore' for persistence
2025-05-14 09:18:55 +02:00