Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

资源版本问题 #13

Open
boenfu opened this issue Jun 9, 2021 · 0 comments
Open

资源版本问题 #13

boenfu opened this issue Jun 9, 2021 · 0 comments

Comments

@boenfu
Copy link
Member

boenfu commented Jun 9, 2021

场景如下
mongo 存储的:
powerNode version 0.1.0
运行的 power app
power app version 0.2.0


0.2.0 与 0.1.0 之间有 migration

目前已有机制
power app hook 来的时候,会执行 0.1.0 升级到 0.2.0 migration

但如果 powerNode 在升级应用 0.2.0 后未更新过,存储的仍然是 0.1.0 格式的数据
这种情况下如果程序依赖 getContext 等 api 进行数据处理
则需要开发者自行处理查询条件,且无法只使用某一版本的数据

TODO:需要一种机制去更新非活跃的旧数据

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant