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

LPD-48103 #5975

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

alessiorendina
Copy link
Collaborator

@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.

@alessiorendina
Copy link
Collaborator Author

ci:test:sf

@alessiorendina
Copy link
Collaborator Author

ci:test:commerce-integration

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 29262a43f1f4cfa4de154c272af8d6dd732879c7

Sender Branch:

Branch Name: LPD-48103
Branch GIT ID: f09214a24f89946a74fd5d948f84fc76fab91fd3

0 out of 1jobs PASSED
For more details click here.
format-source-files:
     [java] java.lang.Exception: Found 19 formatting issues:
     [java] 1: Incorrect commit message in SHA f09214a24f89946a74fd5d948f84fc76fab91fd3: Each breaking change should have one, and only one "# breaking", "## What", "## Why" and ## (Optional). Use "----" to split each breaking change.: ./modules/apps/commerce/commerce-product-api/bnd.bnd (SourceCheck:BNDBreakingChangeCommitMessageCheck)
     [java] 2: Test class "com.liferay.commerce.product.internal.upgrade.v5_28_0.test.CPDefinitionSpecificationOptionValueUpgradeProcessTest" does not exist: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/upgrade/v5_28_0/CPDefinitionSpecificationOptionValueUpgradeProcess.java (SourceCheck:JavaUpgradeMissingTestCheck)
     [java] 3: Test class "com.liferay.commerce.product.internal.upgrade.v5_28_0.test.CPSpecificationOptionUpgradeProcessTest" does not exist: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/upgrade/v5_28_0/CPSpecificationOptionUpgradeProcess.java (SourceCheck:JavaUpgradeMissingTestCheck)
     [java] 4: ./modules/apps/commerce/commerce-product-service/bnd.bnd expected:<...e-SchemaVersion: 5.2[8].0
     [java] Liferay-Service: ...> but was:<...e-SchemaVersion: 5.2[7].0
     [java] Liferay-Service: ...>
     [java] 5: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/search/CPSpecificationOptionModelSearchConfigurator.java expected:<...pyrightText: (c) 202[5] Liferay, Inc. https...> but was:<...pyrightText: (c) 202[3] Liferay, Inc. https...>
     [java] 6: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/search/spi/model/index/contributor/CPSpecificationOptionModelDocumentContributor.java expected:<...pyrightText: (c) 202[5] Liferay, Inc. https...> but was:<...pyrightText: (c) 202[4] Liferay, Inc. https...>
     [java] 7: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/search/spi/model/index/contributor/CPSpecificationOptionModelIndexerWriterContributor.java expected:<...pyrightText: (c) 202[5] Liferay, Inc. https...> but was:<...pyrightText: (c) 202[4] Liferay, Inc. https...>

@liferay-continuous-integration
Copy link
Collaborator

@alessiorendina
Copy link
Collaborator Author

ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 29262a43f1f4cfa4de154c272af8d6dd732879c7

Sender Branch:

Branch Name: LPD-48103
Branch GIT ID: 49b312062f027f15210a48bf3dd71b80a25316e6

0 out of 1jobs PASSED
For more details click here.
format-source-files:
     [java] java.lang.Exception: Found 18 formatting issues:
     [java] 1: Incorrect commit message in SHA 49b312062f027f15210a48bf3dd71b80a25316e6: 'modules/apps/commerce/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPDefinitionSpecificationOptionValueService.java' points to nonexistent file. "## What" should be followed by only one path, which is from https://github.com/liferay/liferay-portal/blob/master/.: ./modules/apps/commerce/commerce-product-api/bnd.bnd (SourceCheck:BNDBreakingChangeCommitMessageCheck)
     [java] 2: Test class "com.liferay.commerce.product.internal.upgrade.v5_28_0.test.CPDefinitionSpecificationOptionValueUpgradeProcessTest" does not exist: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/upgrade/v5_28_0/CPDefinitionSpecificationOptionValueUpgradeProcess.java (SourceCheck:JavaUpgradeMissingTestCheck)
     [java] 3: Test class "com.liferay.commerce.product.internal.upgrade.v5_28_0.test.CPSpecificationOptionUpgradeProcessTest" does not exist: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/upgrade/v5_28_0/CPSpecificationOptionUpgradeProcess.java (SourceCheck:JavaUpgradeMissingTestCheck)
     [java] 4: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/search/CPSpecificationOptionModelSearchConfigurator.java expected:<...pyrightText: (c) 202[5] Liferay, Inc. https...> but was:<...pyrightText: (c) 202[3] Liferay, Inc. https...>
     [java] 5: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/search/spi/model/index/contributor/CPSpecificationOptionModelDocumentContributor.java expected:<...pyrightText: (c) 202[5] Liferay, Inc. https...> but was:<...pyrightText: (c) 202[4] Liferay, Inc. https...>
     [java] 6: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/search/spi/model/index/contributor/CPSpecificationOptionModelIndexerWriterContributor.java expected:<...pyrightText: (c) 202[5] Liferay, Inc. https...> but was:<...pyrightText: (c) 202[4] Liferay, Inc. https...>

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:commerce-integration - 1 out of 19 jobs passed in 2 hours 14 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 29262a43f1f4cfa4de154c272af8d6dd732879c7

Upstream Comparison:

Branch GIT ID: 55d1ceb821cd4bbb0be8f65278556eeb45a6983a
Jenkins Build URL: EE Development Acceptance (master) - 1209 - 2025-02-25[08:38:59]

ci:test:commerce-integration - 1 out of 19 jobs PASSED
1 Successful Jobs:
    For more details click here.

    Failures unique to this pull:


    Failures in common with acceptance upstream results at 55d1ceb:
    1. ...

    @liferay-continuous-integration
    Copy link
    Collaborator

    @gianmarcobrunialti
    Copy link

    G2G code-wise, checked together offline too. Let's fix the formal remnants.

    # breaking
    
    ## What modules/apps/commerce/commerce-product-content-api/src/main/java/com/liferay/commerce/product/content/helper/CPContentHelper.java
    
    modules/apps/commerce/commerce-product-content-api/src/main/java/com/liferay/commerce/product/content/helper/CPContentHelper.java hasCPDefinitionSpecificationOptionValues(long cpDefinitionId) method has been removed
    
    ## Why
    
    because internally it is calling getCPDefinitionSpecificationOptionValues(long cpDefinitionId) and check if it is not empty, so getCPDefinitionSpecificationOptionValues(long cpDefinitionId) can be just called directly to do the check instead of calling it 2 times for the same info
    
    ----
    # breaking
    
    ## What modules/apps/commerce/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPDefinitionSpecificationOptionValueService.java
    
    modules/apps/commerce/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPDefinitionSpecificationOptionValueService.java now include visible boolean parameter into add and update methods
    
    ## Why
    
    because the table now includes this column to manage the specifications visibility on front store
    
    ----
    
    ## What modules/apps/commerce/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPSpecificationOptionService.java
    
    modules/apps/commerce/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPSpecificationOptionService.java now include visible boolean parameter into add and update methods
    
    ## Why
    
    because the table now includes this column to manage the specifications visibility on front store
    
    ----
    @alessiorendina
    Copy link
    Collaborator Author

    ci:test:sf

    @liferay-continuous-integration
    Copy link
    Collaborator

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

    Click here for more details.

    Base Branch:

    Branch Name: master
    Branch GIT ID: a3eeae509ec5c5299f93d233cf94f3f2e7b64129

    Sender Branch:

    Branch Name: LPD-48103
    Branch GIT ID: 1ad02fd65f17e0668d721b62550eb4c27da2f462

    0 out of 1jobs PASSED
    For more details click here.
    format-source-files:
         [java] java.lang.Exception: Found 8 formatting issues:
         [java] 1: Incorrect commit message in SHA 1ad02fd65f17e0668d721b62550eb4c27da2f462: 'modules/apps/commerce/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPDefinitionSpecificationOptionValueService.java' points to nonexistent file. "## What" should be followed by only one path, which is from https://github.com/liferay/liferay-portal/blob/master/.: ./modules/apps/commerce/commerce-product-api/bnd.bnd (SourceCheck:BNDBreakingChangeCommitMessageCheck)
         [java] 2: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/upgrade/v5_28_0/CPSpecificationOptionUpgradeProcess.java expected:<...opyrightText: (c) 20[25] Liferay, Inc. https...> but was:<...opyrightText: (c) 20[00] Liferay, Inc. https...>
         [java] 3: ./modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/upgrade/v5_28_0/CPDefinitionSpecificationOptionValueUpgradeProcess.java expected:<...opyrightText: (c) 20[25] Liferay, Inc. https...> but was:<...opyrightText: (c) 20[00] Liferay, Inc. https...>
         [java] 4: ./modules/apps/commerce/headless/headless-commerce/headless-commerce-admin-catalog-impl/src/main/java/com/liferay/headless/commerce/admin/catalog/internal/resource/v1_0/ProductConfigurationListResourceImpl.java expected:<...rtal.kernel.search.S[]ort;
         [java] import com.life...> but was:<...rtal.kernel.search.S[earchContext;
         [java] import com.liferay.portal.kernel.search.S]ort;
         [java] import com.life...>
         [java] 5: ./modules/apps/commerce/headless/headless-commerce/headless-commerce-admin-catalog-impl/src/main/java/com/liferay/headless/commerce/admin/catalog/internal/resource/v1_0/ProductConfigurationResourceImpl.java expected:<...rtal.kernel.search.S[]ort;
         [java] import com.life...> but was:<...rtal.kernel.search.S[earchContext;
         [java] import com.liferay.portal.kernel.search.S]ort;
         [java] import com.life...>
         [java] 6: Truncated message :
         [java] ./modules/apps/commerce/headless/headless-commerce/headless-commerce-admin-catalog-impl/src/main/java/com/liferay/headless/commerce/admin/catalog/internal/resource/v1_0/SkuResourceImpl.java expected:<...etra.function.Unsafe[Function;
         [java] import com.liferay.petra.string.StringPool;
         [java] import com.liferay.portal.configuration.module.configuration.ConfigurationProvider;

    @liferay-continuous-integration
    Copy link
    Collaborator

    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.

    3 participants