Skip to content

Commit 85fb172

Browse files
authored
Merge pull request #1150 from adobe/master_to_650_27thMarch
Master to 650 27th march
2 parents c6e5680 + 7eebc40 commit 85fb172

File tree

190 files changed

+6938
-4848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+6938
-4848
lines changed

.circleci/ci/it-tests.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const qpPath = '/home/circleci/cq';
2525
const buildPath = '/home/circleci/build';
2626
const { TYPE, BROWSER, AEM, PRERELEASE, FT, CONTEXTPATH, FTCONFIG} = process.env;
2727
const classicFormAddonVersion = 'LATEST';
28-
const classicFormReleasedAddonVersion = '6.0.1120'; // change this value to last form released addon version
28+
// this value is for 6.5.20.0 version as per, https://experienceleague.adobe.com/en/docs/experience-manager-release-information/aem-release-updates/forms-updates/aem-forms-releases
29+
const classicFormReleasedAddonVersion = '6.0.1192';
2930

3031
try {
3132
ci.stage("Integration Tests");
@@ -41,6 +42,8 @@ try {
4142
extras += ` --install-file ${buildPath}/forms-linux-addon.far`;
4243
// The core components are already installed in the Cloud SDK
4344
extras += ` --bundle com.adobe.cq:core.wcm.components.all:${wcmVersion}:zip`;
45+
// add hotfix for 6520, remove it later if required
46+
// extras += ` --install-file ${buildPath}/it/core/src/main/resources/Hotfix-6520-Linux.zip`;
4447
} else if (AEM === 'classic-latest' || AEM === 'classic-latest-cp') {
4548
// Download latest add-on release from artifactory
4649
ci.sh(`mvn -s ${buildPath}/.circleci/settings.xml com.googlecode.maven-download-plugin:download-maven-plugin:1.6.3:artifact -Partifactory-cloud -DgroupId=com.adobe.aemds -DartifactId=adobe-aemfd-linux-pkg -Dversion=${classicFormAddonVersion} -Dtype=zip -DoutputDirectory=${buildPath} -DoutputFileName=forms-linux-addon.far`);
@@ -107,7 +110,7 @@ try {
107110
ci.sh(`./qp.sh stop --id author`);
108111
ci.sh(`./qp.sh start --id author`);
109112
// add a sleep for 7 mins, add-on takes times to come up
110-
ci.sh(`sleep 10m`);
113+
ci.sh(`sleep 12m`);
111114
}
112115
});
113116

.circleci/config.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ executors:
128128
docker:
129129
- image: docker-adobe-cif-release.dr-uw2.adobeitc.com/circleci-qp:6.4.6-openjdk11
130130
<<: *docker_auth
131-
- image: docker-adobe-cif-release.dr-uw2.adobeitc.com/circleci-aem:6.5.21-load2-openjdk11
131+
- image: docker-adobe-cif-release.dr-uw2.adobeitc.com/circleci-aem:6.5.21-load3-openjdk11
132132
<<: *docker_auth
133133

134134
jobs:
@@ -322,6 +322,10 @@ jobs:
322322
- run:
323323
name: Update VERSIONS.md and README.md with the new released version
324324
command: |
325+
# Echo Git version
326+
echo "Git Version: $(git --version)"
327+
328+
# Echo Circle CI tag
325329
echo "CIRCLE_TAG: $CIRCLE_TAG"
326330
RELEASE_BRANCH=$(git branch --contains ${CIRCLE_TAG} | awk 'FNR==2 {print $1}')
327331
@@ -340,8 +344,8 @@ jobs:
340344
# Debugging output
341345
echo "BRANCH_NAME: $BRANCH_NAME"
342346
343-
# Find the last two tags on the branch
344-
LAST_TWO_TAGS=$(git tag -l "core-forms-components-reactor-*" | sort -V -r | head -n 2)
347+
# Find the last two tags on the branch, ignoring the private release
348+
LAST_TWO_TAGS=$(git tag -l --sort=-v:refname "core-forms-components-reactor-*" | grep -v -- '-[[:alnum:]]*$' | head -n 2)
345349
346350
# Debugging output
347351
echo "LAST_TWO_TAGS: $LAST_TWO_TAGS"
@@ -372,13 +376,13 @@ jobs:
372376
# Debugging output
373377
echo "WCM_CORE_COMPONENTS_VERSION: $WCM_CORE_COMPONENTS_VERSION"
374378
375-
echo "Before sed: $(cat VERSIONS.md)"
379+
# echo "Before sed: $(cat VERSIONS.md)"
376380
# update versions.md
377381
sed -i "/$LAST_VERSION/ { p; b; }; 1,/$LAST_VERSION/ { p; d; }" VERSIONS.md
378382
sed -i -E "0,/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\s*\|/s//| $NEW_VERSION \| $WCM_CORE_COMPONENTS_VERSION |/" VERSIONS.md
379383
echo "After sed: $(cat VERSIONS.md)"
380384
381-
echo "Before sed: $(cat README.md)"
385+
# echo "Before sed: $(cat README.md)"
382386
# update readme.md
383387
sed -i -E "s/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+ \s*\| /| $NEW_VERSION | $WCM_CORE_COMPONENTS_VERSION | /g" README.md
384388
echo "After sed: $(cat README.md)"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ See [AEM Sites Core Components](https://docs.adobe.com/content/help/en/experienc
5050

5151
The latest version of the AEM Forms Core Components, require the below minimum system requirements:
5252

53-
5453
| Forms Core Components | WCM Core Components | AEM 6.5 | Java | Maven |
5554
|-----------------------|---------------------|---------| ----- | ------ |
5655
| 1.1.34 | 2.24.2 | 6.5.18+ | 8, 11 | 3.3.9+ |

VERSIONS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ See below for a full list of minimum system requirements for historical versions
1414
| 1.1.18 | 2.21.2 | 6.5.17+ | 8, 11 | 3.3.9+ |
1515
| 1.1.16 | 2.21.2 | 6.5.17+ | 8, 11 | 3.3.9+ |
1616
| 1.1.12 | 2.21.2 | 6.5.16+ | 8, 11 | 3.3.9+ |
17-
1817

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/internal/models/v1/form/NumberInputImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
1616
package com.adobe.cq.forms.core.components.internal.models.v1.form;
1717

18+
import javax.annotation.Nullable;
1819
import javax.annotation.PostConstruct;
1920

2021
import org.apache.sling.api.SlingHttpServletRequest;
@@ -24,7 +25,6 @@
2425
import org.apache.sling.models.annotations.Model;
2526
import org.apache.sling.models.annotations.injectorspecific.InjectionStrategy;
2627
import org.apache.sling.models.annotations.injectorspecific.ValueMapValue;
27-
import org.jetbrains.annotations.Nullable;
2828

2929
import com.adobe.cq.export.json.ComponentExporter;
3030
import com.adobe.cq.export.json.ExporterConstants;
@@ -64,7 +64,6 @@ public class NumberInputImpl extends AbstractFieldImpl implements NumberInput {
6464
@Nullable
6565
private Boolean excludeMinimumCheck;
6666
/** End **/
67-
6867
private Long exclusiveMinimumVaue;
6968
private Long exclusiveMaximumValue;
7069

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/internal/models/v1/form/TextInputImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public class TextInputImpl extends AbstractFieldImpl implements TextInput {
6969
private Object exclusiveMaximumValue;
7070

7171
/** End of Type number specific constraints **/
72-
7372
@Override
7473
public boolean isMultiLine() {
7574
return multiLine;

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/models/form/Field.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,14 @@ default Object[] getDefault() {
9898
return null;
9999
}
100100

101+
/**
102+
* The expression that when evaluated would determine what the displayValue of a field would be
103+
*
104+
* @return display value expression of the field
105+
* @since com.adobe.cq.forms.core.components.models.form 5.2.0
106+
*/
107+
default String getDisplayValueExpression() {
108+
return null;
109+
}
110+
101111
}

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/models/form/FormContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public interface FormContainer extends Container {
6565
String PN_CLIENT_LIB_REF = GuideConstants.CLIENT_LIB_REF;
6666

6767
String THEME_CLIENT_LIB_REF = "themeClientLibRef";
68-
String DEFAULT_FORMS_SPEC_VERSION = "0.12.1";
68+
String DEFAULT_FORMS_SPEC_VERSION = "0.12.5";
6969

7070
/**
7171
* Returns form metadata {@link FormMetaData}
@@ -90,7 +90,7 @@ default String getAdaptiveFormVersion() {
9090
* Returns schema reference
9191
*
9292
* @return reference to schema
93-
*
93+
*
9494
* @since com.adobe.cq.forms.core.components.models.form 2.1.0
9595
*/
9696
@Nullable

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/models/form/Label.java

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,21 @@
2121
/**
2222
* Interface for a label
2323
*
24-
* @since com.adobe.cq.forms.core.components.models.form 5.4.0
24+
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
2525
*/
2626
@ConsumerType
27-
public interface Label extends TextContent {
27+
public interface Label {
28+
29+
/**
30+
* Returns {@code true} if label is rich text, otherwise {@code false}.
31+
*
32+
* @return {@code true} if label is rich text, otherwise {@code false}
33+
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
34+
*/
35+
@Nullable
36+
default Boolean isRichText() {
37+
return null;
38+
}
2839

2940
/**
3041
* Returns {@code true} if label should be visible, otherwise {@code false}.
@@ -37,4 +48,15 @@ default Boolean isVisible() {
3748
return null;
3849
}
3950

51+
/**
52+
* Returns the value of this label.
53+
*
54+
* @return the value of this label
55+
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
56+
*/
57+
@Nullable
58+
default String getValue() {
59+
return null;
60+
}
61+
4062
}

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/models/form/NumberInput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
@ConsumerType
2929
public interface NumberInput extends Field, NumberConstraint {
30-
3130
@Nullable
3231
@JsonIgnore
3332
default String getEditFormat() {

0 commit comments

Comments
 (0)