暂时关闭抓大鹅的作品公开显示
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
- 旧 view 退到底层 source / 兼容职责。
|
||||
- 新 `public_work_*` view 是 `api-server` 公开列表 / 详情的统一主读模型。
|
||||
- 各玩法 source view 只暴露 `visible=true` 的已发布作品;旧数据迁移默认补 `visible=true`,避免历史作品被误隐藏。
|
||||
- 临时运行约束:SpacetimeDB 2.2 下抓大鹅 `match_3_d_gallery_view` 的 `publication_status` 索引过滤在源表更新触发统一 view 刷新时可能初始化 panic;为避免后台隐藏作品打爆 module instance,统一 `public_work_*` view 暂不级联抓大鹅 source view,抓大鹅公开入口先保留玩法专用路径。后续应以 source projection 表替代索引 view 后再重新并入统一 read model。
|
||||
- 旧 `/api/runtime/<play>/gallery` 响应 shape 保持兼容,由 BFF mapper 把统一 cache 再映射回当前 DTO。
|
||||
- 旧详情 / runtime / 点赞 / 游玩 / Remix 仍走玩法专用路径。
|
||||
|
||||
|
||||
@@ -32,11 +32,10 @@ pub fn public_work_gallery_entry(ctx: &AnonymousViewContext) -> Vec<PublicWorkGa
|
||||
.into_iter()
|
||||
.map(map_wooden_fish_gallery_entry),
|
||||
);
|
||||
entries.extend(
|
||||
match3d_gallery_view(ctx)
|
||||
.into_iter()
|
||||
.map(map_match3d_gallery_entry),
|
||||
);
|
||||
// 中文注释:SpacetimeDB 2.2 的匿名 view 只能走索引读取;当前抓大鹅 source view 的
|
||||
// publication_status 索引在源表更新触发统一 read model 刷新时可能初始化 panic。
|
||||
// 后台可见性操作优先不能打爆模块实例,抓大鹅公开入口暂时保留玩法专用路径,待
|
||||
// source projection 表替代索引 view 后再重新并入统一公开列表。
|
||||
entries.extend(
|
||||
square_hole_gallery_view(ctx)
|
||||
.into_iter()
|
||||
@@ -89,11 +88,7 @@ pub fn public_work_detail_entry(ctx: &AnonymousViewContext) -> Vec<PublicWorkDet
|
||||
.into_iter()
|
||||
.map(map_wooden_fish_detail_entry),
|
||||
);
|
||||
entries.extend(
|
||||
match3d_gallery_view(ctx)
|
||||
.into_iter()
|
||||
.map(map_match3d_detail_entry),
|
||||
);
|
||||
// 中文注释:同上,暂不在统一公开详情 view 中级联抓大鹅 source view。
|
||||
entries.extend(
|
||||
square_hole_gallery_view(ctx)
|
||||
.into_iter()
|
||||
|
||||
Reference in New Issue
Block a user