mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
feat: Automatic spec versioning
This commit is contained in:
parent
74b8b4e649
commit
94d837a4f7
1 changed files with 3 additions and 1 deletions
|
|
@ -109,7 +109,9 @@ export function clearConfig(config) {
|
|||
}
|
||||
|
||||
export function initializeConfig(config, spec) {
|
||||
if (!config.spec || config.spec.version !== spec.version) {
|
||||
const currentVersion = JSON.stringify(spec)
|
||||
if (!config.spec || !config.spec.version || config.spec.version !== currentVersion) {
|
||||
spec.version = currentVersion
|
||||
clearConfig(config)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue