Skip to content

JNY-CRM-REG-004An administrator retires and removes a referenced region

Markdown

JNY-CRM-REG-004

An administrator retires and removes a referenced region

Markdown
  • DocumentDraft
  • Product intentProposed
  • ImplementationInconsistent

KindJourneyProduct areaCRMModuleRegionsRevision2End-to-endOptional

Read atservices-crm a8d1364freact-console baf6dae3

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Goal
Retire a chapter’s grouping and remove it only after clearing dependencies.
Screens
/console/{tenantId}/configuration/crm/regions/console/{tenantId}/configuration/crm/regions?tab=rules/console/{tenantId}/configuration/crm/regions/assignmentRules

Steps

#SurfaceActionCapabilityExpectedProvenance
1/console/{tenantId}/configuration/crm/regionsOpen North’s drawer, disable Active and save.CAP-CRM-REG-002The catalogue labels North inactive while current references remain.test
2/console/{tenantId}/configuration/crm/regions?tab=rulesVisit the saved policy tab.CAP-CRM-REG-010Recalculation is requested and analysis warns of the inactive target.observed
3/console/{tenantId}/crm/contacts/newCreate a New York member covered by North’s rule.CAP-CRM-REG-006The enabled rule still assigns inactive North.test
4/console/{tenantId}/configuration/crm/regionsAttempt to remove North.CAP-CRM-REG-002Deletion is refused because dependencies remain.test
5/console/{tenantId}/configuration/crm/regions/assignmentRules; patchContactRemove North’s rule and save, then clear contact references while enabling their overrides.CAP-CRM-REG-009No remaining rule or contact in the test references North.test
6/console/{tenantId}/configuration/crm/regionsDelete the now unused North entry.CAP-CRM-REG-002The catalogue no longer contains North.test

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
failure4The visitor lacks deletion authority.The row menu withholds usable Delete.The regional definition remains.test
react-console:components/regions/__tests__/regions-row-menu.test.tsx#the Regions row menu › does not let somebody who may manage regions but not delete them press Delete

Assertions

IdStatementProvenance
01A remaining reference prevents region removal.test
services-crm:modules/regions/tests/integration/db/regions.table.integration.spec.js#references › refuses to delete a region a contact is in, naming what uses it
02Retirement preserves the existing record and policy references.test

End-to-end policy: optional: Service evidence covers reference refusals; browser checks add retirement display while inactive-target policy remains unresolved.

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.