liferay-portal icon indicating copy to clipboard operation
liferay-portal copied to clipboard

LPD-19196 Show scheduled document on search on management toolbar

Open liferay-continuous-integration opened this issue 10 months ago • 4 comments

Forwarded from: https://github.com/liferay-content-management/liferay-portal/pull/5364 (Took 2 ci:forward attempts in 23 hours 17 minutes) Console

@AliciaGarciaGarcia @liferay-content-management

Original pull request comment: When searching on the management toolbar of the DM page if we search the document scheduled should be returned

  1. FF LPD-10701 should be active
  2. Create a document with title "test"
  3. Create a scheduled document with title "test 2"
  4. go to DM page
  5. search by "test"

Expected: The 2 documents should appear

https://github.com/liferay-content-management/liferay-portal/assets/47524751/1d577912-8529-4687-9973-f4c47893b77b

  • LPD-19196 use injection instead of utils
  • LPD-19196 add test to check that a recently created scheduled file is indexed and showing on the search
  • LPD-19196 move test to another file to check more cases
  • LPD-19196 add more tests to check behavior
  • LPD-19196 reindex if scheduled too
  • LPD-19196 find fileEntries by several statuses
  • LPD-19196 buildService
  • LPD-19196 do not create a draft assetEntry if there is an existing one
  • LPD-19196 update the fileEntry on the case that is scheduled and the status has changed
  • LPD-19196 update the asset if the new status is scheduled too and delete the draft if exists

:heavy_check_mark: 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: 92e97c58318db1faa133bb4bfa79603244a66c92

Sender Branch:

Branch Name: LPD-19196
Branch GIT ID: 7f154afaff2b4021b3bbbbf97fc4bf89afe16020

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

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

:heavy_check_mark: ci:test:stable - 33 out of 33 jobs passed

:x: ci:test:relevant - 146 out of 171 jobs passed in 2 hours 24 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: d56089f945aa90d7960108eba7f17186ac74963c

Upstream Comparison:

Branch GIT ID: d56089f945aa90d7960108eba7f17186ac74963c
Jenkins Build URL: EE Development Acceptance (master) - 501 - 2024-04-22[12:38:53]

ci:test:stable - 33 out of 33 jobs PASSED
33 Successful Jobs:
    ci:test:relevant - 146 out of 171 jobs PASSED

    25 Failed Jobs:

    146 Successful Jobs:
      For more details click here.

      Failures unique to this pull:

      1. modules-integration-mysql57-jdk8/2/10
        run-ant-target:
        [beanshell] Executing commands: ssh root@test-1-25 date +%s
        [beanshell] Created cache file in /tmp/jenkins-cached-files/-1004030052.txt
        [beanshell] Remote execution starting with 1 threads.
        [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 test-1-25 'mkdir -p /opt/java/jenkins/userContent/jobs/test-portal-acceptance-pullrequest-downstream\(master\)/builds/577178/'
        [beanshell] Average thread duration: 223ms
        [beanshell] Busy slaves:0
        [beanshell] Finished slaves:1
        [beanshell] Target slaves:1
        [beanshell] Total duration: 224
        [beanshell] Remote execution completed in 227ms.
           [delete] Deleting: /opt/dev/projects/github/liferay-jenkins-ee/commands/20240423012743113
        Email sent to: [email protected]
        [beanshell] Created cache file in /tmp/jenkins-cached-files/-1004030052.txt
        

        BUILD FAILED /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:15478: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-downstream.xml:5: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-batch.xml:8: Please set the property ${env.GITHUB_RECEIVER_USERNAME}.

        1. com.liferay.headless.delivery.resource.v1_0.test.WikiPageResourceTest.testPutSiteWikiPageWithoutNodeId - UNTESTED
        2. com.liferay.headless.delivery.resource.v1_0.test.WikiPageResourceTest.testClientSerDesToDTO - UNTESTED
        3. com.liferay.headless.delivery.resource.v1_0.test.WikiPageResourceTest.testClientSerDesToJSON - UNTESTED
        4. ...
      2. modules-integration-mysql57-jdk8/3/5
        [stopwatch] [run.batch.test.action: 0.993 sec]
        [echo] The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:385: The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16660: The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7622: Task [sequential] failed after [2] attempts; giving up.
        [echo] Error messages:
        [echo] The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7661: The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7596: Unable to start docker container:
        [echo] docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown.
        [echo] The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7661: The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7596: Unable to start docker container:
        [echo] docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown.
        [echo] The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7661: The following error occurred while executing this line:
        [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7596: Unable to start docker container:
        [echo] docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown.
        [get] Getting: ${dependencies.url}/archive/test-1-37/test-portal-acceptance-pullrequest-downstream(master)/1085211consoleText
        [get] To: /opt/dev/projects/github/liferay-portal/20240423013951197.txt
        [delete] Deleting: /opt/dev/projects/github/liferay-portal/20240423013951197.txt
        [delete] Deleting: /opt/dev/projects/github/liferay-portal/null539859903.properties
        1. com.liferay.message.boards.uad.exporter.test.MBCategoryUADExporterTest.testExport - UNTESTED
        2. com.liferay.message.boards.uad.exporter.test.MBCategoryUADExporterTest.testExportAll - UNTESTED
        3. com.liferay.notification.service.persistence.test.NotificationRecipientSettingPersistenceTest.testCreate - UNTESTED
        4. ...
      3. modules-integration-mysql57-jdk8/4/2
        1. .opt.dev.projects.github.liferay-portal.modules.apps.portal.portal-module-service-test.src.testIntegration.java.com.liferay.portal.module.service.test.SnapshotIntegrationTest.testDynamicWithBundleRestart - UNTESTED
        2. .opt.dev.projects.github.liferay-portal.modules.apps.portal.portal-module-service-test.src.testIntegration.java.com.liferay.portal.module.service.test.SnapshotIntegrationTest.testStaticWithBundleRestart - UNTESTED
      4. unit-jdk8/0/0
        1. com.liferay.portal.kernel.test.rule.NewEnvJVMTestRuleTest - Failed 6 of last 10
        2. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagInternalServerErrorResponseStatus - UNTESTED
        3. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagLayoutRobots - UNTESTED
        4. ...

      :x: ci:test:stable - 32 out of 33 jobs passed

      :x: ci:test:relevant - 138 out of 171 jobs passed in 2 hours 44 minutes

      Click here for more details.

      Base Branch:

      Branch Name: master
      Branch GIT ID: d56089f945aa90d7960108eba7f17186ac74963c

      Upstream Comparison:

      Branch GIT ID: d56089f945aa90d7960108eba7f17186ac74963c
      Jenkins Build URL: EE Development Acceptance (master) - 501 - 2024-04-22[12:38:53]

      ci:test:stable - 32 out of 33 jobs PASSED

      1 Failed Jobs:

      32 Successful Jobs:
        ci:test:relevant - 138 out of 171 jobs PASSED

        33 Failed Jobs:

        138 Successful Jobs:
          For more details click here.

          Failures unique to this pull:

          1. modules-integration-mysql57-jdk8/0/2
            [stopwatch] [run.batch.test.action: 0.953 sec]
                 [echo] The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:385: The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16660: The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7622: Task [sequential] failed after [2] attempts; giving up.
                 [echo] Error messages:
                 [echo] The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7661: The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7596: Unable to start docker container:
                 [echo] docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown.
                 [echo] The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7661: The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7596: Unable to start docker container:
                 [echo] docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown.
                 [echo] The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7661: The following error occurred while executing this line:
                 [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7596: Unable to start docker container:
                 [echo] docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown.
                  [get] Getting: http://test-1-31/job/test-portal-acceptance-pullrequest-downstream(master)/995421//consoleText
                  [get] To: /opt/dev/projects/github/liferay-portal/20240423044913247.txt
               [delete] Deleting: /opt/dev/projects/github/liferay-portal/20240423044913247.txt
               [delete] Deleting: /opt/dev/projects/github/liferay-portal/null576738130.properties
            1. com.liferay.adaptive.media.image.content.transformer.test.AMImageContentTransformerTest.testTransformASingleImage - UNTESTED
            2. com.liferay.adaptive.media.image.internal.scaler.test.AMImageScalerRegistryImplTest.testAMImageScalerRegistryLogsWhenThereIsNoDefaultAMImageScaler - UNTESTED
            3. com.liferay.adaptive.media.image.internal.scaler.test.AMImageScalerRegistryImplTest.testAMImageScalerRegistryLogsWhenThereIsNoDefaultAMImageScalerEnabled - UNTESTED
            4. ...
          2. modules-integration-mysql57-jdk8/0/8
            run-ant-target:
            [beanshell] Executing commands: ssh root@test-1-25 date +%s
            [beanshell] Created cache file in /tmp/jenkins-cached-files/553194839.txt
            [beanshell] Remote execution starting with 1 threads.
            [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 test-1-25 'mkdir -p /opt/java/jenkins/userContent/jobs/test-portal-acceptance-pullrequest-downstream\(master\)/builds/577385/'
            [beanshell] Average thread duration: 223ms
            [beanshell] Busy slaves:0
            [beanshell] Finished slaves:1
            [beanshell] Target slaves:1
            [beanshell] Total duration: 224
            [beanshell] Remote execution completed in 227ms.
               [delete] Deleting: /opt/dev/projects/github/liferay-jenkins-ee/commands/20240423043201045
            Email sent to: [email protected]
            [beanshell] Created cache file in /tmp/jenkins-cached-files/553194839.txt
            

            BUILD FAILED /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:15478: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-downstream.xml:5: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-batch.xml:8: Please set the property ${env.GITHUB_RECEIVER_USERNAME}.

            1. com.liferay.asset.tags.search.test.AssetTagIndexerIndexedFieldsTest.testIndexedFields - UNTESTED
            2. com.liferay.asset.list.service.test.AssetListEntrySegmentsEntryRelServiceTest.testAddAssetListEntrySegmentsEntryRel - UNTESTED
            3. com.liferay.asset.list.service.test.AssetListEntrySegmentsEntryRelServiceTest.testCountAssetListEntrySegmentsEntryRel - UNTESTED
            4. ...
          3. modules-integration-mysql57-jdk8/0/16
            run-ant-target:
            [beanshell] Executing commands: ssh root@test-1-25 date +%s
            [beanshell] Created cache file in /tmp/jenkins-cached-files/1328028958.txt
            [beanshell] Remote execution starting with 1 threads.
            [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 test-1-25 'mkdir -p /opt/java/jenkins/userContent/jobs/test-portal-acceptance-pullrequest-downstream(master)/builds/577383/'
            [beanshell] Average thread duration: 224ms
            [beanshell] Busy slaves:0
            [beanshell] Finished slaves:1
            [beanshell] Target slaves:1
            [beanshell] Total duration: 224
            [beanshell] Remote execution completed in 227ms.
            [delete] Deleting: /opt/dev/projects/github/liferay-jenkins-ee/commands/20240423042957618
            Email sent to: [email protected]
            [beanshell] Created cache file in /tmp/jenkins-cached-files/1328028958.txt
            

            BUILD FAILED /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:15478: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-downstream.xml:5: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-batch.xml:8: Please set the property ${env.GITHUB_RECEIVER_USERNAME}.

            1. com.liferay.calendar.util.test.CalendarBookingIteratorTest.testRecurrenceIsNull - UNTESTED
            2. com.liferay.calendar.util.test.CalendarBookingIteratorTest.testRecurrenceStartsMondayRepeatsMonday - UNTESTED
            3. com.liferay.calendar.util.test.CalendarBookingIteratorTest.testRecurrenceStartsMondayRepeatsWednesday - UNTESTED
            4. ...
          4. modules-integration-mysql57-jdk8/0/22
            run-ant-target:
            [beanshell] Executing commands: ssh root@test-1-25 date +%s
            [beanshell] Created cache file in /tmp/jenkins-cached-files/1320766998.txt
            [beanshell] Remote execution starting with 1 threads.
            [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 test-1-25 'mkdir -p /opt/java/jenkins/userContent/jobs/test-portal-acceptance-pullrequest-downstream(master)/builds/577378/'
            [beanshell] Average thread duration: 324ms
            [beanshell] Busy slaves:0
            [beanshell] Finished slaves:1
            [beanshell] Target slaves:1
            [beanshell] Total duration: 324
            [beanshell] Remote execution completed in 327ms.
            [delete] Deleting: /opt/dev/projects/github/liferay-jenkins-ee/commands/20240423042644237
            Email sent to: [email protected]
            [beanshell] Created cache file in /tmp/jenkins-cached-files/1320766998.txt
            

            BUILD FAILED /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:15478: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-downstream.xml:5: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-batch.xml:8: Please set the property ${env.GITHUB_RECEIVER_USERNAME}.

            1. com.liferay.commerce.price.list.pricing.test.CommercePriceListHierarchyDiscoveryTest.testCreateCatalogBasePriceList - UNTESTED
            2. com.liferay.commerce.price.list.pricing.test.CommercePriceListHierarchyDiscoveryTest.testRetrieveCorrectPriceListByHierarchy - UNTESTED
            3. com.liferay.commerce.price.list.pricing.test.CommercePriceListHierarchyDiscoveryTest.testRetrieveCorrectPriceListByHierarchy1 - UNTESTED
            4. ...
          5. modules-integration-mysql57-jdk8/1/18
            run-ant-target:
            [beanshell] Executing commands: ssh root@test-1-25 date +%s
            [beanshell] Created cache file in /tmp/jenkins-cached-files/-2112555205.txt
            [beanshell] Remote execution starting with 1 threads.
            [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 test-1-25 'mkdir -p /opt/java/jenkins/userContent/jobs/test-portal-acceptance-pullrequest-downstream(master)/builds/577375/'
            [beanshell] Average thread duration: 224ms
            [beanshell] Busy slaves:0
            [beanshell] Finished slaves:1
            [beanshell] Target slaves:1
            [beanshell] Total duration: 224
            [beanshell] Remote execution completed in 227ms.
            [delete] Deleting: /opt/dev/projects/github/liferay-jenkins-ee/commands/20240423042433503
            Email sent to: [email protected]
            [beanshell] Created cache file in /tmp/jenkins-cached-files/-2112555205.txt
            

            BUILD FAILED /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:15478: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-downstream.xml:5: The following error occurred while executing this line: /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest-batch.xml:8: Please set the property ${env.GITHUB_RECEIVER_USERNAME}.

            1. com.liferay.document.library.search.test.DLFileEntrySearchRequestBuilderHighlightTest.testSearchWithHighlight - UNTESTED
            2. com.liferay.document.library.search.test.DLFileEntrySearchRequestBuilderHighlightTest.testSearchWithHighlightEnabled - UNTESTED
            3. com.liferay.document.library.search.test.DLFileEntrySearchRequestBuilderHighlightTest.testSingleEntryClassSearchWithHighlightEnabled - UNTESTED
            4. ...
          6. ...

          @AliciaGarciaGarcia we don't need a new finder:

          		<finder name="F_S" return-type="Collection">
          			<finder-column name="fileEntryId" />
          			<finder-column name="status" />
          		</finder>
          		<finder name="F_ST" return-type="Collection">
          			<finder-column name="fileEntryId" />
          			<finder-column arrayable-operator="OR" name="status" />
          		</finder>
          

          Can you change the old finder to OR and pass in one status?

          Thx.

          brianchandotcom avatar Apr 27 '24 12:04 brianchandotcom