Houkime
b9be0be6a2
refactor(backups): privatize assert_restorable and restore_snapshot_from_id
2023-06-26 18:42:26 +00:00
Houkime
2f2c4f14af
refactor(backups): group operations together
2023-06-26 18:30:31 +00:00
Houkime
e6efd1b42d
refactor(backups): move reset() to top because toplevel interface
2023-06-26 18:21:50 +00:00
Houkime
1593474dc1
refactor(backups): make redis and json provider related lowlevels private
2023-06-26 18:20:22 +00:00
Houkime
71eeed926d
refactor(backups): make construct_provider not public
2023-06-26 18:14:15 +00:00
Houkime
81d1762518
refactor(backups): make lookup_provider not public
2023-06-26 18:11:11 +00:00
Houkime
e159d2f1a7
refactor(backups): reorder imports
2023-06-26 18:07:47 +00:00
Houkime
8604caa331
refactor(backups): api readability reorg
2023-06-26 18:00:42 +00:00
Houkime
2f71469f39
refactoring(backups): backuper -> backupper
2023-06-23 12:04:33 +00:00
Houkime
6ca68fae17
fix(tokens-repo): persistent hashing
2023-06-23 11:54:40 +00:00
Inex Code
1664f857ea
fix(backups): Providers were not initialized corretly
2023-06-23 14:36:16 +03:00
Inex Code
e7e0fdc4a1
refactor(backups): fix typing errors
2023-06-23 12:40:10 +03:00
Houkime
5be3c83952
fix(tokens-repo): persistent hashing
2023-06-21 12:15:33 +00:00
993ea93ee4
fix: delete old gen
2023-06-21 10:52:31 +04:00
Inex Code
c6919293b6
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-06-21 06:46:56 +03:00
3d4caaf4ce
fix: encoding
2023-06-20 23:25:54 +04:00
79ef4c9310
fix: task registry
2023-06-20 01:25:04 +04:00
Houkime
e3a87f1d98
test(backups): ensure asking to reload snaps does not explode the server
2023-06-19 14:12:50 +00:00
Houkime
25f3115c05
test(backups): setting autobackup period
2023-06-19 13:28:02 +00:00
Houkime
b5e2499a30
refactor(backups): delete legacy provider setting
2023-06-19 11:17:09 +00:00
Houkime
612a46ee42
feature(backups): actually dealing with situation when the provider is not configured
2023-06-19 11:09:10 +00:00
83cf7cbd6f
fix: jobs
2023-06-18 08:37:27 +04:00
Houkime
4f2f24daac
refactor(backups): NoneBackupper class for those cases when we do not know
2023-06-16 16:03:32 +00:00
Houkime
3449837de9
refactor(backups): make a dir for backuppers
2023-06-16 15:50:31 +00:00
Houkime
79c3b9598c
feature(backups): resetting json config too
2023-06-16 15:09:39 +00:00
Houkime
47aee3c1f1
fix(backups): fix output API return types for configuration
2023-06-16 14:39:00 +00:00
Houkime
8e1e37c766
test(backups): preliminary test of repo reset
2023-06-16 14:33:48 +00:00
Houkime
33c60f971d
test(backups): test reinitting repository
2023-06-16 13:43:41 +00:00
d6c4d458f7
tests: fix some tests
2023-06-16 08:08:36 +04:00
28701e1608
fix: do a redis reset()
2023-06-16 08:08:36 +04:00
96c013c4e7
refactor: delete purest of nix_collect_garbage()
2023-06-16 08:08:36 +04:00
03b5a6b5e4
fix: percentage
2023-06-16 08:08:36 +04:00
af0129bdfe
fix: types, add tests
2023-06-16 04:06:49 +00:00
7553202a69
test: fix nix collect garbage, add tests
2023-06-16 04:06:49 +00:00
7e3adffb68
refactor: nix-collect-garbage is now pure
2023-06-16 04:06:49 +00:00
f42594f1fb
refactor: delete unnecessary import
2023-06-16 04:06:49 +00:00
6ef9222e32
feat: loading percentage
2023-06-16 04:06:49 +00:00
ba168fc92b
fix: subprocess.check_output
2023-06-16 04:06:49 +00:00
57ec87bf43
feat: add nix-collect-garbage job
2023-06-16 04:06:49 +00:00
Inex Code
b3a37e8b1f
fix: Migrate to SP channel from 22.11 installations
2023-06-14 19:27:11 +03:00
Houkime
b3724e240e
refactor(backups): cleanup localfile-specific logic
2023-06-14 14:17:04 +00:00
Houkime
9e0b0d8caa
refactor(backups): make localfile repos normal
2023-06-14 14:07:51 +00:00
Houkime
21791f20a2
test(backups): make dummy service more compliant
2023-06-14 11:55:46 +00:00
Inex Code
c77191864e
style: reformat
2023-06-14 14:03:14 +03:00
Houkime
3344ab7c5d
feat(tokens-repo): add migration of tokens to redis
2023-06-14 14:03:14 +03:00
Houkime
5fbfaa73ea
feat(tokens-repo): add clone() method
2023-06-14 14:02:23 +03:00
Houkime
d0a17d7b7a
fix(tokens-repo): make json _get_stored_new_device_key return tz-aware keys
2023-06-14 14:02:23 +03:00
Houkime
da19cc8c0e
refactor(tokens-repo): move create recovery key to abstract token repository
2023-06-14 14:02:23 +03:00
Houkime
817f414dd9
refactor(tokens-repo): break out storing recovery keys
2023-06-14 14:02:23 +03:00
Houkime
baf72b730b
refactor(tokens-repo): move reset to AbstractTokensRepo
2023-06-14 14:02:23 +03:00