feat: add flake services manager #113
No reviewers
Labels
No Label
Bug
Contributions welcome
Did not do
Duplicate
Feature
Module
Backups
Module
GraphQL
Priority
High
Priority
Low
Priority
Medium
Refactor
Severity
High
Severity
Low
Severity
Medium
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SelfPrivacy/selfprivacy-rest-api#113
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "def/add_flake_service_manager"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
feat: add flake service managerto feat: add flake services managerit generates file like this
Nix allows to convert its own code to JSON (if possible, e.g. there are no functions, etc):
Maybe it helps you.
@ -0,0 +45,4 @@
manager.services = services
with FlakeServiceManager() as manager:
assert manager.services == services
Also check the contents of the file itself, without using the context manager
done
@ -0,0 +68,4 @@
with FlakeServiceManager() as manager:
manager.services = services
with FlakeServiceManager() as manager:
Same as before, check if the file is actually modified
@ -0,0 +1,67 @@
import re
from typing import Dict, Tuple, Optional
Dict
is unuseddone
@ -0,0 +2,4 @@
from selfprivacy_api.services.flake_service_manager import (
FlakeServiceManager,
FLAKE_CONFIG_PATH,
FLAKE_CONFIG_PATH
is unuseddone
Waiting for others approval.
d52581e3a4
to958aaf111a
$ nix flake metadata --json /etc/nixos/sp-modules
:@ -0,0 +53,4 @@
)
if __name__ == "__main__":
How do you plan to use this portion?
I guess this is for init, but I see no need to not just have a function for init?
And we will call it from migrations afterwards?
Looks like @def used it for testing without VM
removed
as #117 shows the CI bug is a fluke. I am adding more test internal debug (who could have thought that test infa needs to cope with wild results!? /s ) in #118 in case it ever emerges again.