Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFPL 2512 Cafcass API Feature toggling by region (court) #5558

Closed
wants to merge 6 commits into from

Conversation

chak-shing-lo-justice
Copy link
Contributor

@chak-shing-lo-justice chak-shing-lo-justice commented Aug 30, 2024

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/DFPL-2512

Change description

We want to release the cafcass API for one / multiple region (court) only as trial, instead of a national rollout.

Acceptance criteria

  1. A new feature flag is configured with one / some court code
  2. /search endpoint should only return cases in the court code list
  3. No notification will be sent to cafcass if the case is in the court code list
  4. If the court code list is updated, it should take effect without any additional code changes / release.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[X] No

.caseData(getCafcassApiCaseData(caseConverter.convert(caseDetails)))
.build();
CaseData caseData = caseConverter.convert(caseDetails);
if (featureToggleService.isCafcassAPIEnabled(caseData.getCourt())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we filter out directly in the searchCaseQuery? I think the court field has Searchable: Y so should be able to be queried 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants