fix(orchestrator): check-update 改查 dsh-harness-one(0.5+ 用户检查更新失灵) - #86
Merged
Conversation
system/info 的检查端点自 v0.5.0 单包化后漏改:仍查废弃老包 dsh-ccpg-one(latest 永钉 0.4.1),导致所有 0.5.0+ 用户点 「检查更新」永远「已是最新」,看不到 0.6.x。执行器 latestVersion() 一直是对的(查 dsh-harness-one),只有检查口径错位——用户看到 不提示,实际有新版可升。 改为复用 system-upgrade.js 导出的 PACKAGE(dsh-harness-one), 检查口径与实际升级口径同源,不再两处写包名。 测试:system-upgrade 12 例 + orchestrator 17 套全绿(端点无 单测直测,行为由隔离环境 UI 实测覆盖——见升级验证流程)。
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
v0.5.0 单包化时漏改
/wf1/api/system/check-update:它仍查废弃老包dsh-ccpg-one(npm latest 永钉 0.4.1)。所有 0.5.0+ 用户(含 0.6.0/0.6.1)点「检查更新」永远显示「已是最新」,实际执行器latestVersion()查的是dsh-harness-one,升级能力正常但入口失灵——今天发 0.6.1 后实测升级流程时发现。方案
复用
system-upgrade.js导出的PACKAGE(dsh-harness-one),检查口径与升级执行口径同源;顺手把 user-agent 也改成新包名。验证
后续
合入后随下个版本发布;0.6.1 用户升级到该版本前,检查更新仍不提示(但升级按钮路径完好——本 PR 合入后将按 0.6.2 发出)。