Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

✨ Lockdown start/end carried from the workbook; Add dialog explains lockdown refusals (meta#15632) (ovcs) - #4691

Merged
Findeton merged 9 commits into
ovcsfrom
feat/meta-lockdown-schedule/ovcs
Dec 3, 2026
Merged

Findeton merged 9 commits into
ovcsfrom
feat/meta-lockdown-schedule/ovcs

Conversation

@edulix

@edulix edulix commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Parent issue: https://github.com/sequentech/meta/issues/15632 (rc.49 tracker sequentech/meta#15576)

Why

TOR 2.5.4.7.1 and Annex PQRI D.1 3.6.3.1.1 ask the EMS to set the start and end dates of system lockdown. Step already runs START_LOCKDOWN_PERIOD / END_LOCKDOWN_PERIOD event-wide. Two things kept a lockdown schedule out of the demo:

  • The workbook reader dropped the rows. plan_from_workbook.rs CARRIED_ACTIONS kept six actions, so a lockdown row in the release Sheet was dropped with the warning "not one of the scheduled actions the wizard keeps" on the Architect path.
  • The Add dialog hid the reason for a refusal. When manage-election-dates refused a lockdown (for example "Choose a future date for the lockdown schedule."), the Scheduled Events Add dialog showed only the generic "createError".

Change

  • sequent-core: the workbook reader now carries START_LOCKDOWN_PERIOD and END_LOCKDOWN_PERIOD.
    • check_imported_schedule refuses a lockdown that names an election. Step's import and manage-election-dates refuse one too.
    • It also refuses an end at or before the start.
  • admin-portal: the Add dialog shows the server's refusal for a lockdown type, as the lockdown banner (fixedProcessor) already did. The message for other types is unchanged.

The companion Architect UI change is in sequentech/beyond (meta#15632). It needs a Step pin that includes this PR.

Tests

  • cargo test -p sequent-core --features default_features,keycloak,election_config_xlsx,election_config_templates,election_config_archive,election_config_signing --lib -- plan_from_workbook schedul lockdown: 87 passed. This includes the new an_imported_lockdown_schedule_is_kept_for_the_whole_event.
  • admin-portal jest on CreateScheduledEvent.test.ts and LockdownBanner.test.tsx: 46 passed. This includes the new "schedules an event-wide start of lockdown from Add and shows a server refusal".
  • Prettier check passed on the touched files.
  • Not run: full test suites and the server.

🤖 Generated with Claude Code

…a#15632)

The Architect's workbook reader kept only six scheduled actions, so a
START/END_LOCKDOWN_PERIOD row in the release Sheet was dropped with a
warning and never reached the package. Carry both, event-wide only
(Step refuses a lockdown naming an election), with the end after the
start.

The Scheduled Events Add dialog now shows the server's reason when it
refuses a lockdown schedule, as the lockdown banner already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 2

  • release/10.0
  • feat/meta-12767/.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Findeton and others added 8 commits December 3, 2026 14:10
…meta#15632)

manage-election-dates now refuses an event-wide START_LOCKDOWN_PERIOD at or
after a pending END_LOCKDOWN_PERIOD, and an end at or before a pending start,
with "The lockdown must end after it starts." The Add dialog shows it as a
lockdown refusal. Matches the workbook check from the previous commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated sequent-core archives and yarn.lock collisions resolved to the
base (ovcs) placeholders; canonical WASM refresh to be re-queued.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts were only in generated files (the four sequent-core-0.1.0.tgz
archives and packages/yarn.lock); taken from origin/ovcs as temporary
placeholders. Both sides changed packages/sequent-core sources, so a
canonical WASM rebuild is still required.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Findeton
Findeton merged commit be82e9f into ovcs Dec 3, 2026
50 of 52 checks passed
@Findeton
Findeton deleted the feat/meta-lockdown-schedule/ovcs branch December 3, 2026 23:04
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

Successfully merging this pull request may close these issues.

2 participants