From 255a3d17c5f25bdfe1355876911c65d22149b513 Mon Sep 17 00:00:00 2001 From: Andrew Brazzatti Date: Wed, 27 Sep 2023 06:38:38 +0000 Subject: [PATCH 1/4] Added storedeventdata setter when the field loses visibility so that when its re-enabled it has the correct title set --- angular/shared/form/field-vocab.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/angular/shared/form/field-vocab.component.ts b/angular/shared/form/field-vocab.component.ts index 20036a06c1..5da7ca5e79 100644 --- a/angular/shared/form/field-vocab.component.ts +++ b/angular/shared/form/field-vocab.component.ts @@ -376,6 +376,7 @@ export class VocabField extends FieldBase { that.formModel.clearValidators(); } that.formModel.updateValueAndValidity(); + that.storedEventData = _.clone(that.formModel.value) } } } else { From f57f0d6023514f6f4678461c3f08448bcff78e7a Mon Sep 17 00:00:00 2001 From: Andrew Brazzatti Date: Tue, 3 Oct 2023 23:59:16 +1030 Subject: [PATCH 2/4] Added export api documentation --- views/default/default/apidocsapib.ejs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/views/default/default/apidocsapib.ejs b/views/default/default/apidocsapib.ejs index e5e720e9c1..d43a27adc4 100644 --- a/views/default/default/apidocsapib.ejs +++ b/views/default/default/apidocsapib.ejs @@ -278,8 +278,6 @@ The ReDBox Portal API provides authorized access to manage functions. - message: Failed to list attachments, please check server logs. - - ## Record Permission Actions [/<%= branding %>/<%= portal %>/api/records/permissions] ### Give users edit access to record [POST /<%= branding %>/<%= portal %>/api/records/permissions/edit/{oid}] @@ -494,6 +492,17 @@ The ReDBox Portal API provides authorized access to manage functions. + Response 200 (application/json) + Attributes (CreateRecordAuthorization, fixed-type) +## Export Actions [/<%= branding %>/<%= portal %>/api/export] + +### Export record data [POST /<%= branding %>/<%= portal %>/api/export/record/download/{format}{?recType,before,after}] ++ Parameters + + format: `json` (string, required) - The format of the export. Valid values are 'json' or 'csv' + + recType: `rdmp` (string) - The type of record to export + + before: `2023-06-30T00:00:00Z` (string) - Show records updated before the date (ISO 8601 format) + + after: `2022-07-01T00:00:00Z` (string) - Show records updated after the date (ISO 8601 format) + ++ Response 200 + # Group Search ## Search Actions [/<%= branding %>/<%= portal %>/api/search] From 8ebdabe9f3fa91100eb663e528da826c66e4aa28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 08:06:21 +1030 Subject: [PATCH 3/4] Bump postcss from 8.4.30 to 8.4.31 (#1625) Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index b22aaa3813..a5a29a6485 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,7 +57,7 @@ "passport-http-bearer": "^1.0.1", "passport-jwt": "^4.0.1", "passport-local": "^1.0.0", - "postcss": "^8.4.30", + "postcss": "^8.4.31", "rc": "1.2.8", "redux": "4.2.1", "request-promise": "^4.2.6", @@ -12451,9 +12451,9 @@ "dev": true }, "node_modules/postcss": { - "version": "8.4.30", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", - "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "funding": [ { "type": "opencollective", @@ -27234,9 +27234,9 @@ "dev": true }, "postcss": { - "version": "8.4.30", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", - "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "requires": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", diff --git a/package.json b/package.json index e396028a94..a16c6cccb2 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "passport-http-bearer": "^1.0.1", "passport-jwt": "^4.0.1", "passport-local": "^1.0.0", - "postcss": "^8.4.30", + "postcss": "^8.4.31", "rc": "1.2.8", "redux": "4.2.1", "request-promise": "^4.2.6", From a23773c3cc5163fb2ef1ddd36c942689ad22ae09 Mon Sep 17 00:00:00 2001 From: andrewbrazzatti Date: Mon, 23 Oct 2023 12:23:08 +1030 Subject: [PATCH 4/4] Added support for lower casing the pending email addresses and made this the default behaviour (#1667) --- typescript/api/services/RDMPService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/typescript/api/services/RDMPService.ts b/typescript/api/services/RDMPService.ts index c6c1dd174f..c08306e914 100644 --- a/typescript/api/services/RDMPService.ts +++ b/typescript/api/services/RDMPService.ts @@ -298,7 +298,7 @@ export module Services { return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]; } - protected addEmailToList(contributor, emailProperty, emailList) { + protected addEmailToList(contributor, emailProperty, emailList, lowerCaseEmailAddresses:boolean = true) { let contributorEmailAddress = _.get(contributor, emailProperty, null); if (!contributorEmailAddress) { if (!contributor) { @@ -312,6 +312,9 @@ export module Services { } if (_.isString(contributorEmailAddress)) { sails.log.verbose(`Pushing contrib email address ${contributorEmailAddress}`); + if(lowerCaseEmailAddresses) { + contributorEmailAddress = contributorEmailAddress.toLowerCase() + } emailList.push(contributorEmailAddress); } }