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

LPS-83714 #837

Closed
wants to merge 4 commits into from
Closed

LPS-83714 #837

wants to merge 4 commits into from

Conversation

antonio-ortega
Copy link

Hi @rafaprax,

Can you review this PR?

You can find further information in LPS-83714.

The solution is based on this proposal by @natocesarrego.

First commit is enough to solve the issue. Second commit is to avoid execute useless code. Don't hesitate to ask me any question.

Thanks in advance.

Regards,

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

@antonio-ortega
Copy link
Author

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:relevant - 41 out of 48 jobs passed in 1 hour 20 minutes 49 seconds 159 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: cd184cdb454e7ed98926fd568cb81d7311d6347d

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: f1a494947c93b55c58ffefb9d50dccdb128ba9b4

41 out of 48 jobs PASSED
41 Successful Jobs:
For more details click here.

Failures unique to this pull:


Failures in common with acceptance upstream results at cd184cd:
  1. test-portal-acceptance-pullrequest-batch(master)/modules-compile-jdk8
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #217213
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:unzipJar
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:generateJSPJava
           [exec] Compiling JSP files of project ':apps:dynamic-data-mapping:dynamic-data-mapping-form-web' with /opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.10/webapps/ROOT/WEB-INF/lib/util-taglib.jar as dependency in place of 'com.liferay.portal:com.liferay.util.taglib'
           [exec] Note: Some input files use or override a deprecated API.
           [exec] Note: Recompile with -Xlint:deprecation for details.
           [exec] Note: Some input files use unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:compileJSP
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:jarJSP
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:jarSources
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:jarSourcesCommercial
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:assemble
           [exec] 
           [exec] BUILD FAILED
           [exec] 
           [exec] Total time: 2 mins 17.851 secs
           [exec] Gradle build finished at 2018-08-20 08:56:22.259.
           [exec] 
           [exec] FAILURE: Build completed with 2 failures.
           [exec] 
           [exec] 1: Task failed with an exception.
           [exec] -----------
           [exec] * What went wrong:
           [exec] Execution failed for task ':apps:dynamic-data-mapping:dynamic-data-mapping-form-taglib:validateTLD'.
           [exec] > /opt/dev/projects/github/liferay-portal/modules/apps/dynamic-data-mapping/dynamic-data-mapping-form-taglib/src/main/resources/META-INF/resources/liferay-form.tld is not a valid XML document.
           [exec] 
           [exec] * Try:
           [exec] Run with --info or --debug option to get more log output.
           [exec] 
           [exec] * Exception is:
           [exec] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':apps:dynamic-data-mapping:dynamic-data-mapping-form-taglib:validateTLD'.
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84)
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
  2. test-portal-acceptance-pullrequest-batch(master)/modules-semantic-versioning-jdk8
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #230676

      Please fix semantic versioning on antonio-ortega/LPS-83714

           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] :apps:export-import:export-import-changeset-taglib:compileJava
           [exec] > dynamic-data-mapping-form-web@2.0.0 clean /opt/dev/projects/github/liferay-portal/modules/apps/dynamic-data-mapping/dynamic-data-mapping-form-web
           [exec] > rimraf src/**/*.soy.js
           [exec] 
           [exec] 
           [exec] :apps:export-import:export-import-changeset-taglib:copyLibs SKIPPED
           [exec] :apps:export-import:export-import-changeset-taglib:classes
           [exec] :apps:export-import:export-import-changeset-taglib:jar
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:compileJava
           [exec] Note: Some input files use or override a deprecated API.
           [exec] Note: Recompile with -Xlint:deprecation for details.
           [exec] Note: Some input files use unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] :apps:document-library:document-library-web:compileJava
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:copyLibs SKIPPED
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:replaceSoyTranslation
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:wrapSoyAlloyTemplate SKIPPED
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:classes
           [exec] Note: Some input files use or override a deprecated API.
           [exec] Note: Recompile with -Xlint:deprecation for details.
           [exec] Note: Some input files use unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:jar
           [exec] :apps:document-library:document-library-web:copyLibs SKIPPED
           [exec] :apps:document-library:document-library-web:classes
           [exec] :apps:document-library:document-library-web:jar
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:baseline
           [exec] :apps:dynamic-data-mapping:dynamic-data-mapping-form-web:syncVersions
           [exec] 
           [exec] FAILURE: Build failed with an exception.
           [exec] 
           [exec] * What went wrong:
           [exec] Execution failed for task ':apps:dynamic-data-mapping:dynamic-data-mapping-taglib:baseline'.
           [exec] > Semantic versioning is incorrect

  3. ...
Test bundle downloads:

@pedroqueiroz
Copy link

Just started reviewing :)

:octocat: Sent from GH.

@@ -120,26 +120,31 @@

<aui:input name="<%= HtmlUtil.getAUICompatibleId(ddmFormValuesInputName) %>" type="hidden" />

<aui:input name="ddmFormFieldNamespace" type="hidden" value="<%= fieldsNamespace %>" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @antonio-ortega , since this is only used by DL, is it possible to move this out of the DDM Taglib and keep the logic at DL?

instance.updateDDMFormInputValue();
}
},

_onSubmitForm: function(event) {
var instance = this;

instance.updateDDMFormInputValue();
if (instance.get('synchronousFormSubmission')) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antonio-ortega , wouldn't it be better to move this condition checking to the event handlers assignment to avoid calling this method unnecessarily?

@@ -73,6 +73,12 @@
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<name>synchronousFormSubmission</name>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antonio-ortega , we cannot directly change *.tld files. The correct process is:

  1. Add the new input to liferay-ddm.xml
  2. Run gradlew buildTaglibs

These steps will update the *.tld files propertly.

@jorgediaz-lr
Copy link

Hi @pedroqueiroz

@antonio-ortega is out of office since, he will come back next week.

@pedroqueiroz
Copy link

Just started reviewing :)

:octocat: Sent from GH.

@pedroqueiroz
Copy link

Hey @antonio-ortega , I've added the fix related to the taglibs + your commits on this PR: #889.

Can you take a look there?

Thanks!

I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants