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-101448 Collections Variations to be reordered for prioritization purposes while accessing the details #1992

Closed
wants to merge 77 commits into from

Conversation

YurenaC
Copy link
Collaborator

@YurenaC YurenaC commented Dec 21, 2021

Jira ticket

Motivation

Variations have to be reorderable for prioritization, in case a user belongs to multiple segments.

Proposed Solution

We are saving in db a priority value, that equals the index in the variations list.
The reordenation can be done via DnD, or vía click event.
The priority is saved every time the user alters the order of the list.
All the JSP has been migrated to React.

Steps to Verify:

  • Enable FF: echo "enabled=B\"true\"" > ../bundles/osgi/configs/com.liferay.asset.list.web.internal.configuration.FFCollectionsVariationsPrioritizationConfiguration.config
  • Navigate to Site Builder > Collections
  • Create new collection, manual or dynamic
  • An initial state with only the default variation should be visible
  • Finish the variation configuration
  • Navigate to Add new segment view
  • Create one or more segments
  • Navigate back to Collections
  • Add the created segments to your Collection
  • Change the order in the list and check everything get saved
    image (7)
    image (6)

Beltran Rengifo and others added 30 commits December 21, 2021 09:07
- When variations are reorder, should call that URL automatically
@liferay-continuous-integration

❌ ci:test:relevant - 0 out of 1 jobs passed in 38 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: ad36b8c4f2c0a9f5be5f304ba88eb629ba12a85a

Upstream Comparison:

Branch GIT ID: 411a2a7cb1af6aec1f98cc55c22ae4fa11822fa2
Jenkins Build URL: Acceptance Upstream DXP (master) #2727

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

@liferay-continuous-integration

@YurenaC
Copy link
Collaborator Author

YurenaC commented Dec 22, 2021

ci:test:relevant

@liferay-continuous-integration

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

✔️ ci:test:relevant - 26 out of 29 jobs passed in 2 hours 11 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: ad36b8c4f2c0a9f5be5f304ba88eb629ba12a85a

Upstream Comparison:

Branch GIT ID: ad36b8c4f2c0a9f5be5f304ba88eb629ba12a85a
Jenkins Build URL: Acceptance Upstream DXP (master) #2729

ci:test:stable - 11 out of 11 jobs PASSED
11 Successful Jobs:
ci:test:relevant - 25 out of 29 jobs PASSED
25 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at ad36b8c:
  1. test-portal-acceptance-pullrequest-batch(master)/central-requirements-jdk8/0
    Job Results:

    6 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=0 #20849
      1. com.liferay.portal.modules.ModulesStructureTest.testScanBuildScripts
        junit.framework.AssertionFailedError: Forbidden modules/test/poshi/poshi-standalone/gradle.properties
        	at com.liferay.portal.modules.ModulesStructureTest$2.preVisitDirectory(ModulesStructureTest.java:229)
        	at com.liferay.portal.modules.ModulesStructureTest$2.preVisitDirectory(ModulesStructureTest.java:168)
        	at java.nio.file.Files.walkFileTree(Files.java:2677)
        	at java.nio.file.Files.walkFileTree(Files.java:2742)
        	at com.liferay.portal.modules.ModulesStructureTest.testScanBuildScripts(ModulesStructureTest.java:166)
        
      2. com.liferay.portal.modules.ModulesStructureTest.testScanGradleFiles
        junit.framework.AssertionFailedError: Artifact dependency {classpath group: "com.liferay", name: "com.liferay.gradle.plugins.source.formatter", version: "latest.release"} in modules/test/poshi/poshi-standalone/build.gradle not permitted on master branch. Use a project dependency instead.
        	at com.liferay.portal.modules.ModulesStructureTest._testGradleFile(ModulesStructureTest.java:1448)
        	at com.liferay.portal.modules.ModulesStructureTest.access$800(ModulesStructureTest.java:68)
        	at com.liferay.portal.modules.ModulesStructureTest$4.visitFile(ModulesStructureTest.java:398)
        	at com.liferay.portal.modules.ModulesStructureTest$4.visitFile(ModulesStructureTest.java:372)
        	at java.nio.file.Files.walkFileTree(Files.java:2670)
        	at java.nio.file.Files.walkFileTree(Files.java:2742)
        	at com.liferay.portal.modules.ModulesStructureTest.testScanGradleFiles(ModulesStructureTest.java:370)
        
  2. test-portal-acceptance-pullrequest-batch(master)/lpkg-base-jdk8/0
    Job Results:

    3 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=0 #14689
      1. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog
        junit.framework.AssertionFailedError: 
        Portal log assert failure, OSGi log found: /opt/dev/projects/github/liferay-portal/bundles/osgi/state/1640182085486.log:
        !SESSION 2021-12-22 14:08:25.261 -----------------------------------------------
        eclipse.buildId=unknown
        java.version=1.8.0_121
        java.vendor=Oracle Corporation
        BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
        

        !ENTRY com.liferay.site.initializer.extender 4 0 2021-12-22 14:08:25.262
        !MESSAGE FrameworkEvent ERROR
        !STACK 0
        org.osgi.framework.BundleException: Could not resolve module: com.liferay.site.initializer.extender [571]
        Unresolved requirement: Import-Package: com.liferay.commerce.account.util; version="1.3.0"

        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
        
        
        at com.lifer...</code></pre></div></li><li><div><a href="https://test-1-33.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0/14689//testReport/com.liferay.portal.log.assertor/PortalLogAssertorTest/testScanXMLLog">com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog</a><pre><code>junit.framework.AssertionFailedError: 
        

        FrameworkEvent ERROR
        org.osgi.framework.BundleException: Could not resolve module: com.liferay.site.initializer.extender [571]
        Unresolved requirement: Import-Package: com.liferay.commerce.account.util; version="1.3.0"

        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
        
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.asser...</code></pre></div></li></ol></div></li></ol></div></li><li><div><h5><a href="https://test-1-23.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/335899/">test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8/0</a></h5><div><h6>Job Results:</h6><p>2713 Tests Passed.<br/>2 Tests Failed.</p></div><ol><li><div><a href="https://test-1-23.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=6/335899//consoleText">AXIS_VARIABLE=6 #335899</a><ol><li><div><a href="https://test-1-23.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=6/335899//testReport/com.liferay.portal.log.assertor/PortalLogAssertorTest/testScanXMLLog">com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog</a><pre><code>junit.framework.AssertionFailedError: 
        

        JSON storage adapter is deprecated, using default storage adapter
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)

    2. AXIS_VARIABLE=7 #335899
      1. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        Unable to connect to a valid mail server. Please make sure one is properly configured: Couldn't connect to host, port: localhost, 25; timeout -1
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)

@liferay-continuous-integration

@beltranrengifo
Copy link

ci:forward

@liferay-continuous-integration

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

Skipping previously passed test suites:
ci:test:relevant

@liferay-continuous-integration

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: ad36b8c4f2c0a9f5be5f304ba88eb629ba12a85a

Sender Branch:

Branch Name: LPS-101448-Clean
Branch GIT ID: 4c4245b3312cdb1c5def30ab2297f09fdea63dae

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

@liferay-continuous-integration

All required test suite(s) passed.
Forwarding pull request to brianchandotcom.
Console

@liferay-continuous-integration

Pull request has been successfully forwarded to brianchandotcom#111495
Console

@liferay-continuous-integration

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.

4 participants