Refactor how things are migrated #461

Merged
lx merged 9 commits from format-migration into main 2023-01-03 15:28:25 +00:00
Owner
  • New trait for things that have old versions from which to be migrated
    • Use it for tables and for the Persister object
  • Make explicit places where non-versioned encoding is used, don't use rmp_serde directly but a wrapper in garage_util
  • Reorganize code for S3 tables where there were migrations from formats of v0.5

And also:

  • add k2v to default features
  • silence clippy warning about uppercase things in router
- [x] New trait for things that have old versions from which to be migrated - [x] Use it for tables and for the Persister object - [x] Make explicit places where non-versioned encoding is used, don't use rmp_serde directly but a wrapper in garage_util - [x] Reorganize code for S3 tables where there were migrations from formats of v0.5 And also: - [x] add k2v to default features - [x] silence clippy warning about uppercase things in router
lx added 1 commit 2023-01-03 13:45:22 +00:00
Refactor how things are migrated
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
cdb2a591e9
lx added 1 commit 2023-01-03 13:45:54 +00:00
Update cargo.nix
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
a81200d345
lx added 1 commit 2023-01-03 14:08:46 +00:00
cleanup
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
426d8784da
lx added 1 commit 2023-01-03 14:27:52 +00:00
Make it explicit when using nonversioned encoding
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
8d5505514f
lx added 1 commit 2023-01-03 14:29:42 +00:00
move debug_serialize to garage_util::encode
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
a54b67740d
lx added 1 commit 2023-01-03 14:30:30 +00:00
cargo fmt
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build was killed
d6d571d512
lx added 1 commit 2023-01-03 14:53:26 +00:00
fix doc and add tests for migrate.rs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
33f25d26c7
lx added 1 commit 2023-01-03 15:00:28 +00:00
more idiomatic and shorter
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
c106304b9c
lx added 1 commit 2023-01-03 15:04:14 +00:00
use impossible enum type
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
1d5bdc17a4
lx changed title from WIP: Refactor how things are migrated to Refactor how things are migrated 2023-01-03 15:28:17 +00:00
lx merged commit 73ed9c7403 into main 2023-01-03 15:28:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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: Deuxfleurs/garage#461
No description provided.