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

Release650 to release650-eds merge 8th - April #1170

Merged
merged 59 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ca9cb59
FORMS-13392 Role main check (#1112)
rajatofficial Mar 11, 2024
5134684
Constraint messages should work when type is integer for number-input…
ravise5 Mar 18, 2024
a249f93
Revert "Rich text support (#1077)" (#1129)
rismehta Mar 18, 2024
7ec4d30
FORMS-13392 Role main check (#1112)
rajatofficial Mar 11, 2024
b552c9d
Constraint messages should work when type is integer for number-input…
ravise5 Mar 18, 2024
a60c0a1
Revert "Rich text support (#1077)" (#1129)
rismehta Mar 18, 2024
ea5bc19
Merge pull request #1130 from adobe/devMaster1803
rismehta Mar 18, 2024
f3a9e36
@releng [maven-scm] :prepare release core-forms-components-reactor-3.0.2
rismehta Mar 18, 2024
6ecacf3
@releng [maven-scm] :prepare for next development iteration
rismehta Mar 18, 2024
5318820
Update VERSIONS.md
rismehta Mar 18, 2024
03cb6b8
Update README.md
rismehta Mar 18, 2024
ac1f567
Adding debug log to print git version
rismehta Mar 18, 2024
da93d69
Revert "Revert "Rich text support (#1077)"" (#1131)
im-shiv Mar 20, 2024
0c9da93
FORMS-11692: upgraded af2-web-runtime version and added rule editor t…
arunattri26 Mar 21, 2024
7f7b068
Add support for displayValueExpression (#1126)
ravise5 Mar 22, 2024
ce5ea5e
Revert "Revert "Rich text support (#1077)"" (#1131)
im-shiv Mar 20, 2024
f17ec3a
FORMS-11692: upgraded af2-web-runtime version and added rule editor t…
arunattri26 Mar 21, 2024
1a8688f
RTC Add support for displayValueExpression (#1126)
ravise5 Mar 22, 2024
b0f07e5
Merge pull request #1141 from adobe/dev2master26March
rismehta Mar 26, 2024
4ba5460
Fixes datepicker layout issues (#1134)
devgurjar Mar 26, 2024
19d526a
Revert "Fixes datepicker layout issues (#1134)"
rismehta Mar 26, 2024
fc59181
initial commit (#1133)
pavi41 Mar 26, 2024
6ae3e38
@releng [maven-scm] :prepare release core-forms-components-reactor-3.0.4
Mar 26, 2024
06109ba
@releng [maven-scm] :prepare for next development iteration
Mar 26, 2024
5d5cf47
Update README.md
Mar 26, 2024
d8d58f5
Update version in ReadMe
Mar 26, 2024
681833e
Revert "Update README.md"
rismehta Mar 26, 2024
a66d993
Revert "Update version in ReadMe"
rismehta Mar 26, 2024
9eccd28
Fixing circle ci script and updating version.md and release/md
rismehta Mar 27, 2024
15251a6
Revert "Merge pull request #1141 from adobe/dev2master26March"
rismehta Mar 27, 2024
44dc04a
Revert "Merge pull request #1130 from adobe/devMaster1803"
rismehta Mar 27, 2024
463d31f
Merge branch 'dev' into devM27March
rismehta Mar 27, 2024
b952b6e
Aligning command.js to dev
rismehta Mar 27, 2024
d6fbfd0
Merge branch 'dev' into devM27March
rismehta Mar 27, 2024
61b45f1
Enabling custom extension in view layer (#1148)
rismehta Mar 27, 2024
c620390
date picker layout issue (#1145)
devgurjar Mar 27, 2024
ceb4af9
Merge branch 'dev' into devM27March
rismehta Mar 27, 2024
2144380
Merge pull request #1147 from adobe/devM27March
rismehta Mar 27, 2024
c7aa6a7
@releng [maven-scm] :prepare release core-forms-components-reactor-3.0.6
rismehta Mar 27, 2024
fff0683
@releng [maven-scm] :prepare for next development iteration
rismehta Mar 27, 2024
b889fdc
Merge branch 'master' into master_to_650_27thMarch
rismehta Mar 27, 2024
5debcec
Fixing circle ci config
rismehta Mar 27, 2024
b3847a6
Fixing merge conflicts in test
rismehta Mar 27, 2024
b7cc8ef
Moving to 6.5.21 load 3 image
rismehta Mar 28, 2024
bc99c72
Increasing the sleep time
rismehta Mar 28, 2024
19ae72d
Adding hotfix for 6520 build
rismehta Mar 28, 2024
fc934d2
Fixing hotfix installation
rismehta Mar 28, 2024
c0f9bd9
Changing add on version to 6.5.20
rismehta Mar 28, 2024
7eebc40
Fixing theme selection test for 650
rismehta Mar 28, 2024
85fb172
Merge pull request #1150 from adobe/master_to_650_27thMarch
rismehta Mar 28, 2024
e52b79c
@releng [maven-scm] :prepare release core-forms-components-reactor-1.…
rismehta Mar 28, 2024
19d52ff
@releng [maven-scm] :prepare for next development iteration
rismehta Mar 28, 2024
d0d341c
Update README.md
rismehta Mar 28, 2024
402b13f
Update VERSIONS.md
rismehta Mar 28, 2024
b6bf113
Fixing circle ci config
rismehta Mar 28, 2024
f27621d
Fixing circle ci config
rismehta Mar 28, 2024
e7d8f3c
Update VERSIONS.md
rismehta Apr 8, 2024
d1f57dc
Merge branch 'release/650' into release65-eds
ravise5 Apr 8, 2024
dcac7d3
release shouldn't be blocked if jsdoc deploy fails for this branch
ravise5 Apr 8, 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
7 changes: 5 additions & 2 deletions .circleci/ci/it-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const qpPath = '/home/circleci/cq';
const buildPath = '/home/circleci/build';
const { TYPE, BROWSER, AEM, PRERELEASE, FT, CONTEXTPATH, FTCONFIG} = process.env;
const classicFormAddonVersion = 'LATEST';
const classicFormReleasedAddonVersion = '6.0.1120'; // change this value to last form released addon version
// 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
const classicFormReleasedAddonVersion = '6.0.1192';

try {
ci.stage("Integration Tests");
Expand All @@ -41,6 +42,8 @@ try {
extras += ` --install-file ${buildPath}/forms-linux-addon.far`;
// The core components are already installed in the Cloud SDK
extras += ` --bundle com.adobe.cq:core.wcm.components.all:${wcmVersion}:zip`;
// add hotfix for 6520, remove it later if required
// extras += ` --install-file ${buildPath}/it/core/src/main/resources/Hotfix-6520-Linux.zip`;
} else if (AEM === 'classic-latest' || AEM === 'classic-latest-cp') {
// Download latest add-on release from artifactory
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`);
Expand Down Expand Up @@ -107,7 +110,7 @@ try {
ci.sh(`./qp.sh stop --id author`);
ci.sh(`./qp.sh start --id author`);
// add a sleep for 7 mins, add-on takes times to come up
ci.sh(`sleep 10m`);
ci.sh(`sleep 12m`);
}
});

Expand Down
22 changes: 13 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ executors:
docker:
- image: docker-adobe-cif-release.dr-uw2.adobeitc.com/circleci-qp:6.4.6-openjdk11
<<: *docker_auth
- image: docker-adobe-cif-release.dr-uw2.adobeitc.com/circleci-aem:6.5.21-load2-openjdk11
- image: docker-adobe-cif-release.dr-uw2.adobeitc.com/circleci-aem:6.5.21-load3-openjdk11
<<: *docker_auth

jobs:
Expand Down Expand Up @@ -322,8 +322,13 @@ jobs:
- run:
name: Update VERSIONS.md and README.md with the new released version
command: |
# Echo Git version
echo "Git Version: $(git --version)"

# Echo Circle CI tag
echo "CIRCLE_TAG: $CIRCLE_TAG"
RELEASE_BRANCH=$(git branch --contains ${CIRCLE_TAG} | awk 'FNR==2 {print $1}')
# Hardcoding the branch on release/650, since finding branch name with tag does not return correct output
RELEASE_BRANCH="release/650"

# Debugging output
echo "RELEASE_BRANCH: $RELEASE_BRANCH"
Expand All @@ -340,14 +345,14 @@ jobs:
# Debugging output
echo "BRANCH_NAME: $BRANCH_NAME"

# Find the last two tags on the branch
LAST_TWO_TAGS=$(git tag -l "core-forms-components-reactor-*" | sort -V -r | head -n 2)
# Find the last tag on the branch, ignoring the private release
LAST_TAG=$(git tag -l --sort=-v:refname "core-forms-components-reactor-*" | grep -v -- '-[[:alnum:]]*$' | awk -v tag="$CIRCLE_TAG" '$0 < tag' | head -n 1)

# Debugging output
echo "LAST_TWO_TAGS: $LAST_TWO_TAGS"
# echo "LAST_TWO_TAGS: $LAST_TWO_TAGS"

# Extract the last released from the output
LAST_TAG=$(echo "$LAST_TWO_TAGS" | tail -n 1)
# LAST_TAG=$(echo "$LAST_TWO_TAGS" | tail -n 1)

# Debugging output
echo "LAST_TAG: $LAST_TAG"
Expand All @@ -372,13 +377,13 @@ jobs:
# Debugging output
echo "WCM_CORE_COMPONENTS_VERSION: $WCM_CORE_COMPONENTS_VERSION"

echo "Before sed: $(cat VERSIONS.md)"
# echo "Before sed: $(cat VERSIONS.md)"
# update versions.md
sed -i "/$LAST_VERSION/ { p; b; }; 1,/$LAST_VERSION/ { p; d; }" VERSIONS.md
sed -i -E "0,/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\s*\|/s//| $NEW_VERSION \| $WCM_CORE_COMPONENTS_VERSION |/" VERSIONS.md
echo "After sed: $(cat VERSIONS.md)"

echo "Before sed: $(cat README.md)"
# echo "Before sed: $(cat README.md)"
# update readme.md
sed -i -E "s/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+ \s*\| /| $NEW_VERSION | $WCM_CORE_COMPONENTS_VERSION | /g" README.md
echo "After sed: $(cat README.md)"
Expand Down Expand Up @@ -445,7 +450,6 @@ workflows:
- release:
requires:
- build-java-11
- jsdocs-deploy
filters:
branches:
ignore: /.*/
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ See [AEM Sites Core Components](https://docs.adobe.com/content/help/en/experienc

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


| Forms Core Components | WCM Core Components | AEM 6.5 | Java | Maven |
|-----------------------|---------------------|---------| ----- | ------ |
| 1.1.34 | 2.24.2 | 6.5.18+ | 8, 11 | 3.3.9+ |
| 1.1.36 | 2.24.2 | 6.5.18+ | 8, 11 | 3.3.9+ |


For a list of requirements for previous versions, see [Historical System Requirements](VERSIONS.md).
Expand Down
2 changes: 1 addition & 1 deletion VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ See below for a full list of minimum system requirements for historical versions

| Forms Core Components | WCM Core Components | AEM 6.5 | Java | Maven |
|-----------------------|---------------------|---------| ----- | ------ |
| 1.1.36 | 2.24.2 | 6.5.20+ | 8, 11 | 3.3.9+ |
| 1.1.34 | 2.24.2 | 6.5.18+ | 8, 11 | 3.3.9+ |
| 1.1.32 | 2.23.2 | 6.5.18+ | 8, 11 | 3.3.9+ |
| 1.1.28 | 2.23.2 | 6.5.19+ | 8, 11 | 3.3.9+ |
Expand All @@ -14,5 +15,4 @@ See below for a full list of minimum system requirements for historical versions
| 1.1.18 | 2.21.2 | 6.5.17+ | 8, 11 | 3.3.9+ |
| 1.1.16 | 2.21.2 | 6.5.17+ | 8, 11 | 3.3.9+ |
| 1.1.12 | 2.21.2 | 6.5.16+ | 8, 11 | 3.3.9+ |


Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
package com.adobe.cq.forms.core.components.internal.models.v1.form;

import javax.annotation.Nullable;
import javax.annotation.PostConstruct;

import org.apache.sling.api.SlingHttpServletRequest;
Expand All @@ -24,7 +25,6 @@
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.InjectionStrategy;
import org.apache.sling.models.annotations.injectorspecific.ValueMapValue;
import org.jetbrains.annotations.Nullable;

import com.adobe.cq.export.json.ComponentExporter;
import com.adobe.cq.export.json.ExporterConstants;
Expand Down Expand Up @@ -64,7 +64,6 @@ public class NumberInputImpl extends AbstractFieldImpl implements NumberInput {
@Nullable
private Boolean excludeMinimumCheck;
/** End **/

private Long exclusiveMinimumVaue;
private Long exclusiveMaximumValue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public class TextInputImpl extends AbstractFieldImpl implements TextInput {
private Object exclusiveMaximumValue;

/** End of Type number specific constraints **/

@Override
public boolean isMultiLine() {
return multiLine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,14 @@ default Object[] getDefault() {
return null;
}

/**
* The expression that when evaluated would determine what the displayValue of a field would be
*
* @return display value expression of the field
* @since com.adobe.cq.forms.core.components.models.form 5.2.0
*/
default String getDisplayValueExpression() {
return null;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public interface FormContainer extends Container {
String PN_CLIENT_LIB_REF = GuideConstants.CLIENT_LIB_REF;

String THEME_CLIENT_LIB_REF = "themeClientLibRef";
String DEFAULT_FORMS_SPEC_VERSION = "0.12.1";
String DEFAULT_FORMS_SPEC_VERSION = "0.12.5";

/**
* Returns form metadata {@link FormMetaData}
Expand All @@ -90,7 +90,7 @@ default String getAdaptiveFormVersion() {
* Returns schema reference
*
* @return reference to schema
*
*
* @since com.adobe.cq.forms.core.components.models.form 2.1.0
*/
@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@
/**
* Interface for a label
*
* @since com.adobe.cq.forms.core.components.models.form 5.4.0
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
*/
@ConsumerType
public interface Label extends TextContent {
public interface Label {

/**
* Returns {@code true} if label is rich text, otherwise {@code false}.
*
* @return {@code true} if label is rich text, otherwise {@code false}
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
*/
@Nullable
default Boolean isRichText() {
return null;
}

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

/**
* Returns the value of this label.
*
* @return the value of this label
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
*/
@Nullable
default String getValue() {
return null;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
*/
@ConsumerType
public interface NumberInput extends Field, NumberConstraint {

@Nullable
@JsonIgnore
default String getEditFormat() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import org.osgi.annotation.versioning.ProviderType;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand Down Expand Up @@ -58,17 +57,5 @@ default boolean isEnforceEnum() {
* @return the list of enum names
* @since com.adobe.cq.forms.core.components.models.form 0.0.1
*/
@Deprecated
@JsonIgnore
String[] getEnumNames();

/**
* Returns a list of RichText to be displayed to the end user.
* The length of enum and enumNames array must match
*
* @return the list of enum names
* @since com.adobe.cq.forms.core.components.models.form 5.4.0
*/
@JsonProperty("enumNames")
TextContent[] getEnumNamesAsTextContent();
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* version, is bound to this proxy component resource type.
* </p>
*/
@Version("5.4.0") // aligning this with release/650 since af2-rest-api is compiled with 5.2.0 in release/650
@Version("5.3.0") // aligning this with release/650 since af2-rest-api is compiled with 5.2.0 in release/650
package com.adobe.cq.forms.core.components.models.form;

import org.osgi.annotation.versioning.Version;
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected String getConstraintMessage(ConstraintType type) {
putConstraintMessage(ConstraintType.FORMAT, msgs.getFormatConstraintMessage());
}

if (type.equals(Type.NUMBER)) {
if (type.equals(Type.NUMBER) || type.equals(Type.INTEGER)) {
putConstraintMessage(ConstraintType.MINIMUM, msgs.getMinimumConstraintMessage());
putConstraintMessage(ConstraintType.MAXIMUM, msgs.getMaximumConstraintMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public abstract class AbstractFieldImpl extends AbstractBaseImpl implements Fiel
@Nullable
protected String editFormat;

@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL)
@Nullable
protected String displayValueExpression;

@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL, name = "dataFormat")
@Nullable
protected String dataFormat;
Expand Down Expand Up @@ -181,6 +185,12 @@ public String getEditFormat() {
return editFormat;
}

@Override
@Nullable
public String getDisplayValueExpression() {
return displayValueExpression;
}

@Override
@Nullable
public String getDataFormat() {
Expand Down
Loading
Loading