Skip to content

Commit

Permalink
fix(application-system): Add notification url (#16503) (#16507)
Browse files Browse the repository at this point in the history
* add url

* add to as-api

* chore: Add deps to appSystemApi

* chore: charts update dirty files

* chore: nx format:write update dirty files

---------

Co-authored-by: Ólafur Björn Magnússon <obmagnusson@gmail.com>
Co-authored-by: peturgq <petur@petur.io>
Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Oct 22, 2024
1 parent 08013ea commit 23c3069
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/application-system/api/infra/application-system-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const serviceSetup = (services: {
skilavottordWs: ServiceBuilder<'skilavottord-ws'>
// The user profile service is named service-portal-api in infra setup
servicePortalApi: ServiceBuilder<'service-portal-api'>
userNotificationService: ServiceBuilder<'services-user-notification'>
}): ServiceBuilder<'application-system-api'> =>
service('application-system-api')
.namespace(namespace)
Expand Down Expand Up @@ -256,6 +257,9 @@ export const serviceSetup = (services: {
SERVICE_USER_PROFILE_URL: ref(
(h) => `http://${h.svc(services.servicePortalApi)}`,
),
USER_NOTIFICATION_API_URL: ref(
(h) => `http://${h.svc(services.userNotificationService)}`,
),
})
.xroad(
Base,
Expand Down
1 change: 1 addition & 0 deletions charts/islandis/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ application-system-api:
SERVICE_DOCUMENTS_BASEPATH: 'http://web-services-documents.services-documents.svc.cluster.local'
SERVICE_USER_PROFILE_URL: 'http://web-service-portal-api.service-portal.svc.cluster.local'
UNIVERSITY_GATEWAY_API_URL: 'http://web-services-university-gateway.services-university-gateway.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
WORKPOINT_ARBORG_SERVICE_PATH: 'IS-DEV/MUN/10036/Arborg-Protected/tengill-application-v1'
XROAD_AGRICULTURAL_UNIVERSITY_OF_ICELAND_PATH: 'IS-DEV/EDU/10056/LBHI-Protected/brautskraning-v1'
XROAD_ALTHINGI_OMBUDSMAN_SERVICE_PATH: 'IS-DEV/GOV/10047/UA-Protected/kvortun-v1/'
Expand Down
1 change: 1 addition & 0 deletions charts/islandis/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ application-system-api:
SERVICE_DOCUMENTS_BASEPATH: 'http://web-services-documents.services-documents.svc.cluster.local'
SERVICE_USER_PROFILE_URL: 'http://web-service-portal-api.service-portal.svc.cluster.local'
UNIVERSITY_GATEWAY_API_URL: 'http://web-services-university-gateway.services-university-gateway.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
WORKPOINT_ARBORG_SERVICE_PATH: 'IS/MUN/10036/Arborg-Protected/tengill-application-v1'
XROAD_AGRICULTURAL_UNIVERSITY_OF_ICELAND_PATH: 'IS/EDU/4112043590/LBHI-Protected/brautskraning-v1'
XROAD_ALTHINGI_OMBUDSMAN_SERVICE_PATH: 'IS/GOV/5605882089/UA-Protected/kvortun-v1'
Expand Down
1 change: 1 addition & 0 deletions charts/islandis/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ application-system-api:
SERVICE_DOCUMENTS_BASEPATH: 'http://web-services-documents.services-documents.svc.cluster.local'
SERVICE_USER_PROFILE_URL: 'http://web-service-portal-api.service-portal.svc.cluster.local'
UNIVERSITY_GATEWAY_API_URL: 'http://web-services-university-gateway.services-university-gateway.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
WORKPOINT_ARBORG_SERVICE_PATH: 'IS-TEST/MUN/10036/Arborg-Protected/tengill-application-v1'
XROAD_AGRICULTURAL_UNIVERSITY_OF_ICELAND_PATH: 'IS-TEST/EDU/10056/LBHI-Protected/brautskraning-v1'
XROAD_ALTHINGI_OMBUDSMAN_SERVICE_PATH: 'IS-TEST/GOV/10047/UA-Protected/kvortun-v1/'
Expand Down
9 changes: 5 additions & 4 deletions infra/src/uber-charts/islandis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,16 @@ const skilavottordWeb = skilavottordWebSetup({ api: skilavottordWs })
const documentsService = serviceDocumentsSetup()
const servicePortalApi = servicePortalApiSetup()

const userNotificationService = userNotificationServiceSetup({
userProfileApi: servicePortalApi,
})

const appSystemApi = appSystemApiSetup({
documentsService,
servicesEndorsementApi: endorsement,
skilavottordWs,
servicePortalApi,
userNotificationService,
})
const appSystemApiWorker = appSystemApiWorkerSetup()

Expand All @@ -94,10 +99,6 @@ const authAdminApi = authAdminApiSetup()
const universityGatewayService = universityGatewaySetup()
const universityGatewayWorker = universityGatewayWorkerSetup()

const userNotificationService = userNotificationServiceSetup({
userProfileApi: servicePortalApi,
})

const api = apiSetup({
appSystemApi,
servicePortalApi,
Expand Down

0 comments on commit 23c3069

Please sign in to comment.