Repository navigation
fix(seed): initialize the gallery package only once - #276
Open
smarty-kiki wants to merge 1 commit into
Open
smarty-kiki wants to merge 1 commit into
smarty-kiki wants to merge 1 commit into
Conversation
预置员工由 staffdeck_admin_gallery_seed 按固定 ID 播种,而 seed_demo_data 每次 启动都会调用它:管理员在后台删掉的预置员工会在下次启动时被重新建回来(重启即 复活)。 - seed_staffdeck_admin_gallery 首次播种完成后写入 app_data_migrations 标记 (GALLERY_SEED_MARKER_ID),之后启动直接跳过,不再补齐预置资源 - 标记机制上线前的存量库:检测到 seed_source 行即只补标记、不重播,避免把 管理员此前删掉的员工又建成回来 - 标记随外层事务一起提交;播种中途失败会一并回滚,下次启动可重试 - 回归测试覆盖:标记只写一次、删除单个员工后重启不复活、整批删光后不复活、 存量库补标记且不重播、空库仍能正常初始化
This branch has not been deployed
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.
预置员工由 staffdeck_admin_gallery_seed 按固定 ID 播种,而 seed_demo_data 每次 启动都会调用它:管理员在后台删掉的预置员工会在下次启动时被重新建回来(重启即复活)。