Skip to content

Configure jurisdiction for search scopes #9579

@jpye-finch

Description

@jpye-finch

Description

Current scopes support limiting search results by event record and by ‘my jurisdiction’. Where my jurisdiction is any record created in the user’s assigned office


This ticket is to apply the new approach to defining a jurisdiction to search


An example search therefore is:

{
  type: 'record.search',
  options: {
    event: ['birth', 'death'],
    declaredIn: 'administrativeArea'
  }

record.search[event:birth|death declared_in=my-administrative-area] = User can search for birth and death records that where declared in their administrative area

  • Rename scope from search.birth to record.search
  • Deprecate the old scopes, migrating to new ones using v1 to v2 helpers found in scopes-v2.ts. Define them using object notation. Use encodeScope at the appropriate level.
  • Implement the new scopes using 'hard-coded' jurisdiction syntax { declaredIn: 'administrativeArea' }

Acceptance Criteria

( Describe as many Acs as possible, each of them allowing for testing. )

Tech Tasks

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions