Skip to content

FAS-CRM-REG-04Policy Recalculation acceptance

Markdown

FAS-CRM-REG-04

Policy Recalculation acceptance

Markdown
  • DocumentProposed
  • Product intentProposed

Product areaCRMModuleRegionsRevision1

Read atservices-crm a8d1364freact-console baf6dae3

Scenarios

5 scenarios proving FEAT-CRM-REG-04 as a whole.

01 Explicit recalculation applies saved coverage behaviour test
Exercises
CAP-CRM-REG-010 CAP-CRM-REG-011 CAP-CRM-REG-012
Relies on
ATS-CRM-REG-010-01 ATS-CRM-REG-011-05 ATS-CRM-REG-012-01
Preconditions
Existing addressed records retain the old target after a saved policy change.
Steps
Inspect need, start recalculation and read the finished run and records.
Expected
Eligible records adopt the saved target and the finished run exposes progress.
Data
Existing addressed records retain the old target after a saved policy change.
Bound to
Source
services-crm:tests/e2e/dev/regions.dev.spec.ts#moves the contact to its region under the new rules
02 Newer policy changes remain outstanding after an older run interaction test
Exercises
CAP-CRM-REG-010 CAP-CRM-REG-011 CAP-CRM-REG-012
Relies on
ATS-CRM-REG-010-04 ATS-CRM-REG-011-04 ATS-CRM-REG-012-01
Preconditions
A small-batch run is still processing.
Steps
Save a rule during processing, finish the run, read its completed status and inspect policy currency.
Expected
Completion is visible while the newer generation still needs recalculation.
Data
A small-batch run is still processing.
Bound to
Source
services-crm:modules/regions/tests/integration/services/region-assignment/region-assignment-rules.integration.spec.js#says one is still needed, because the run was recorded under the rules as they were before
03 A retryable failure recovers through the same run lifecycle proposed
Exercises
CAP-CRM-REG-010 CAP-CRM-REG-011 CAP-CRM-REG-012
Relies on
ATS-CRM-REG-012-03 ATS-CRM-REG-012-05
Preconditions
A recorded run fails a batch once.
Steps
Read its running error, repair the fixture and redeliver until completion, then inspect currency.
Expected
The same run resumes committed progress, clears its error and covers its starting generation.
Data
A recorded run fails a batch once.
Source
WF-CRM-REG-003
04 Readers inspect processing but cannot start it permissionnegative proposed
Exercises
CAP-CRM-REG-010 CAP-CRM-REG-011 CAP-CRM-REG-012
Relies on
ATS-CRM-REG-011-01 ATS-CRM-REG-012-01
Preconditions
A reader has regional read authority without the recalculation key.
Steps
Read settings and run history, then attempt to start recalculation.
Expected
Reads remain available and start is refused without inserting another run.
Data
A reader has regional read authority without the recalculation key.
Source
SVC-CRM-REG-regions
05 Coincident timestamps cannot hide a policy change regression test
Exercises
CAP-CRM-REG-010 CAP-CRM-REG-011
Relies on
ATS-CRM-REG-010-05
Preconditions
A completed run and a later rule write use the same clock instant.
Steps
Read currency before and after the rule write.
Expected
The generation comparison reports a new need despite equal timestamps.
Data
A completed run and a later rule write use the same clock instant.
Bound to
Source
services-crm:modules/regions/tests/integration/services/region-assignment/region-assignment-rules.integration.spec.js#says one is needed after a rule is added at the very instant the run started

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.