Skip to content

Commit

Permalink
MAN-227 - rename from entries hmpps-manage-a-supervision-ui to hmpps-…
Browse files Browse the repository at this point in the history
…manage-people-on-probation-ui
  • Loading branch information
achimber-moj committed Jan 7, 2025
1 parent 7238f17 commit 08feff0
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
target-folder: zap-report

- name: Add HTML report URL to the job summary
run: echo '[🛡️ OWASP ZAP Report](https://ministryofjustice.github.io/hmpps-manage-a-supervision-ui/zap-report)' | tee -a "$GITHUB_STEP_SUMMARY"
run: echo '[🛡️ OWASP ZAP Report](https://ministryofjustice.github.io/hmpps-manage-people-on-probation-ui/zap-report)' | tee -a "$GITHUB_STEP_SUMMARY"

- name: Parse JSON report
id: json
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

User interface for the Manage a Supervision service.

Try it out in the dev environment: https://manage-a-supervision-dev.hmpps.service.justice.gov.uk
Try it out in the dev environment: https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk/

## Get started

Expand Down Expand Up @@ -62,7 +62,7 @@ INTERVENTIONS_LINK=https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform
Run the following to grab client credentials from the dev namespace:

```shell
kubectl -n hmpps-manage-a-supervision-dev get secret hmpps-manage-a-supervision-ui -o json \
kubectl -n hmpps-manage-a-supervision-dev get secret hmpps-manage-people-on-probation-ui -o json \
| jq -r '.data | map_values(@base64d) | to_entries[] | "\(.key)=\(.value)"' \
| grep CLIENT >> .env
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ generic-service:
replicaCount: 4

image:
repository: ghcr.io/ministryofjustice/hmpps-manage-a-supervision-ui
repository: ghcr.io/ministryofjustice/hmpps-manage-people-on-probation-ui
tag: app_version # override at deployment time
port: 3000

Expand Down
2 changes: 1 addition & 1 deletion helm_deploy/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Per environment values which override defaults in hmpps-manage-a-supervision-ui/values.yaml
# Per environment values which override defaults in hmpps-manage-people-on-probation-ui/values.yaml

generic-service:
replicaCount: 2
Expand Down
2 changes: 1 addition & 1 deletion helm_deploy/values-preprod.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Per environment values which override defaults in hmpps-manage-a-supervision-ui/values.yaml
# Per environment values which override defaults in hmpps-manage-people-on-probation-ui/values.yaml

generic-service:
replicaCount: 2
Expand Down
2 changes: 1 addition & 1 deletion helm_deploy/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Per environment values which override defaults in hmpps-manage-a-supervision-ui/values.yaml
# Per environment values which override defaults in hmpps-manage-people-on-probation-ui/values.yaml

generic-service:
ingress:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "hmpps-manage-a-supervision-ui",
"name": "hmpps-manage-people-on-probation-ui",
"version": "0.0.1",
"description": "Hmpps Manage A Supervision Ui",
"repository": "[email protected]:ministryofjustice/hmpps-manage-a-supervision-ui.git",
"repository": "[email protected]:ministryofjustice/hmpps-manage-people-on-probation-ui.git",
"license": "MIT",
"scripts": {
"prepare": "husky",
Expand All @@ -29,7 +29,7 @@
"int-test": "cypress run --config video=false",
"int-test-ui": "cypress open --e2e --browser chrome",
"clean": "rm -rf dist build node_modules stylesheets",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org ministryofjustice --project hmpps-manage-a-supervision-ui ./dist && sentry-cli sourcemaps upload --org ministryofjustice --project hmpps-manage-a-supervision-ui ./dist",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org ministryofjustice --project hmpps-manage-people-on-probation-ui ./dist && sentry-cli sourcemaps upload --org ministryofjustice --project hmpps-manage-people-on-probation-ui ./dist",
"e2e-test": "NODE_OPTIONS='--import tsx' npx playwright test",
"e2e-test:headed": "NODE_OPTIONS='--import tsx' npx playwright test --headed",
"e2e-test:debug": "NODE_OPTIONS='--import tsx' npx playwright test --debug"
Expand Down
2 changes: 1 addition & 1 deletion server/middleware/setUpWebSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function setUpWebSession(): Router {
router.use(
session({
store,
name: 'hmpps-manage-a-supervision-ui.session',
name: 'hmpps-manage-people-on-probation-ui.session',
cookie: { secure: config.https, sameSite: 'lax', maxAge: config.session.expiryMinutes * 60 * 1000 },
secret: config.session.secret,
resave: false, // redis implements touch so shouldn't need this
Expand Down
6 changes: 3 additions & 3 deletions server/routes/activityLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function activityLogRoutes(router: Router, { hmppsAuthClient }: S
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})
res.render('pages/activity-log', {
personActivity,
Expand All @@ -60,7 +60,7 @@ export default function activityLogRoutes(router: Router, { hmppsAuthClient }: S
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand Down Expand Up @@ -113,7 +113,7 @@ export default function activityLogRoutes(router: Router, { hmppsAuthClient }: S
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

res.render('pages/appointments/appointment', {
Expand Down
6 changes: 3 additions & 3 deletions server/routes/appointments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function scheduleRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const [upcomingAppointments, pastAppointments, tierCalculation] = await Promise.all([
Expand Down Expand Up @@ -57,7 +57,7 @@ export default function scheduleRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const personAppointment = await masClient.getPersonAppointment(crn, contactId)
Expand All @@ -78,7 +78,7 @@ export default function scheduleRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const schedule = await masClient.getPersonSchedule(crn, 'previous')
Expand Down
2 changes: 1 addition & 1 deletion server/routes/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function caseRoutes(router: Router, { hmppsAuthClient }: Services
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const [overview, risks, tierCalculation] = await Promise.all([
Expand Down
10 changes: 5 additions & 5 deletions server/routes/caseload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function caseloadRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: res.locals.user.username,
subjectType: 'USER',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})
const pagination: Pagination = getPaginationLinks(
req.session.page ? Number.parseInt(req.session.page as string, config.apis.masApi.pageSize) : 1,
Expand Down Expand Up @@ -148,7 +148,7 @@ export default function caseloadRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: res.locals.user.username,
subjectType: 'USER',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})
res.render('pages/caseload/select-team', {
userTeams,
Expand All @@ -171,7 +171,7 @@ export default function caseloadRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: res.locals.user.username,
subjectType: 'USER',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})
const userTeams = await masClient.getUserTeams(res.locals.user.username)
res.render('pages/caseload/select-team', {
Expand All @@ -194,7 +194,7 @@ export default function caseloadRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: teamCode,
subjectType: 'TEAM',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})
const pageNum: number = req.query.page
? Number.parseInt(req.query.page as string, config.apis.masApi.pageSize)
Expand Down Expand Up @@ -249,7 +249,7 @@ export default function caseloadRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: res.locals.user.username,
subjectType: 'USER',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

res.render('pages/caseload/recent-cases', {
Expand Down
2 changes: 1 addition & 1 deletion server/routes/compliance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function complianceRoutes(router: Router, { hmppsAuthClient }: Se
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand Down
2 changes: 1 addition & 1 deletion server/routes/interventions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function interventionsRoutes(router: Router, { hmppsAuthClient }:
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const [personSummary, interventions, tierCalculation] = await Promise.all([
Expand Down
16 changes: 8 additions & 8 deletions server/routes/personalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})
const [personalDetails, needs, tierCalculation] = await Promise.all([
masClient.getPersonalDetails(crn),
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const [personalContact, tierCalculation] = await Promise.all([
Expand All @@ -77,7 +77,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const addressOverview = await masClient.getPersonalAddresses(crn)
Expand All @@ -99,7 +99,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const response = await masClient.downloadDocument(crn, documentId)
Expand All @@ -119,7 +119,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const personSummary = await masClient.getPersonSummary(crn)
Expand All @@ -140,7 +140,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const disabilities = await masClient.getPersonDisabilities(crn)
Expand All @@ -161,7 +161,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const adjustments = await masClient.getPersonAdjustments(crn)
Expand All @@ -182,7 +182,7 @@ export default function personalDetailRoutes(router: Router, { hmppsAuthClient }
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const circumstances = await masClient.getPersonCircumstances(crn)
Expand Down
6 changes: 3 additions & 3 deletions server/routes/risks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function risksRoutes(router: Router, { hmppsAuthClient }: Service
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const arnsClient = new ArnsApiClient(token)
Expand Down Expand Up @@ -71,7 +71,7 @@ export default function risksRoutes(router: Router, { hmppsAuthClient }: Service
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const personRiskFlag = await masClient.getPersonRiskFlag(crn, id)
Expand All @@ -93,7 +93,7 @@ export default function risksRoutes(router: Router, { hmppsAuthClient }: Service
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const personRisk = await masClient.getPersonRiskFlags(crn)
Expand Down
12 changes: 6 additions & 6 deletions server/routes/sentence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function sentenceRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand Down Expand Up @@ -60,7 +60,7 @@ export default function sentenceRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand Down Expand Up @@ -88,7 +88,7 @@ export default function sentenceRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand All @@ -111,7 +111,7 @@ export default function sentenceRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand All @@ -134,7 +134,7 @@ export default function sentenceRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand All @@ -157,7 +157,7 @@ export default function sentenceRoutes(router: Router, { hmppsAuthClient }: Serv
subjectId: crn,
subjectType: 'CRN',
correlationId: v4(),
service: 'hmpps-manage-a-supervision-ui',
service: 'hmpps-manage-people-on-probation-ui',
})

const masClient = new MasApiClient(token)
Expand Down
2 changes: 1 addition & 1 deletion server/views/partials/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<script nonce="{{ cspNonce }}">
window.sentryOnLoad = function() {
Sentry.init({
release: "hmpps-manage-a-supervision-ui@{{ version }}",
release: "hmpps-manage-people-on-probation-ui@{{ version }}",
environment: "{{ sentry.environment }}",
tracesSampleRate: {{ sentry.tracesSampleRate }},
replaysSessionSampleRate: {{ sentry.replaySampleRate }},
Expand Down

0 comments on commit 08feff0

Please sign in to comment.