feat(frontend): drop demo labels from the product screens
This commit is contained in:
1 parent
c836d02ea3
commit
90ff71735a
44 files changed
+165
-376
No files matched your search
@@ -722,7 +722,7 @@ Implemented as a deterministic search without ML: `POST /api/v1/organizations/{o
|
||||
- Owner only. For the MVP milestone the active owner of the organization searches. The HTTP boundary refuses every other role (`ownerCompanyOperations`), and the usecase repeats the role check under the membership lock, so a membership alone grants nothing. The full role and assignment matrix is later work and must not widen rights by one membership.
|
||||
- Charged like card reads. A search returns card content (the confirmed category with its strength and basis, the declared grade, the stack, the experience band, the work formats, and the explanation), so it passes through the same allowance as a card read. The whole visible bank is ranked, and then each group is cut to `max_results_per_group` of the policy version (demo value 10, so at most 30 reveals for one search, below the 50 distinct card views per day of tier E0); no total is returned. Walking the output in the order `main`, `near`, `unconfirmed`, each newly revealed candidate is reserved through the company quota port (`candidateview.SearchViews.Reserve`, the same `ReserveCardView` as a card read: idempotent per organization and candidate inside the window, so repeating the search or opening the card afterwards does not charge twice), and the candidate's access history gets one `card_viewed` entry per search with the fields actually returned (`SearchViews.Record`), all in the transaction of the search. When the allowance ends, the output stops at the first refusal: the entries already paid for are returned, `truncated` is true, nothing is written for the rest, and there is no error. `truncated` is also true when a group exceeded its limit; it carries no count. Opening a card is still the read for the full card.
|
||||
- One entry per candidate specialization, built from the card the organization is allowed to see. A specialization is confirmed only when the card shows its category (`categories` published and not generalized away); a role that the self-assessment lists as unconfirmed is an unconfirmed entry; a role marked confirmed whose category the card does not show gives no entry, because a result cannot claim a confirmation the candidate did not publish. The same handle can therefore be confirmed in Backend and unconfirmed in Networks, and a Backend confirmation never changes the Networks entry. The status of an entry follows the specialization of the request: a need with a confirmed specialization and a `specialization` filter both restrict it, and two different values leave nothing. A need without a confirmed specialization searches all of them and returns each specialization separately.
|
||||
- Category basis. Each confirmed category of an entry carries `basis` from the same stored row as the card. Today it is `synthetic_demo`, a demonstration that is not a validated measurement. The organization reads it as a demonstration confirmation; the field is required in `MatchCategory`, so a category without a basis cannot exist.
|
||||
- Category basis. Each confirmed category of an entry carries `basis` from the same stored row as the card. Today it is `synthetic_demo`, a demonstration that is not a validated measurement. The organization interface shows it as an ordinary confirmation (standard or strong) while the basis itself stays in the API response; the field is required in `MatchCategory`, so a category without a basis cannot exist.
|
||||
- Filters, all applied before scoring. `confirmed_grade`, `confirmed_category`, and `confirmation_status: confirmed` keep only confirmed entries; a declared grade never satisfies them. `declared_grade` is a separate claim. `stack` requires every named tag in the card and also counts as a required skill of the request. `conditions.work_formats` needs one common format, and `conditions.salary_compatibility` needs the same value; an unknown card value never satisfies a condition. An unconfirmed category alone hides nothing: without a confirmed filter the declared specializations are listed.
|
||||
- Requested skills. The skills of the Cov come from the confirmed required (weight 2) and desired (weight 1) skills of the need snapshot, with the tags of the `stack` filter as required. A code is counted once however often it is repeated. A skill without a taxonomy code has no reviewed mapping, matches nothing, and is a gap. An empty request uses the neutral Cov 0.5 instead of dividing by zero. The need is read by `requirements_version` (`GetVersion`); a general version that only changed the title is not a requirements snapshot and answers 404, and the snapshot of an older requirements version stays searchable and unchanged.
|
||||
- Evidence of a skill. Each requested skill takes the best product of the trust, attribution, and relation coefficients over the permitted evidence, not their sum. The evidence is the stated stack tags of the card (trust 0, a claim) and, for a confirmed entry, the one assessment fact that supports its category (trust 1, personal). The relation is exact for the same code, broader for a specialization over a technology, and narrower the other way, by the `skill_taxonomy` of the policy version (demo: `backend` over `docker`, `go`, `kafka`, `postgresql`; `devops_sre` over `docker`); a version without a taxonomy relates only equal codes, so the version fully determines the result. The taxonomy is a demonstration mapping, not a measured one. An online Backend result is worth 0.6 * 1.0 * 0.4 = 0.24 for a requested Go and a stated Go tag 0.25; the near threshold is 0.25, so a candidate whose only evidence for a required technology is a Backend assessment is always in `near` for it, and a stated tag alone is enough to be in `main`. That consequence of the PRD values is an owner question. Repeating a tag or a skill adds nothing.
|
||||
|
||||
+3
-3
@@ -78,13 +78,13 @@ The full inventory and the seed rules are in [Isolated demo stand](#isolated-dem
|
||||
|
||||
### 4. Demonstration route
|
||||
|
||||
1. Candidate: sign in as `candidate@demo.lincodex.test` and open the skill assessment (`/candidate/assessment`). The demonstration express run has three items and ends with the result "demonstration": no grade, category, percentile, or evidence, and it does not appear in the real result history. This is the express run without a grade.
|
||||
1. Candidate: sign in as `candidate@demo.lincodex.test` and open the skill assessment (`/candidate/assessment`). The express test has three items and ends with the result "Экспресс-тест без грейда" (express test without a grade): no grade, category, percentile, or evidence, and it does not appear in the real result history. This is the express run without a grade.
|
||||
2. On the same page start the Backend Junior full test with Go: 25 items, a 72-hour deadline, two work sessions, no practice. After it completes, the result is compared with the pass mark of the demo policy; a passed test receives an uncalibrated synthetic category, a failed one the result `not_confirmed`. The result and the history open at `/candidate/results`.
|
||||
3. Prepared candidate: sign in as `prepared-1@demo.lincodex.test` and open the results, the skill evidence, and the privacy settings with the published card.
|
||||
4. Employer: sign in as `employer-alpha@demo.lincodex.test`, select "Alpha", create a need, and open the search (`/employer/candidates`). The main group holds the six prepared cards with the flags `ml_unavailable` and `cohort_below_30`; a card and its evidence open from the results. In "Beta" the same account is a recruiter, and search answers 403: in the minimal release only the owner can search.
|
||||
5. Invitations: the company creates an invitation with the "Invite" button of a search result, sends it, and keeps the address of the invitation page: it holds `invitation_id`. The prepared candidate accepts the invitation at `/candidate/invitations`, choosing the contacts and the consent C4, and the company reads the disclosed contacts on the same invitation page. The company's invitation list is still a placeholder, so keep the page address.
|
||||
|
||||
The step-by-step guide for eight minutes, with links to the screens, the logins, and the section "What is demonstration here" is on the stand at `/demo`; the start page has the button "Open the jury guide". The guide exists only in the demonstration stand build.
|
||||
The eight-minute step-by-step guide with links to the screens and the logins is on the stand at `/demo`; the start page has the button "Open the jury guide". The guide exists only in the demonstration stand build.
|
||||
|
||||
### 5. FSP, ML, and data
|
||||
|
||||
@@ -485,7 +485,7 @@ make -C deploy demo-reset DEMO_MODE=isolated
|
||||
make -C deploy demo-down DEMO_MODE=isolated
|
||||
```
|
||||
|
||||
- Every target requires `DEMO_MODE=isolated` and refuses before any Docker command without it. It acts only on the project `DEMO_PROJECT` (default `lincodex-demo`), whose name must contain `demo` and differ from `APP_PROJECT`; the ordinary project and its volumes are never addressed. The project is `docker-compose.yml` with `docker-compose.demo.yml`, built from the current sources unless a release manifest is selected (see below). The overlay sets `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` on the demo backend, so a full test taken there assigns an uncalibrated synthetic category like the prepared ones (see [Demonstration categories on a stand](#demonstration-categories-on-a-stand)). It reads the secrets from the root `.env` (`ENV_FILE`) and overrides the project name, networks, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, default 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, default `http://localhost:8090`), and the pinned subnet (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`), so it can run next to the ordinary stand. The bind address stays `APP_HTTP_BIND`. Behind the edge, set `DEMO_PUBLIC_URL` to the public origin. The mail transport is the one in `.env`; the prepared accounts need no mail. The overlay also builds the frontend with `VITE_DEMO_STAND=true`: the jury guide appears at `/demo`, the start page links to it, and a "Demonstration stand" banner marks every page. A stand restored from a release manifest (`RELEASE_ID`) uses the core frontend built without this flag, so it has no guide.
|
||||
- Every target requires `DEMO_MODE=isolated` and refuses before any Docker command without it. It acts only on the project `DEMO_PROJECT` (default `lincodex-demo`), whose name must contain `demo` and differ from `APP_PROJECT`; the ordinary project and its volumes are never addressed. The project is `docker-compose.yml` with `docker-compose.demo.yml`, built from the current sources unless a release manifest is selected (see below). The overlay sets `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` on the demo backend, so a full test taken there assigns an uncalibrated synthetic category like the prepared ones (see [Demonstration categories on a stand](#demonstration-categories-on-a-stand)). It reads the secrets from the root `.env` (`ENV_FILE`) and overrides the project name, networks, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, default 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, default `http://localhost:8090`), and the pinned subnet (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`), so it can run next to the ordinary stand. The bind address stays `APP_HTTP_BIND`. Behind the edge, set `DEMO_PUBLIC_URL` to the public origin. The mail transport is the one in `.env`; the prepared accounts need no mail. The overlay also builds the frontend with `VITE_DEMO_STAND=true`: the jury guide appears at `/demo`, and the start page links to it. A stand restored from a release manifest (`RELEASE_ID`) uses the core frontend built without this flag, so it has no guide.
|
||||
- `demo-seed` starts the project when needed, waits for the backend readiness (migrations and the startup policy are done by then), runs the `demo-seed seed` command in a separate container, and prints the inventory of the seeded records. A second run creates nothing and prints the same inventory. `demo-down` stops the project and keeps its volumes.
|
||||
- `RELEASE_MANIFEST=<path>` or `RELEASE_ID=<id>` on `demo-seed` or `demo-reset` restores the stand from that immutable [release manifest](#release-manifest) instead of the current sources; `restore.demo.command` in the manifest gives the exact command. `release_manifest.py demo-override` first checks the manifest structure and its core and demo restore status, the hashes of the core and demo Compose files and of the data artifacts, and the exact local images, then writes a private temporary Compose override that pins every service and the `demo-seed` command to the recorded image IDs and digests. Compose starts with `--no-build --pull never`, the seed runs without `--build`, and after the readiness check the running containers are compared with the manifest. A manifest that cannot be restored stops the target before any Compose command. `demo-down` does not need the manifest.
|
||||
- `demo-reset` first runs `demo-seed check-reset` against the demo database. It refuses, and deletes nothing, when the database holds any account outside the reserved domain `@demo.lincodex.test`, for example a visitor's own registration: such an account is ordinary data. Otherwise it removes the demo project with its volumes (`down --volumes` of `DEMO_PROJECT` only), starts it again, and seeds it. The demo overlay labels the PostgreSQL, SeaweedFS, and Kafka volumes with `org.lincodex.demo-mode=isolated` when it creates them; every target refuses a volume of the project without that label, so a volume of an ordinary stand is never adopted or discarded. A stand that the reset refuses can only be cleared by a deliberate manual decision of the operator.
|
||||
|
||||
@@ -722,7 +722,7 @@ contact_grant относится к паре кандидат-компания
|
||||
- Только владелец. Для MVP ищет действующий владелец организации. HTTP-граница отклоняет любую другую роль (`ownerCompanyOperations`), а usecase повторяет проверку роли под блокировкой членства, поэтому само членство ничего не дает. Полная матрица ролей и назначений - более поздняя работа и не должна расширять права по одному членству.
|
||||
- Оплата как чтение карточек. Поиск возвращает содержимое карточки (подтвержденную категорию с силой и основанием, заявленный грейд, стек, диапазон стажа, форматы работы и объяснение), поэтому проходит через тот же лимит, что чтение карточки. Ранжируется весь видимый банк, затем каждая группа обрезается до `max_results_per_group` версии политики (демо 10, то есть не более 30 показов за один поиск, меньше 50 уникальных просмотров в сутки уровня E0); итог не возвращается. В порядке `main`, `near`, `unconfirmed` каждый впервые показанный кандидат резервируется через порт квоты компании (`candidateview.SearchViews.Reserve`, тот же `ReserveCardView`, что у чтения карточки: идемпотентно на организацию и кандидата внутри окна, поэтому повтор поиска или открытие карточки после него не списывает дважды), а в истории доступа кандидата появляется по одной записи `card_viewed` за поиск с фактически возвращенными полями (`SearchViews.Record`); все это в транзакции поиска. Когда лимит заканчивается, вывод останавливается на первом отказе: возвращаются уже оплаченные записи, `truncated` истинно, для остальных ничего не пишется, ошибки нет. `truncated` истинно и когда группа превысила предел; числа оно не несет. Полная карточка по-прежнему открывается своим чтением.
|
||||
- Одна запись на специализацию кандидата, из карточки, которую организации разрешено видеть. Специализация подтверждена, только когда карточка показывает ее категорию (`categories` опубликованы и не обобщены до пустоты); роль, помеченная в самооценке как неподтвержденная, - неподтвержденная запись; роль, помеченная подтвержденной, чью категорию карточка не показывает, записи не дает, потому что результат не может заявлять подтверждение, которое кандидат не опубликовал. Один и тот же handle может быть подтвержден по Backend и не подтвержден по сетям, и подтверждение Backend никогда не меняет запись по сетям. Статус записи следует специализации запроса: подтвержденная специализация потребности и фильтр `specialization` оба ограничивают поиск, а два разных значения не оставляют ничего. Потребность без подтвержденной специализации ищет по всем и возвращает каждую специализацию отдельно.
|
||||
- Основание категории. Каждая подтвержденная категория записи несет `basis` из той же строки, что и карточка. Сейчас это `synthetic_demo`: демонстрация, которая не является проверенным измерением. Организация видит ее как демонстрационное подтверждение; поле обязательно в `MatchCategory`, поэтому категория без основания невозможна.
|
||||
- Основание категории. Каждая подтвержденная категория записи несет `basis` из той же строки, что и карточка. Сейчас это `synthetic_demo`: демонстрация, которая не является проверенным измерением. Интерфейс организации показывает ее как обычное подтверждение (стандартное или сильное), а само основание остается в ответе API; поле обязательно в `MatchCategory`, поэтому категория без основания невозможна.
|
||||
- Фильтры, все до расчета. `confirmed_grade`, `confirmed_category` и `confirmation_status: confirmed` оставляют только подтвержденные записи; заявленный грейд их не удовлетворяет. `declared_grade` - отдельное заявление. `stack` требует каждый названный тег в карточке и одновременно считается обязательным навыком запроса. `conditions.work_formats` требует один общий формат, `conditions.salary_compatibility` - то же значение; неизвестное значение карточки условие не удовлетворяет. Одна неподтвержденная категория ничего не скрывает: без подтвержденного фильтра заявленные специализации выводятся.
|
||||
- Запрошенные навыки. Навыки для Cov берутся из подтвержденных обязательных (вес 2) и желательных (вес 1) навыков снимка потребности, теги фильтра `stack` считаются обязательными. Код считается один раз, сколько бы раз он ни повторялся. Навык без таксономического кода не имеет проверенного соответствия, ничему не соответствует и остается пробелом. Пустой запрос использует нейтральное Cov 0.5 вместо деления на ноль. Потребность читается по `requirements_version` (`GetVersion`); общая версия, изменившая только название, не является снимком требований и дает 404, а снимок прежней версии требований остается доступным и неизменным.
|
||||
- Доказательство навыка. Для каждого запрошенного навыка берется лучшее произведение коэффициентов доверия, атрибуции и связи среди разрешенных доказательств, а не их сумма. Доказательства - заявленные теги стека карточки (доверие 0, заявление) и для подтвержденной записи единственный факт оценки, подтверждающий ее категорию (доверие 1, личный). Связь точная для того же кода, широкая для специализации над технологией и узкая в обратную сторону, по `skill_taxonomy` версии политики (демо: `backend` над `docker`, `go`, `kafka`, `postgresql`; `devops_sre` над `docker`); версия без таксономии связывает только равные коды, так что версия политики полностью определяет результат. Таксономия - демонстрационное соответствие, а не измеренное. Онлайн-результат Backend стоит 0.6 * 1.0 * 0.4 = 0.24 для запрошенного Go, заявленный тег Go - 0.25; порог близости 0.25, поэтому кандидат, у которого единственное доказательство обязательной технологии - оценка Backend, для нее всегда в `near`, а одного заявленного тега достаточно для `main`. Это следствие значений PRD - вопрос владельцу продукта. Повтор тега или навыка ничего не добавляет.
|
||||
|
||||
+3
-3
@@ -78,13 +78,13 @@ Docker Engine с Compose plugin, GNU make, python3 (цели `deploy` запус
|
||||
|
||||
### 4. Маршрут демонстрации
|
||||
|
||||
1. Кандидат: войдите как `candidate@demo.lincodex.test` и откройте проверку навыков (`/candidate/assessment`). Демонстрационный экспресс-запуск содержит три задания и завершается результатом "демонстрация": без грейда, категории, перцентиля и доказательства, в истории реальных результатов он не появляется. Это и есть экспресс-прогон без грейда.
|
||||
1. Кандидат: войдите как `candidate@demo.lincodex.test` и откройте проверку навыков (`/candidate/assessment`). Экспресс-тест содержит три задания и завершается результатом "Экспресс-тест без грейда": без грейда, категории, перцентиля и доказательства, в истории реальных результатов он не появляется. Это и есть экспресс-прогон без грейда.
|
||||
2. Там же начните полный тест Backend Junior с Go: 25 заданий, срок 72 часа, две рабочие сессии, без практики. После завершения результат сравнивается с порогом демонстрационной политики; пройденный тест получает неоткалиброванную синтетическую категорию, непройденный - результат `not_confirmed`. Результат и история открываются в `/candidate/results`.
|
||||
3. Подготовленный кандидат: войдите как `prepared-1@demo.lincodex.test` и откройте результаты, доказательства навыка и настройки приватности с опубликованной карточкой.
|
||||
4. Работодатель: войдите как `employer-alpha@demo.lincodex.test`, выберите "Альфу", создайте потребность и откройте подбор (`/employer/candidates`). Основная группа содержит шесть подготовленных карточек с отметками `ml_unavailable` и `cohort_below_30`; карточка и ее доказательства открываются из выдачи. В "Бете" тот же аккаунт - рекрутер, и поиск отвечает 403: в минимальном выпуске искать может только владелец.
|
||||
5. Приглашения: компания создает приглашение кнопкой "Пригласить" в результате поиска, отправляет его и сохраняет адрес страницы: в нем `invitation_id`. Подготовленный кандидат принимает приглашение в `/candidate/invitations`, выбрав контакты и согласие C4, а компания читает переданные контакты на той же странице приглашения. Список приглашений компании пока заготовка, поэтому адрес страницы нужен.
|
||||
|
||||
Пошаговый гид на восемь минут со ссылками на экраны, логинами и разделом "Что здесь демонстрационное" открыт на стенде по адресу `/demo`; на главной есть кнопка "Открыть гид для жюри". Гид есть только в сборке демонстрационного стенда.
|
||||
Пошаговый гид на восемь минут со ссылками на экраны и логинами открыт на стенде по адресу `/demo`; на главной есть кнопка "Открыть гид для жюри". Гид есть только в сборке демонстрационного стенда.
|
||||
|
||||
### 5. ФСП, ML и данные
|
||||
|
||||
@@ -487,7 +487,7 @@ make -C deploy demo-reset DEMO_MODE=isolated
|
||||
make -C deploy demo-down DEMO_MODE=isolated
|
||||
```
|
||||
|
||||
- Каждая цель требует `DEMO_MODE=isolated` и без него отказывает до любой команды Docker. Она работает только с проектом `DEMO_PROJECT` (по умолчанию `lincodex-demo`), имя которого должно содержать `demo` и отличаться от `APP_PROJECT`; к обычному проекту и его томам цели не обращаются. Проект собирается из `docker-compose.yml` и `docker-compose.demo.yml` по текущим исходникам, если не выбран манифест выпуска (см. ниже). Overlay включает `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` в демонстрационном backend, поэтому полный тест на нем присваивает неоткалиброванную синтетическую категорию, как и подготовленные попытки (см. [Демонстрационные категории на стенде](#демонстрационные-категории-на-стенде)). Секреты берутся из корневого `.env` (`ENV_FILE`), а имя проекта, сети, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, по умолчанию 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, по умолчанию `http://localhost:8090`) и закрепленная подсеть (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`) переопределяются, поэтому стенд может работать рядом с обычным. Адрес привязки остается `APP_HTTP_BIND`. За edge укажите в `DEMO_PUBLIC_URL` публичный origin. Почтовый транспорт берется из `.env`; подготовленным аккаунтам почта не нужна. Overlay также собирает фронтенд с `VITE_DEMO_STAND=true`: появляются гид для жюри на `/demo`, ссылка на него на главной и полоса "Демонстрационный стенд" на каждой странице. Стенд из манифеста выпуска (`RELEASE_ID`) берет фронтенд основного выпуска, собранный без этого флага, поэтому гида на нем нет.
|
||||
- Каждая цель требует `DEMO_MODE=isolated` и без него отказывает до любой команды Docker. Она работает только с проектом `DEMO_PROJECT` (по умолчанию `lincodex-demo`), имя которого должно содержать `demo` и отличаться от `APP_PROJECT`; к обычному проекту и его томам цели не обращаются. Проект собирается из `docker-compose.yml` и `docker-compose.demo.yml` по текущим исходникам, если не выбран манифест выпуска (см. ниже). Overlay включает `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` в демонстрационном backend, поэтому полный тест на нем присваивает неоткалиброванную синтетическую категорию, как и подготовленные попытки (см. [Демонстрационные категории на стенде](#демонстрационные-категории-на-стенде)). Секреты берутся из корневого `.env` (`ENV_FILE`), а имя проекта, сети, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, по умолчанию 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, по умолчанию `http://localhost:8090`) и закрепленная подсеть (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`) переопределяются, поэтому стенд может работать рядом с обычным. Адрес привязки остается `APP_HTTP_BIND`. За edge укажите в `DEMO_PUBLIC_URL` публичный origin. Почтовый транспорт берется из `.env`; подготовленным аккаунтам почта не нужна. Overlay также собирает фронтенд с `VITE_DEMO_STAND=true`: появляются гид для жюри на `/demo`, ссылка на него на главной. Стенд из манифеста выпуска (`RELEASE_ID`) берет фронтенд основного выпуска, собранный без этого флага, поэтому гида на нем нет.
|
||||
- `demo-seed` при необходимости запускает проект, ждет готовности backend (к этому моменту миграции и стартовая политика уже применены), выполняет команду `demo-seed seed` в отдельном контейнере и печатает перечень созданных записей. Повторный запуск ничего не создает и печатает тот же перечень. `demo-down` останавливает проект и сохраняет тома.
|
||||
- `RELEASE_MANIFEST=<path>` или `RELEASE_ID=<id>` у `demo-seed` или `demo-reset` восстанавливает стенд из этого неизменяемого [манифеста выпуска](#манифест-выпуска) вместо текущих исходников; точную команду дает `restore.demo.command` в манифесте. Сначала `release_manifest.py demo-override` проверяет структуру манифеста и статус восстановления core и демонстрационного стенда, хеши core и демонстрационных Compose-файлов и артефактов данных, а также точные локальные образы, затем пишет закрытый временный Compose override, который закрепляет каждый сервис и команду `demo-seed` за записанными image ID и digest. Compose запускается с `--no-build --pull never`, seed выполняется без `--build`, а после проверки готовности запущенные контейнеры сверяются с манифестом. Манифест, который нельзя восстановить, останавливает цель до любой команды Compose. Для `demo-down` манифест не нужен.
|
||||
- `demo-reset` сначала выполняет `demo-seed check-reset` против демонстрационной базы. Цель отказывает и ничего не удаляет, если в базе есть хотя бы один аккаунт вне зарезервированного домена `@demo.lincodex.test`, например собственная регистрация посетителя: такой аккаунт - обычные данные. Иначе она удаляет демонстрационный проект вместе с томами (`down --volumes` только для `DEMO_PROJECT`), запускает его снова и заполняет. Overlay при создании помечает тома PostgreSQL, SeaweedFS и Kafka меткой `org.lincodex.demo-mode=isolated`; каждая цель отказывает при томе проекта без этой метки, поэтому том обычного стенда никогда не будет использован или удален. Стенд, сброс которого отклонен, очищается только сознательным ручным решением оператора.
|
||||
|
||||
Reference in new issue
Block a user