Skip to content

Commit

Permalink
Merge pull request #2097 from DEFRA/develop
Browse files Browse the repository at this point in the history
SEMVER - MINOR: Release 1.57.0
  • Loading branch information
jaucourt authored Dec 16, 2024
2 parents 4edcdd3 + d471ba7 commit 609bc25
Show file tree
Hide file tree
Showing 61 changed files with 1,648 additions and 5,644 deletions.
109 changes: 109 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,113 @@

## v1.57.0-rc.12 (2024-12-13)

#### :bug: Bug Fix
* `gafl-webapp-service`
* [#2095](https://github.com/DEFRA/rod-licensing/pull/2095) Missing inline error on renewals id page ([@jaucourt](https://github.com/jaucourt))

#### Committers: 1
- Phil Benson ([@jaucourt](https://github.com/jaucourt))

## v1.57.0-rc.11 (2024-12-13)

#### :rocket: Enhancement
* `dynamics-lib`
* [#2091](https://github.com/DEFRA/rod-licensing/pull/2091) Update activity in CRM ([@nabeelamir-defra](https://github.com/nabeelamir-defra))

#### Committers: 1
- Nabeel Amir ([@nabeelamir-defra](https://github.com/nabeelamir-defra))

## v1.57.0-rc.10 (2024-12-13)

#### :bug: Bug Fix
* `gafl-webapp-service`
* [#2094](https://github.com/DEFRA/rod-licensing/pull/2094) Licence to start error not in error summary ([@jaucourt](https://github.com/jaucourt))

#### Committers: 1
- Phil Benson ([@jaucourt](https://github.com/jaucourt))

## v1.57.0-rc.9 (2024-12-12)

#### :bug: Bug Fix
* `gafl-webapp-service`
* [#2093](https://github.com/DEFRA/rod-licensing/pull/2093) Fix DOB message in Welsh ([@jaucourt](https://github.com/jaucourt))

#### Committers: 1
- Phil Benson ([@jaucourt](https://github.com/jaucourt))

## v1.57.0-rc.8 (2024-12-12)

#### :bug: Bug Fix
* `sales-api-service`
* [#2092](https://github.com/DEFRA/rod-licensing/pull/2092) Fix RP creation bug ([@jaucourt](https://github.com/jaucourt))

#### Committers: 1
- Phil Benson ([@jaucourt](https://github.com/jaucourt))


## v1.57.0-rc.6 (2024-12-10)

#### :rocket: Enhancement
* `dynamics-lib`, `sales-api-service`
* [#2081](https://github.com/DEFRA/rod-licensing/pull/2081) Create RP Record in CRM ([@jaucourt](https://github.com/jaucourt))

#### Committers: 1
- Phil Benson ([@jaucourt](https://github.com/jaucourt))

## v1.57.0-rc.5 (2024-12-10)

#### :bug: Bug Fix
* `gafl-webapp-service`
* [#2088](https://github.com/DEFRA/rod-licensing/pull/2088) Change length link junior licence ([@ScottDormand96](https://github.com/ScottDormand96))

#### Committers: 1
- Scott Dormand ([@ScottDormand96](https://github.com/ScottDormand96))

## v1.57.0-rc.4 (2024-12-09)

#### :rocket: Enhancement
* `gafl-webapp-service`
* [#2022](https://github.com/DEFRA/rod-licensing/pull/2022) Apply more specific date error messages ([@irisfaraway](https://github.com/irisfaraway))

#### Committers: 1
- Iris Faraway ([@irisfaraway](https://github.com/irisfaraway))

## v1.57.0-rc.3 (2024-12-06)

#### :rocket: Enhancement
* `connectors-lib`, `gafl-webapp-service`
* [#2082](https://github.com/DEFRA/rod-licensing/pull/2082) Rename createRecurringPayment to clarify it creates agreements ([@irisfaraway](https://github.com/irisfaraway))

#### Committers: 1
- Iris Faraway ([@irisfaraway](https://github.com/irisfaraway))

## v1.57.0-rc.2 (2024-12-04)

#### :rocket: Enhancement
* `pocl-job`
* [#2085](https://github.com/DEFRA/rod-licensing/pull/2085) FTP POCL references ([@ScottDormand96](https://github.com/ScottDormand96))

#### Committers: 1
- Scott Dormand ([@ScottDormand96](https://github.com/ScottDormand96))

## v1.57.0-rc.1 (2024-11-29)

#### :rocket: Enhancement
* `business-rules-lib`, `connectors-lib`, `dynamics-lib`, `fulfilment-job`, `gafl-webapp-service`, `payment-mop-up-job`, `pocl-job`, `recurring-payments-job`, `sales-api-service`, `sqs-receiver-service`
* [#2086](https://github.com/DEFRA/rod-licensing/pull/2086) RCP fails ([@ScottDormand96](https://github.com/ScottDormand96))

#### Committers: 1
- Scott Dormand ([@ScottDormand96](https://github.com/ScottDormand96))

## v1.57.0-rc.0 (2024-11-29)

#### :rocket: Enhancement
* `business-rules-lib`, `connectors-lib`, `dynamics-lib`, `fulfilment-job`, `gafl-webapp-service`, `payment-mop-up-job`, `pocl-job`, `recurring-payments-job`, `sales-api-service`, `sqs-receiver-service`
* [#2075](https://github.com/DEFRA/rod-licensing/pull/2075) RCP job fails locally ([@ScottDormand96](https://github.com/ScottDormand96))

#### Committers: 1
- Scott Dormand ([@ScottDormand96](https://github.com/ScottDormand96))

## v1.55.0-rc.6 (2024-11-25)

#### :rocket: Enhancement
Expand Down
7 changes: 0 additions & 7 deletions docker/env/pocl_job.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,5 @@ SALES_API_TIMEOUT_MS=120000
POCL_FILE_STAGING_TABLE=PoclFileStaging
POCL_RECORD_STAGING_TABLE=PoclRecordStaging

# FTP Settings
POCL_FTP_HOST=host.docker.internal
POCL_FTP_PORT=2222
POCL_FTP_PATH=/share/pocl
POCL_FTP_USERNAME=test_sftp_user
POCL_FTP_KEY_SECRET_ID=/dev/fsh/local/sftp/ssh_ed25519_host_key

# Debug settings
DEBUG=pocl:*,-pocl:ftp
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "1.56.0",
"version": "1.57.0-rc.12",
"npmClient": "npm",
"publishConfig": {
"registry": "http://registry.npmjs.org/"
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-circus": "^27.5.1",
"lerna": "^5.0.0",
"lerna": "^5.6.2",
"lerna-changelog": "^2.2.0",
"lerna-update-wizard": "^1.1.1",
"lint-staged": "^11.2.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/business-rules-lib/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/business-rules-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@defra-fish/business-rules-lib",
"version": "1.56.0",
"version": "1.57.0-rc.12",
"description": "Shared business rules for the rod licensing digital services",
"type": "module",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/connectors-lib/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/connectors-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@defra-fish/connectors-lib",
"version": "1.56.0",
"version": "1.57.0-rc.12",
"description": "Shared connectors",
"type": "module",
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/connectors-lib/src/__tests__/govuk-pay-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ describe('govuk-pay-api-connector', () => {
})
})

describe('createRecurringPayment', () => {
describe('createRecurringPaymentAgreement', () => {
it('creates new payments', async () => {
fetch.mockReturnValue({ ok: true, status: 200 })
await expect(govUkPayApi.createRecurringPayment({ cost: 0 })).resolves.toEqual({ ok: true, status: 200 })
await expect(govUkPayApi.createRecurringPaymentAgreement({ cost: 0 })).resolves.toEqual({ ok: true, status: 200 })
expect(fetch).toHaveBeenCalledWith('http://0.0.0.0/agreement', {
body: JSON.stringify({ cost: 0 }),
headers: recurringHeaders,
Expand All @@ -137,7 +137,7 @@ describe('govuk-pay-api-connector', () => {
fetch.mockImplementation(() => {
throw new Error('')
})
expect(govUkPayApi.createRecurringPayment({ reference: '123' })).rejects.toEqual(Error(''))
expect(govUkPayApi.createRecurringPaymentAgreement({ reference: '123' })).rejects.toEqual(Error(''))
expect(fetch).toHaveBeenCalledWith('http://0.0.0.0/agreement', {
body: JSON.stringify({ reference: '123' }),
headers: recurringHeaders,
Expand Down
2 changes: 1 addition & 1 deletion packages/connectors-lib/src/govuk-pay-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const headers = recurring => ({
* @param preparedPayment - see the GOV.UK pay API reference for details
* @returns {Promise<*>}
*/
export const createRecurringPayment = async preparedPayment => {
export const createRecurringPaymentAgreement = async preparedPayment => {
try {
return fetch(process.env.GOV_PAY_RCP_API_URL, {
headers: headers(true),
Expand Down
4 changes: 2 additions & 2 deletions packages/dynamics-lib/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/dynamics-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@defra-fish/dynamics-lib",
"version": "1.56.0",
"version": "1.57.0-rc.12",
"description": "Framework to support integration with dynamics",
"type": "module",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ describe('recurring payment entity', () => {
recurringPayment.agreementId = 'c9267c6e-573d-488b-99ab-ea18431fc472'
recurringPayment.publicId = '649-213'
recurringPayment.status = 1
recurringPayment.contactId = 'b3d33cln-2e83-ea11-a811-000d3a649213'
recurringPayment.activePermission = 'a5b24adf-2e83-ea11-a811-000d3a649213'

recurringPayment.bindToEntity(RecurringPayment.definition.relationships.contact, contact)
recurringPayment.bindToEntity(RecurringPayment.definition.relationships.activePermission, permission)
Expand Down Expand Up @@ -66,9 +64,7 @@ describe('recurring payment entity', () => {
endDate: '2019-12-15T00:00:00Z',
agreementId: 'c9267c6e-573d-488b-99ab-ea18431fc472',
publicId: '649-213',
status: 1,
activePermission: 'a5b24adf-2e83-ea11-a811-000d3a649213',
contactId: 'b3d33cln-2e83-ea11-a811-000d3a649213'
status: 1
})
)
})
Expand All @@ -93,8 +89,6 @@ describe('recurring payment entity', () => {
defra_agreementid: 'c9267c6e-573d-488b-99ab-ea18431fc472',
defra_publicid: '649-213',
statecode: 1,
_defra_activepermission_value: 'a5b24adf-2e83-ea11-a811-000d3a649213',
_defra_contact_value: 'b3d33cln-2e83-ea11-a811-000d3a649213',
'[email protected]': `$${contact.uniqueContentId}`,
'[email protected]': `$${permission.uniqueContentId}`
})
Expand All @@ -121,9 +115,7 @@ describe('recurring payment entity', () => {
endDate: '2019-12-15T00:00:00Z',
agreementId: 'c9267c6e-573d-488b-99ab-ea18431fc472',
publicId: '649-213',
status: 1,
activePermission: 'a5b24adf-2e83-ea11-a811-000d3a649213',
contactId: 'b3d33cln-2e83-ea11-a811-000d3a649213'
status: 1
})
)
})
Expand All @@ -143,8 +135,6 @@ describe('recurring payment entity', () => {
defra_agreementid: 'c9267c6e-573d-488b-99ab-ea18431fc472',
defra_publicid: '649-213',
statecode: 1,
_defra_activepermission_value: 'a5b24adf-2e83-ea11-a811-000d3a649213',
_defra_contact_value: 'b3d33cln-2e83-ea11-a811-000d3a649213',
'[email protected]': `$${contact.uniqueContentId}`,
'[email protected]': `$${permission.uniqueContentId}`
})
Expand Down
24 changes: 0 additions & 24 deletions packages/dynamics-lib/src/entities/recurring-payment.entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,28 +134,4 @@ export class RecurringPayment extends BaseEntity {
set status (status) {
super._setState('status', status)
}

/**
* The ID of the associated contact
* @type {string}
*/
get contactId () {
return super._getState('contactId')
}

set contactId (contactId) {
super._setState('contactId', contactId)
}

/**
* The ID of the associated active permission
* @type {string}
*/
get activePermission () {
return super._getState('activePermission')
}

set activePermission (activePermission) {
super._setState('activePermission', activePermission)
}
}
Loading

0 comments on commit 609bc25

Please sign in to comment.