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

EXUI-2640 - Add exclusion list code for doc store url #1867

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Josh-HMCTS
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/EXUI-2640

Change description

Add exclusion list code to docstore getURL()

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

[ ] Yes
[ x ] No

StoneBenHMCTS
StoneBenHMCTS previously approved these changes Feb 11, 2025
RiteshHMCTS
RiteshHMCTS previously approved these changes Feb 11, 2025
let docStoreUrl = '';
this.caseNotifierService.caseView.subscribe((caseDetails) => {
const caseType = caseDetails.case_type.id;
const documentSecureModeCaseTypeExclusions = this.appConfig.getDocumentSecureModeCaseTypeExclusions().split(',');
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's be extra cautious and use
this.appConfig.getDocumentSecureModeCaseTypeExclusions()?.split(',');
and
const isDocumentOnExclusionList = documentSecureModeCaseTypeExclusions?.includes(caseType);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the additional '?'

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.

5 participants