Skip to content

LPS-121903 Migrate v2 usages in roles/roles-admin-web#835

Closed
julien wants to merge 2 commits into
liferay-frontend:masterfrom
julien:LPS-121903
Closed

LPS-121903 Migrate v2 usages in roles/roles-admin-web#835
julien wants to merge 2 commits into
liferay-frontend:masterfrom
julien:LPS-121903

Conversation

@julien

@julien julien commented Feb 24, 2021

Copy link
Copy Markdown

The <clay:management-toolbar-v2 /> tag has been replaced with the
<clay:management-toolbar /> tag (which uses clay v3).

Creating and deleting roles should work as expected, as well as adding or
removing assignees from these roles.

Test plan (1):

  • From the global menu, select the Control Panel tab
  • Navigate to Roles
  • Make sure you can:
    • Create and delete Regular Roles
    • Create and delete Site Roles
    • Create and delete Organization Roles
    • Create and delete Asset Library Roles
    • Create and delete Account Roles

Test Plan (2):

  • Create a Regular Role
  • Select (click) the Regular Role you created previously
  • Navigate to the Assignees tab
  • Make sure you can add assignees from this role
  • Make sure you can remove assignees from this role

Additional notes

  • Submitting this as a draft before forwarding to @drewbrokke so that @ambrinchaudhary , @john-co and @markocikos can review

  • This module had an <aui:script> that was defining one of the management toolbar's event handler, and at the same time calling that handler depending on values present in session storage. Since this might be hard to understand, this is what I'm referring to.
    In this change, what I've done is replaced that by using a "propsTransformer" for the management toolbar, another JS module that defines the addAssignees function and a <liferay-frontend:component> to check session storage and conditionally call the addAssignees function.

I think this is OK and I've actually mentioned it to @drewbrokke to make sure, but I'm adding this here so that everyone following this pull request thread knows why this change was made.

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

❌ ci:test:sf - 0 out of 1 jobs passed in 3 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 8b8f62ff92709b96a4e96c2fd4b0efc97785e77c

Sender Branch:

Branch Name: LPS-121903
Branch GIT ID: 90f89fef729a68c2bf57afa9a358999f794d52e7

0 out of 1jobs PASSED
For more details click here.
     [java] 	at com.liferay.source.formatter.SourceFormatter.main(SourceFormatter.java:290)
[stopwatch] [run.batch.test.action: 1:09.830 sec]
     [echo] The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:572: The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:706: Java returned: 1
      [get] Getting: http://test-1-17/job/test-portal-source-format/4747//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20210224084756345.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/20210224084756345.txt
  [typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource org/jacoco/ant/antlib.xml. It could not be found.
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/null422311912.properties

merge-test-results:
[mkdir] Created dir: /opt/dev/projects/github/liferay-portal/test-results
[junitreport] Processing /opt/dev/projects/github/liferay-portal/test-results/TESTS-TestSuites.xml to /tmp/null385030468
[junitreport] Loading stylesheet jar:file:/opt/java/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 204ms
[junitreport] Deleting: /tmp/null385030468
[echo] A report with all the test results can be found at test-results/html/index.html.
[mkdir] Created dir: /opt/dev/projects/github/liferay-jenkins-ee/test-results
[copy] Copying 1 file to /opt/dev/projects/github/liferay-jenkins-ee/test-results
[echo] run.batch.test.tear.down.start.timestamp: 02-24-2021 08:48:01:249 PST
[stopwatch] [run.batch.test.tear.down: 0.000 sec]
[echo]
[echo] Ant GC log:
[echo]
[echo] Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for linux-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 16:36:53 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
[echo] Memory: 4k page, physical 32902020k(5202252k free), swap 0k(0k free)

@julien

julien commented Feb 24, 2021

Copy link
Copy Markdown
Author

Oops

@julien

julien commented Feb 24, 2021

Copy link
Copy Markdown
Author

ci:test:sf

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 8b8f62ff92709b96a4e96c2fd4b0efc97785e77c

Sender Branch:

Branch Name: LPS-121903
Branch GIT ID: 3f4739d3177df9a0e28a949ff1312d7c88459374

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

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

@julien

julien commented Feb 24, 2021

Copy link
Copy Markdown
Author

ci:test:relevant

@julien julien changed the title [Don't forward] Migrate v2 usages in roles/roles-admin-web [Don't review yet] Migrate v2 usages in roles/roles-admin-web Feb 24, 2021
@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

❌ ci:test:relevant - 0 out of 1 jobs passed in 2 hours 47 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 8b8f62ff92709b96a4e96c2fd4b0efc97785e77c

Upstream Comparison:

Branch GIT ID: bf41ac8d3aa2dbf64656fa7c0635882079d28f09
Jenkins Build URL: Acceptance Upstream DXP (master) #1575

ci:test:relevant - 0 out of 1 jobs PASSED
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest(master)
    Job Results:

    0 Jobs Passed.
    1 Job Failed.

    The sender branch SHA could not be found on julien/LPS-121903. The sender branch may have been force pushed or deleted after the pull request test was initiated.

    fatal: Not a valid branch point: '90f89fef729a68c2bf57afa9a358999f794d52e7'.

For upstream results, click here.

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

✔️ ci:test:stable - 9 out of 9 jobs passed

✔️ ci:test:relevant - 23 out of 24 jobs passed in 2 hours 24 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 8b8f62ff92709b96a4e96c2fd4b0efc97785e77c

Upstream Comparison:

Branch GIT ID: 8b8f62ff92709b96a4e96c2fd4b0efc97785e77c
Jenkins Build URL: Acceptance Upstream DXP (master) #1576

ci:test:stable - 9 out of 9 jobs PASSED
9 Successful Jobs:
ci:test:relevant - 22 out of 24 jobs PASSED
22 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at 8b8f62f:
  1. test-portal-acceptance-pullrequest-batch(master)/modules-semantic-versioning-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

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

      Please fix semantic versioning on julien/LPS-121903

           [exec] Note: /opt/dev/projects/github/liferay-portal/modules/apps/roles/roles-item-selector-web/build/jspc/org/apache/jsp/role_005fitem_005fselector_jsp.java uses unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] 
           [exec] > Task :apps:roles:roles-item-selector-web:compileJSP
           [exec] 
           [exec] > Task :apps:roles:roles-admin-web:generateJSPJava
           [exec] Compiling JSP files of project ':apps:roles:roles-admin-web' with /opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/webapps/ROOT/WEB-INF/lib/util-taglib.jar as dependency in place of 'com.liferay.portal:com.liferay.util.taglib'
           [exec] 
           [exec] > Task :apps:roles:roles-item-selector-web:jar
           [exec] > Task :apps:roles:roles-item-selector-web:autoUpdateXml SKIPPED
           [exec] > Task :apps:roles:roles-item-selector-web:baseline SKIPPED
           [exec] > Task :apps:roles:roles-item-selector-web:syncVersions
           [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] 
           [exec] > Task :apps:roles:roles-admin-web:compileJSP
           [exec] 
           [exec] > Task :apps:roles:roles-admin-web:jar
           [exec] > Task :apps:roles:roles-admin-web:autoUpdateXml SKIPPED
           [exec] > Task :apps:roles:roles-admin-web:baseline SKIPPED
           [exec] > Task :apps:roles:roles-admin-web:syncVersions
           [exec] Gradle build finished at 2021-02-24 20:57:41.039.
           [exec] 
           [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:frontend-taglib:frontend-taglib-react:baseline'.
           [exec] > A failure occurred while executing com.liferay.gradle.plugins.baseline.internal.work.BaselineWorkAction
           [exec]    > org.gradle.api.GradleException: Semantic versioning is incorrect while checking /opt/dev/projects/github/liferay-portal/tools/sdk/dist/com.liferay.frontend.taglib.react-5.0.0.jar against /opt/dev/projects/github/liferay-portal/.gradle/caches/modules-2/files-2.1/com.liferay/com.liferay.frontend.taglib.react/4.1.2/ec050fd1c3aa0f51ab209177255ba6f126eabeef/com.liferay.frontend.taglib.react-4.1.2.jar

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

✔️ ci:test:bundle - 1 out of 1 jobs passed in 46 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 4ef1e49a5565418b5bf991238ee548fb8a8965e2

ci:test:bundle - 1 out of 1 jobs PASSED
For more details click here.
Test bundle downloads:

@calvinctvo

Copy link
Copy Markdown

Hi @julien , the failure doesn't seem to be related to the PR. I've retrigger ci:test:stable and it hasn't finish running.

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

@julien

julien commented Mar 4, 2021

Copy link
Copy Markdown
Author

@calvinctvo thanks for the help 👍

@drewbrokke if you have time could you please let me know if we can forward this one?
Thanks

@jbalsas

jbalsas commented Mar 5, 2021

Copy link
Copy Markdown

ci:forward

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

The pull request will automatically be forwarded to the user brianchandotcom if the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

Skipping previously passed test suites:
ci:test:sf

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

✔️ ci:test:stable - 9 out of 9 jobs passed

✔️ ci:test:relevant - 23 out of 24 jobs passed in 3 hours 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 7deedb562a6145be11b327fc35f9693b6b4e1541

Upstream Comparison:

Branch GIT ID: 7deedb562a6145be11b327fc35f9693b6b4e1541
Jenkins Build URL: Acceptance Upstream DXP (master) #1608

ci:test:stable - 9 out of 9 jobs PASSED
9 Successful Jobs:
ci:test:relevant - 22 out of 24 jobs PASSED
22 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at 7deedb5:

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

All required test suite(s) passed.
Forwarding pullrequest to brianchandotcom.

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

Pull request has been successfully forwarded to brianchandotcom#99554

@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

@julien julien deleted the LPS-121903 branch March 16, 2021 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants