-
Notifications
You must be signed in to change notification settings - Fork 1
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
MAP-1665 Migrate to the new Alerts API #2363
Conversation
8c012c8
to
57f968e
Compare
1f7317e
to
3845398
Compare
5bde20e
to
c98792c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments ... but LGTM
"ALERTS_API_BASE_URL": { | ||
"description": "Base URL for Alerts API", | ||
"required": true | ||
}, | ||
"NOMIS_SITE_FOR_API": { | ||
"description": "Base URL for NOMIS API", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should call this prison-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both Prison API and NOMIS API are used all over the app, unfortunately.
@@ -15,6 +15,10 @@ | |||
"description": "Name of the storage bucket to use on AWS S3", | |||
"required": true | |||
}, | |||
"ALERTS_API_BASE_URL": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are all URL added to config?
@@ -41,6 +41,7 @@ generic-service: | |||
NOMIS_API_PATH_PREFIX: nomis_api_path_prefix_key | |||
NOMIS_PRISON_API_PATH_PREFIX: nomis_prison_api_path_prefix_key | |||
NOMIS_AUTH_PATH_PREFIX: nomis_auth_path_prefix_key | |||
ALERTS_API_BASE_URL: alerts_api_base_url_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes!
@@ -36,6 +36,7 @@ generic-service: | |||
NOMIS_AUTH_SCHEME: nomis_auth_scheme_key | |||
NOMIS_API_PATH_PREFIX: nomis_api_path_prefix_key | |||
NOMIS_PRISON_API_PATH_PREFIX: nomis_prison_api_path_prefix_key | |||
ALERTS_API_BASE_URL: alerts_api_base_url_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do the values get addded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Kube secrets
NOTE: base class currently duplicates the NomisClient::Base - refactor / DRY up
c98792c
to
e661bf2
Compare
Jira link
MAP-1665
What?
with the Alerts API (Alerts / Alert Types)
NomisClient
toHmppsClient
Why?
The Prison API Alerts endpoint has been deprecated.
Deployment risks
STAGING: https://alerts-api-dev.hmpps.service.justice.gov.uk/
PREPROD / UAT: https://alerts-api-preprod.hmpps.service.justice.gov.uk/
PROD: https://alerts-api.hmpps.service.justice.gov.uk/