mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
create version graph to handle migrations (#2708)
* create version graph to handle migrations * Fix some version alpha test * connect dataVersion api * rename init fns * improve types and add tests * set data version after backup restore * chore: Add some types tests for version info * wip: More changes to versionInfo tests * wip: fix my stupid * update mocks * update runtime * chore: Fix the loop --------- Co-authored-by: Jade <2364004+Blu-J@users.noreply.github.com> Co-authored-by: J H <dragondef@gmail.com>
This commit is contained in:
@@ -88,6 +88,8 @@ export module Mock {
|
||||
title: 'Bitcoin Core',
|
||||
version: '0.21.0:0',
|
||||
satisfies: [],
|
||||
canMigrateTo: '!',
|
||||
canMigrateFrom: '*',
|
||||
gitHash: 'abcdefgh',
|
||||
description: {
|
||||
short: 'A Bitcoin full node by Bitcoin Core.',
|
||||
@@ -132,6 +134,8 @@ export module Mock {
|
||||
title: 'Lightning Network Daemon',
|
||||
version: '0.11.1:0',
|
||||
satisfies: [],
|
||||
canMigrateTo: '!',
|
||||
canMigrateFrom: '*',
|
||||
gitHash: 'abcdefgh',
|
||||
description: {
|
||||
short: 'A bolt spec compliant client.',
|
||||
@@ -188,6 +192,8 @@ export module Mock {
|
||||
title: 'Bitcoin Proxy',
|
||||
version: '0.2.2:0',
|
||||
satisfies: [],
|
||||
canMigrateTo: '!',
|
||||
canMigrateFrom: '*',
|
||||
gitHash: 'lmnopqrx',
|
||||
description: {
|
||||
short: 'A super charger for your Bitcoin node.',
|
||||
@@ -1684,6 +1690,7 @@ export module Mock {
|
||||
state: 'installed',
|
||||
manifest: MockManifestBitcoind,
|
||||
},
|
||||
dataVersion: MockManifestBitcoind.version,
|
||||
icon: '/assets/img/service-icons/bitcoind.svg',
|
||||
lastBackup: null,
|
||||
status: {
|
||||
@@ -1860,6 +1867,7 @@ export module Mock {
|
||||
state: 'installed',
|
||||
manifest: MockManifestBitcoinProxy,
|
||||
},
|
||||
dataVersion: MockManifestBitcoinProxy.version,
|
||||
icon: '/assets/img/service-icons/btc-rpc-proxy.png',
|
||||
lastBackup: null,
|
||||
status: {
|
||||
@@ -1908,6 +1916,7 @@ export module Mock {
|
||||
state: 'installed',
|
||||
manifest: MockManifestLnd,
|
||||
},
|
||||
dataVersion: MockManifestLnd.version,
|
||||
icon: '/assets/img/service-icons/lnd.png',
|
||||
lastBackup: null,
|
||||
status: {
|
||||
|
||||
@@ -91,6 +91,7 @@ export const mockPatchData: DataModel = {
|
||||
version: '0.20.0:0',
|
||||
},
|
||||
},
|
||||
dataVersion: '0.20.0:0',
|
||||
icon: '/assets/img/service-icons/bitcoind.svg',
|
||||
lastBackup: null,
|
||||
status: {
|
||||
@@ -295,6 +296,7 @@ export const mockPatchData: DataModel = {
|
||||
version: '0.11.0:0.0.1',
|
||||
},
|
||||
},
|
||||
dataVersion: '0.11.0:0.0.1',
|
||||
icon: '/assets/img/service-icons/lnd.png',
|
||||
lastBackup: null,
|
||||
status: {
|
||||
|
||||
Reference in New Issue
Block a user