Resolve "Демо-сценарий end-to-end" - #108
Merged
Merged
Conversation
- seed_demo: augments imported objects with believable wear + ONE fresh inspection for a deterministic majority (default 88%), so recompute yields a realistic spread instead of 'almost all overdue/repair'; minority left as the attention/overdue tail; idempotent (demo inspections tagged + re-created) - create_demo_users: idempotent accounts per role (viewer/engineer/manager/admin, admin = superuser) with fixed known passwords; resets password if user exists; prints a login/password/role table - bootstrap_demo: one command — reference -> import -> hydropost history -> seed_demo -> recompute -> demo users (import steps skipped gracefully if raw datasets absent) - README: one-command bring-up, live demo link, demo-accounts table, show script Verified on a clone of the real dataset (1432 objects): before 1145/1432 overdue, repair-heavy; after serviceable=566 monitoring=422 repair=304 emergency=140, overdue 266. All 4 demo logins return correct roles; engineer submits (can't decide, 403), manager approves -> order PDF (200); /admin/ up; idempotent re-runs.
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.
Демо-сид (реалистичное распределение состояний), идемпотентные демо-аккаунты по ролям, оркестратор bootstrap_demo и README с одной командой запуска + таблицей аккаунтов + сценарием показа и ссылкой на живое демо.