Houkime
dbac010303
refactor(backups): reorder imports
2023-07-17 16:05:00 +03:00
Houkime
c09f2f393b
refactor(backups): api readability reorg
2023-07-17 16:05:00 +03:00
Houkime
ce9b24b579
feature(dev_qol): mypy type checking and rope refactoring support
2023-07-17 16:05:00 +03:00
Houkime
4b1594ca22
refactoring(backups): backuper -> backupper
2023-07-17 16:05:00 +03:00
Houkime
c94b4d07bf
fix(tokens-repo): persistent hashing
2023-07-17 16:05:00 +03:00
Inex Code
4225772573
fix(backups): Providers were not initialized corretly
2023-07-17 16:05:00 +03:00
Houkime
2040272879
fix(redis): Do not shut down redis on ctrl c
...
see https://github.com/NixOS/nix/issues/2141
2023-07-17 16:05:00 +03:00
Inex Code
f3dd18a830
ci: only run on push event
2023-07-17 16:05:00 +03:00
Inex Code
0d622d431f
ci: ignore the failure when trying to kill redis
2023-07-17 16:05:00 +03:00
Inex Code
f27a3df807
refactor(backups): fix typing errors
2023-07-17 16:05:00 +03:00
Inex Code
1e840f8cff
ci: fix killing redis-server
2023-07-17 16:05:00 +03:00
Inex Code
b78ee5fcca
refactor(api): Group mutations
...
I've learned that there is no problem in grouping mutations like we do with queries.
This is a big mistake from my side, now we have legacy not so conveniently placed endpoints.
I've grouped all mutations, left the copies of old ones flattened in the root for backwards compatibility.
We will migrate to mutation groups on client side, and backups now only use grouped mutations.
Tests are updated.
2023-07-17 16:05:00 +03:00
Houkime
53dfb38284
test(backups): ensure asking to reload snaps does not explode the server
2023-07-17 16:05:00 +03:00
Houkime
ecf72948b1
test(backups): setting autobackup period
2023-07-17 16:05:00 +03:00
Houkime
f829a34dc7
refactor(backups): delete legacy provider setting
2023-07-17 16:05:00 +03:00
Houkime
9f096ed2c0
feature(backups): actually dealing with situation when the provider is not configured
2023-07-17 16:05:00 +03:00
Houkime
cd32aa83b7
refactor(backups): NoneBackupper class for those cases when we do not know
2023-07-17 16:05:00 +03:00
Houkime
a56461fb96
refactor(backups): make a dir for backuppers
2023-07-17 16:05:00 +03:00
Houkime
b346a283a4
test(backups): add a backend json reset test
2023-07-17 16:05:00 +03:00
Houkime
806fb3c84b
feature(backups): resetting json config too
2023-07-17 16:05:00 +03:00
Houkime
1fd5db9ff3
fix(backups): fix output API return types for configuration
2023-07-17 16:05:00 +03:00
Houkime
5d95c1b44e
test(backups): preliminary test of repo reset
2023-07-17 16:05:00 +03:00
Houkime
1c96743c5d
test(backups): test reinitting repository
2023-07-17 16:05:00 +03:00
Houkime
38de01da8b
refactor(backups): cleanup localfile-specific logic
2023-07-17 16:05:00 +03:00
Houkime
8475ae3375
refactor(backups): make localfile repos normal
2023-07-17 16:05:00 +03:00
Houkime
a48856c9ad
fix(backups): non-nullable service when backing up
2023-07-17 16:05:00 +03:00
Houkime
a8f72201a7
test(backups): test restore
2023-07-17 16:05:00 +03:00
Houkime
cf2dc6795a
test(backups): use get_data
2023-07-17 16:05:00 +03:00
Houkime
a486825a4f
test(backups): check snapshots getting created
2023-07-17 16:05:00 +03:00
Houkime
eac561c57c
test(backups): test dummy service compliance
2023-07-17 16:05:00 +03:00
Houkime
53638b7e06
test(backups): make dummy service more compliant
2023-07-17 16:05:00 +03:00
Houkime
de1cbcb1ca
test(backups): display errors from api
2023-07-17 16:05:00 +03:00
Houkime
cfda6b0810
fix(backups): shorten snapshot query signature
2023-07-17 16:05:00 +03:00
Houkime
09c79b3477
test(backups): snapshot query
2023-07-17 16:05:00 +03:00
Inex Code
93b98cd4fd
fix(backups): Handle orphaned snapshots
2023-07-17 16:05:00 +03:00
Inex Code
421c92d12e
fix(backups): return type of encryption key
2023-07-17 16:05:00 +03:00
Inex Code
c603394449
fix(backups): try to actually get backup configuration
2023-07-17 16:05:00 +03:00
Houkime
f77556b60e
test(backups): actual testfile
2023-07-17 16:05:00 +03:00
Houkime
b04dfc6c4e
fix(backups): register queries
2023-07-17 16:05:00 +03:00
Houkime
42a5b6f70a
test(backups): test backup API - backing up
2023-07-17 16:05:00 +03:00
Inex Code
32a242b560
feat(backups): register backups in GraphQL schema
2023-07-17 16:05:00 +03:00
Inex Code
a4b0e6f208
fix: BackupConfiguration argument order
2023-07-17 16:05:00 +03:00
Houkime
ad130e392c
feature(backups): check available space before restoring
2023-07-17 16:05:00 +03:00
Houkime
780c12df6c
refactor(backups): expect one more error of restic json output parsing
2023-07-17 16:05:00 +03:00
Houkime
6da0791b47
feature(backups): integration between restore and jobs
2023-07-17 16:05:00 +03:00
Houkime
792dcd459d
fix(backups): return one job, not an array of one
2023-07-17 16:05:00 +03:00
Houkime
5100f1a497
fix(backups): return 400, not 300
2023-07-17 16:05:00 +03:00
Houkime
44e45a5124
BREAKING CHANGE(backups): support only individual service backup requests(combinable)
2023-07-17 16:05:00 +03:00
Houkime
0b8f77e6f7
feature(backups): set autobackup period from gql
2023-07-17 16:05:00 +03:00
Houkime
e3545d4541
feature(backups): get all snapshots if requested by api
2023-07-17 16:05:00 +03:00