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

SEMVER - MINOR: Release 1.57.0 #2097

Merged
merged 26 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5069ba2
RCP job fails locally (#2075)
ScottDormand96 Nov 29, 2024
7f63252
chore(release): publish v1.57.0-rc.0
Nov 29, 2024
8a267e0
RCP fails (#2086)
ScottDormand96 Nov 29, 2024
1b6d44f
chore(release): publish v1.57.0-rc.1
Nov 29, 2024
cf8ecec
FTP POCL references (#2085)
ScottDormand96 Dec 4, 2024
c4f5feb
chore(release): publish v1.57.0-rc.2
Dec 4, 2024
a03b513
Rename createRecurringPayment to clarify it creates agreements (#2082)
irisfaraway Dec 6, 2024
fffcc3f
chore(release): publish v1.57.0-rc.3
Dec 6, 2024
19abcb6
Apply more specific date error messages (#2022)
irisfaraway Dec 9, 2024
5447577
chore(release): publish v1.57.0-rc.4
Dec 9, 2024
cf016e5
Change length link junior licence (#2088)
ScottDormand96 Dec 10, 2024
2487056
chore(release): publish v1.57.0-rc.5
Dec 10, 2024
582a207
Create RP Record in CRM (#2081)
jaucourt Dec 10, 2024
5c21e54
chore(release): publish v1.57.0-rc.6
Dec 10, 2024
bbff38b
Update Lerna to 5.6.2 (#2089)
irisfaraway Dec 10, 2024
87fc755
chore(release): publish v1.57.0-rc.7
Dec 10, 2024
52ad3bb
Fix RP creation bug (#2092)
jaucourt Dec 12, 2024
0bec5c5
chore(release): publish v1.57.0-rc.8
Dec 12, 2024
47b5c35
Fix DOB message in Welsh (#2093)
jaucourt Dec 12, 2024
c45f54c
chore(release): publish v1.57.0-rc.9
Dec 12, 2024
98e86bb
Licence to start error not in error summary (#2094)
jaucourt Dec 13, 2024
ba4d1da
chore(release): publish v1.57.0-rc.10
Dec 13, 2024
29130b3
Update activity in CRM (#2091)
nabeelamir-defra Dec 13, 2024
4f3c85f
chore(release): publish v1.57.0-rc.11
Dec 13, 2024
abad5bc
Missing inline error on renewals id page (#2095)
jaucourt Dec 13, 2024
d471ba7
chore(release): publish v1.57.0-rc.12
Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading