Adapt API to the NixOS configuration changes #79

Merged
inex merged 4 commits from remove-rest-flaked into master 2024-01-10 16:53:13 +02:00

At least the following changed:

  • The structure of the userdata.json, and its location
  • Tokens file no longer used, at all
  • Jobs file no longer used
  • Domain file no longer used, we have the domain in userdata file
  • Mail server ID is now simple-nixos-mailserver
  • All existing migration are no longer needed
  • Huey now properly stores its database

We also now use a Nix Flake instead of the Nix shell.

At least the following changed: - The structure of the userdata.json, and its location - Tokens file no longer used, at all - Jobs file no longer used - Domain file no longer used, we have the domain in userdata file - Mail server ID is now `simple-nixos-mailserver` - All existing migration are no longer needed - Huey now properly stores its database We also now use a Nix Flake instead of the Nix shell.
inex added 2 commits 2024-01-09 20:59:23 +02:00
inex requested review from houkime 2024-01-09 21:02:30 +02:00
Poster
Owner

Probably a regression: If manual backup fails, API tries to do it again. I think it shouldn't. Could you please take a look, @houkime ?

Not related to manual backups, it is automatic backups trying to back up a disabled service. There is nothing to backup, so it fails. Filed as #80

~~Probably a regression: If manual backup fails, API tries to do it again. I think it shouldn't. Could you please take a look, @houkime ?~~ Not related to manual backups, it is automatic backups trying to back up a *disabled* service. There is nothing to backup, so it fails. Filed as #80
inex added 1 commit 2024-01-09 21:29:44 +02:00
inex force-pushed remove-rest-flaked from fb5a8142da to a0eb5d572f 2024-01-10 15:05:11 +02:00 Compare
houkime requested changes 2024-01-10 15:56:41 +02:00
@ -0,0 +11,4 @@
## develop & test
```console
$ nix develop
Collaborator

consider

nix --extra-experimental-features nix-command --extra-experimental-features flakes develop

So that a person just needs to copy and paste

consider ``` nix --extra-experimental-features nix-command --extra-experimental-features flakes develop ``` So that a person just needs to copy and paste
Poster
Owner

Added

Added
inex marked this conversation as resolved
@ -0,0 +26,4 @@
return False
return True
def get_token_from_json(self) -> Optional[Token]:
Collaborator

Consider moving this function and related tests into the repo class.

Consider moving this function and related tests into the repo class.
Poster
Owner

New kind of class is needed, filed as #81

New kind of class is needed, filed as #81
houkime marked this conversation as resolved
inex added 1 commit 2024-01-10 16:17:40 +02:00
inex merged commit 0ccb85d5cc into master 2024-01-10 16:53:13 +02:00
inex deleted branch remove-rest-flaked 2024-01-10 16:53:13 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy-rest-api#79
There is no content yet.