Johannes Kirschbauer
e6d1f71907
Feat(inventory): remove legacy action functions
...
Inventory should only and always be accessed through the inventory store.
Manually reading and writing to the json file is highly insecure
2025-05-27 17:20:04 +02:00
Johannes Kirschbauer
c32d196428
Fix: configure deferred setting module path correctly
2025-05-27 16:31:54 +02:00
clan-bot
5b5ebaf3ef
Merge pull request 'Update Clan Core for Checks' ( #3771 ) from update-clan-core-for-checks into main
2025-05-27 03:01:12 +00:00
clan-bot
0e168b93fa
Update pinned clan-core for checks
2025-05-27 02:51:23 +00:00
hsjobeki
744a5593db
Merge pull request 'Refactor(lib/inventory): move machine actions into clan_lib/machines/actions.py' ( #3770 ) from chores-3 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3770
2025-05-26 16:05:26 +00:00
Johannes Kirschbauer
2312a65c17
Chore: rename secrets.get_machine to avoid ambiguity
2025-05-26 17:52:46 +02:00
Johannes Kirschbauer
90d9dbb242
Refactor(lib/inventory): move machine actions into clan_lib/machines/actions.py
2025-05-26 17:51:12 +02:00
hsjobeki
91a6f814d6
Merge pull request 'Feat(persist): add support for deferredModule read/write' ( #3752 ) from deferredModule-serde into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3752
2025-05-26 14:18:53 +00:00
Johannes Kirschbauer
55195e57e0
fix(morph/test): temporary workaround for morph test
2025-05-26 16:06:12 +02:00
Johannes Kirschbauer
14701fda01
chore: add todo comments for template logic in create machine
2025-05-26 16:05:20 +02:00
brianmcgee
85c20ccb49
Merge pull request 'feat(ui): introduces storybook' ( #3767 ) from feat/storybook into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3767
2025-05-26 13:55:46 +00:00
kenji
516612c9f4
Merge pull request 'pkgs/generate-test-vars: Fix build' ( #3769 ) from kenji/clan-core:ke-vars-generator-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3769
2025-05-26 13:48:49 +00:00
a-kenji
c0d7e85446
pkgs/generate-test-vars: Fix erroneous module import
...
The machines module lives in the `clan_lib` library.
2025-05-26 15:43:41 +02:00
a-kenji
cca0c2aff8
pkgs/generate-test-vars: Add basic module test
...
Add a basic module test that can catch breaking changes in module
usage.
2025-05-26 15:41:48 +02:00
kenji
f7399d1344
Merge pull request 'clanServices/wifi/tests: Use undeprecated module registration' ( #3768 ) from kenji/clan-core:ke-wifi-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3768
2025-05-26 12:59:01 +00:00
a-kenji
f50529572a
clanServices/wifi/tests: Use undeprecated module registration
2025-05-26 14:44:00 +02:00
DavHau
94deed32b9
Merge pull request 'services/wifi: migrate to NetworkManager' ( #3766 ) from DavHau/clan-core:dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3766
2025-05-26 12:14:08 +00:00
DavHau
fe5fcf26c8
clanModules/wifi: remove module
...
It was replaces by a service module and experimental anyways
2025-05-26 19:09:20 +07:00
DavHau
40b0175dbd
services/wifi: migrate to NetworkManager
2025-05-26 19:09:20 +07:00
Brian McGee
717f78b29c
feat(ui): introduces storybook
...
- adds the necessary dependencies and configuration for Storybook.
- refactors the `Button` component and adds some stories for it.
2025-05-26 12:56:51 +01:00
brianmcgee
784e90096b
Merge pull request 'feat(ui): add a clan context provider' ( #3744 ) from feat/clan-uri-context into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3744
2025-05-26 09:26:07 +00:00
renovate[bot]
82f5e60566
Update data-mesher digest to f52e3ee
2025-05-26 08:00:31 +00:00
renovate[bot]
9cef08f5dc
Update treefmt-nix digest to 1f3f7b7
2025-05-26 07:40:10 +00:00
clan-bot
b24808885c
Merge pull request 'Update Clan Core for Checks' ( #3762 ) from update-clan-core-for-checks into main
2025-05-26 03:01:06 +00:00
clan-bot
a9a1d3fa7c
Update pinned clan-core for checks
2025-05-26 02:51:22 +00:00
renovate[bot]
f6ff3c7121
Update disko digest to a894f28
2025-05-26 02:22:29 +00:00
renovate[bot]
664dc0d43a
Lock file maintenance
2025-05-26 00:20:21 +00:00
renovate[bot]
25a887a91b
Lock file maintenance
2025-05-26 00:00:32 +00:00
Luis Hebendanz
5cc757f620
Merge pull request 'clan-cli: Fix too long path for socket issue #3756 ' ( #3757 ) from Qubasa/clan-core:fix_path_to_long into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3757
2025-05-25 20:28:46 +00:00
Qubasa
b85aead33c
clan-cli: Fix too long path for socket issue #3756
2025-05-25 22:16:51 +02:00
kenji
6b5bfb8274
Merge pull request 'typo' ( #3755 ) from nim65s/clan-core:typo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3755
2025-05-25 17:05:30 +00:00
Guilhem Saurel
f7dc8c07ce
another typo
2025-05-25 18:02:06 +02:00
Guilhem Saurel
2a67fd8935
typo
2025-05-25 17:36:14 +02:00
clan-bot
fc78c418cb
Merge pull request 'Update Clan Core for Checks' ( #3754 ) from update-clan-core-for-checks into main
2025-05-25 03:01:27 +00:00
clan-bot
33455a2090
Update pinned clan-core for checks
2025-05-25 02:51:32 +00:00
clan-bot
37a75df12d
Merge pull request 'Update Clan Core for Checks' ( #3753 ) from update-clan-core-for-checks into main
2025-05-24 03:00:43 +00:00
clan-bot
4179b06ae9
Update pinned clan-core for checks
2025-05-24 02:51:23 +00:00
Johannes Kirschbauer
fe933d8eb7
Fix(machines/create): check if machine is already created
2025-05-23 22:31:06 +02:00
Johannes Kirschbauer
c8588eddb6
Fix(machines/create): always add 'deploy.targetHost'
...
Rationale: not passing the value, is equivalent to deleting a value from the inventory store
See: 'delete_by_path'
deploy.targetHost has a default of null (None)
2025-05-23 22:07:09 +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
0bf183b73b
fix(tests): use inventory store to interact with the inventory
2025-05-23 21:46:35 +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