Skip to content

Apply safe retrieval retry policy to frontend read operations, using common UI retry interceptor#2835

Open
stantb wants to merge 2 commits into
masterfrom
PO-3937
Open

Apply safe retrieval retry policy to frontend read operations, using common UI retry interceptor#2835
stantb wants to merge 2 commits into
masterfrom
PO-3937

Conversation

@stantb

@stantb stantb commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Jira link

See PO-3937

Change description

Upgrades @hmcts/opal-frontend-common to 0.0.90
Registers the shared httpRetryInterceptor in app.config.ts
Opts safe OpalFines read requests into retry using the common UI retry context helper
Keeps mutations and If-Match versioned requests out of retry

Testing done

Covered new functionality with unit tests

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P2] Add retry context to minor creditor history reads

This PR opts safe OpalFines GETs into withHttpRetry, including the defendant history request, but the analogous minor creditor history request still builds plain { observe: 'response' } options. A transient 408/504 on the minor creditor History and notes tab will still go straight to the error path while the defendant tab retries; build these options with withRetrySafeReadOptions too.

@iamfrankiemoran iamfrankiemoran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@iamfrankiemoran iamfrankiemoran requested a review from a team July 10, 2026 09:25

@louisbriggs louisbriggs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor question

private readonly PARAM_ACCOUNT_STATUS_DATE_TO = 'account_status_date_to';

private retrySafeReadOptions() {
return { context: withHttpRetry({ retryCount: 1, delayMs: 0 }) };

@louisbriggs louisbriggs Jul 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this config, passed to withHttpRetry, be stored in a const?

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.

3 participants