Skip to content

Commit 1c16172

Browse files
authored
v1.11.1 (#153)
* #148 - POST /documents/{documentId}/actions fails to run new actions * #149 - adjusting chatgpt response * Updated console to v3.2.2 * GET /configuration - Adding mask keys
1 parent a81978f commit 1c16172

File tree

23 files changed

+387
-52
lines changed

23 files changed

+387
-52
lines changed

aws-dynamodb/src/main/java/com/formkiq/aws/dynamodb/objects/Strings.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,24 @@ public static String getFilename(final String path) {
6262
public static boolean isEmpty(final CharSequence cs) {
6363
return cs == null || cs.length() == 0;
6464
}
65+
66+
/**
67+
* Remove single/double quotes from {@link String}.
68+
*
69+
* @param s {@link String}
70+
* @return {@link String}
71+
*/
72+
public static String removeQuotes(final String s) {
73+
return s.replaceAll("^['\"]|['\"]$", "");
74+
}
75+
76+
/**
77+
* Remove single/double quotes from {@link String}.
78+
*
79+
* @param s {@link String}
80+
* @return {@link String}
81+
*/
82+
public static String removeEndingPunctuation(final String s) {
83+
return s.replaceAll("[!\\.,?]$", "");
84+
}
6585
}

aws-dynamodb/src/test/java/com/formkiq/aws/dynamodb/objects/StringsTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,22 @@ void testFilename() {
4747
assertEquals("test (something).txt",
4848
Strings.getFilename("/bleh/something/test (something).txt"));
4949
}
50+
51+
@Test
52+
void replaceQuotes() {
53+
assertEquals("text", Strings.removeQuotes("text"));
54+
assertEquals("text", Strings.removeQuotes("\"text\""));
55+
assertEquals("text", Strings.removeQuotes("\"text"));
56+
assertEquals("text", Strings.removeQuotes("'text'"));
57+
assertEquals("text", Strings.removeQuotes("\"text'"));
58+
}
59+
60+
@Test
61+
void removeEndingPunctuation() {
62+
assertEquals("text", Strings.removeEndingPunctuation("text"));
63+
assertEquals("\"text\"", Strings.removeEndingPunctuation("\"text\","));
64+
assertEquals("\"text", Strings.removeEndingPunctuation("\"text!"));
65+
assertEquals("'text?'", Strings.removeEndingPunctuation("'text?'"));
66+
assertEquals("\"text'", Strings.removeEndingPunctuation("\"text'"));
67+
}
5068
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def getCmdParam() {
2424
repositories { mavenCentral() }
2525

2626
allprojects {
27-
version = '1.11.0'
27+
version = '1.11.1'
2828
ext.awsCognitoVersion = '1.5.0'
2929
group = 'com.formkiq.stacks'
3030

console/src/integration/java/com/formkiq/stacks/console/awstest/AwsResourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void testS3Buckets() {
201201
*/
202202
@Test
203203
public void testSsmParameters() {
204-
assertEquals("v3.1.0",
204+
assertEquals("v3.2.2",
205205
ssmService.getParameterValue("/formkiq/" + appenvironment + "/console/version"));
206206
assertTrue(ssmService.getParameterValue("/formkiq/" + appenvironment + "/s3/Console")
207207
.contains(appenvironment + "-console-"));

console/src/main/resources/cloudformation/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Parameters:
1717
ConsoleVersion:
1818
Type: String
1919
Description: Version of FormKiQ console to deploy
20-
Default: v3.1.0
20+
Default: v3.2.2
2121

2222
FormKiQType:
2323
Description: The type of FormKiQ installation

docs/openapi/openapi-iam.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
license:
1313
name: Apache 2.0
1414
url: https://www.apache.org/licenses/LICENSE-2.0.html
15-
description: FormKiQ IAM API
16-
version: 1.11.0
15+
description: 'Formkiq API: Document Management Platform API using AWS IAM Authentication'
16+
version: 1.11.1
1717
paths:
1818
/version:
1919
get:

docs/openapi/openapi-jwt.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
license:
1313
name: Apache 2.0
1414
url: https://www.apache.org/licenses/LICENSE-2.0.html
15-
description: FormKiQ HTTP API
16-
version: 1.11.0
15+
description: 'Formkiq API: Document Management Platform API using JWT Authentication'
16+
version: 1.11.1
1717
paths:
1818
/version:
1919
get:

docs/openapi/openapi-key.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
license:
1313
name: Apache 2.0
1414
url: https://www.apache.org/licenses/LICENSE-2.0.html
15-
description: FormKiQ Api Key
16-
version: 1.11.0
15+
description: 'Formkiq API: Document Management Platform API using API Key(s) Authentication'
16+
version: 1.11.1
1717
paths:
1818
/version:
1919
get:

document-events/src/main/java/com/formkiq/module/documentevents/DocumentEvent.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,31 @@
3333
public class DocumentEvent {
3434

3535
/** Document SiteId. */
36+
@Reflectable
3637
private String siteId;
3738
/** Document Id. */
39+
@Reflectable
3840
private String documentId;
3941
/** S3 Key. */
42+
@Reflectable
4043
private String s3key;
4144
/** S3 Bucket. */
45+
@Reflectable
4246
private String s3bucket;
4347
/** Document Type. */
48+
@Reflectable
4449
private String type;
4550
/** User Id. */
51+
@Reflectable
4652
private String userId;
4753
/** Document Content. */
54+
@Reflectable
4855
private String content;
4956
/** Document Content Type. */
57+
@Reflectable
5058
private String contentType;
5159
/** Docuemnt Path. */
60+
@Reflectable
5261
private String path;
5362

5463
/**

lambda-api/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929

3030
annotationProcessor group: 'com.formkiq', name: 'graalvm-annotations-processor', version: '1.3.0'
3131

32+
implementation project(':document-events')
3233
implementation project(':fkq-lambda-services')
3334
implementation project(':fkq-lambda-core')
3435
implementation project(':fkq-validation')

0 commit comments

Comments
 (0)