Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(en): Make snapshot syncing future-proof (#1441)
## What ❔ Adds a snapshot version to snapshot metadata returned by the corresponding endpoint. If the version of the returned snapshot is not supported by the EN, it immediately errors with an informative message. ## Why ❔ We plan to change the snapshot format soon-ish, but it could happen after the initial public EN release. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`. - [x] Linkcheck has been run via `zk linkcheck`.
- Loading branch information
Showing
16 changed files
with
201 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...lib/dal/.sqlx/query-31334f2878b1ac7d828d5bc22d65ef6676b2eac623c0f78634cae9072fe0498a.json
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
...lib/dal/.sqlx/query-39849c30cdfa1827d69313357f92c495462e5aa430fe135d1db1f9bad1e72156.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...lib/dal/.sqlx/query-406e51d7884cdff36632ccf97912484f0a0d76a8097b61ead5f1f20301ce524d.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 10 additions & 4 deletions
14
...2d56bbace9013f1d95ea0926eef1fb48039b.json → ...28f7b515cf894e63fc95165c9211f71daa36.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
...lib/dal/.sqlx/query-995cecd37a5235d1acc2e6fc418d9b6a1a6fe629f9a02c8e33330a0efda64068.json
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
core/lib/dal/migrations/20240315132330_add_version_column_to_snapshots.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE snapshots | ||
DROP COLUMN version; |
2 changes: 2 additions & 0 deletions
2
core/lib/dal/migrations/20240315132330_add_version_column_to_snapshots.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE snapshots | ||
ADD COLUMN version INT NOT NULL DEFAULT 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.