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

Change default refreshTimeDelta to 5minutes instead of 0 seconds. #159

Merged
merged 2 commits into from
May 25, 2023

Conversation

amoriartyMOJ
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/NFDIV-3348

Change description

NFD service (and possibly others) are seeing that the refresh time is set to zero on our service and this is due to calling the default constructor which sets it to zero. Moving it to 5minutes as a default, as zero seems redundant.

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

[ ] Yes
[X] No

Copy link
Contributor

@timja timja left a comment

Choose a reason for hiding this comment

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

LGTM assuming tested....

@amoriartyMOJ
Copy link
Contributor Author

This branch will remain open until the NFD team can upgrade to spring-boot 3 which will then enable us to test this change on our service.

NFD spring-boot 3 upgrade: hmcts/nfdiv-case-api#2674

@amoriartyMOJ
Copy link
Contributor Author

As NFD are using the 2nd default constructor to mimic the behaviour of setting the delta to 5minutes, we feel it's safe to merge.

https://github.com/hmcts/nfdiv-case-api/blob/ca68ef22fa2a565e3e2d1d08df459f306d52cca3/src/main/java/uk/gov/hmcts/divorce/common/config/AuthConfiguration.java#L27

@amoriartyMOJ amoriartyMOJ enabled auto-merge (squash) May 25, 2023 08:45
@amoriartyMOJ amoriartyMOJ merged commit f062a17 into master May 25, 2023
@amoriartyMOJ amoriartyMOJ deleted the increase-default-refresh-delta-time branch May 25, 2023 08:47
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