Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
cde5d5f
LPS-77699 Update Translations
liferay-translation Sep 28, 2025
3a38ce8
LPD-66737 Create test to expose issue with LongTextInfoFieldType.
marianoalvarosaiz Sep 26, 2025
c06b9af
LPD-66737 Escape also LongTextInfoFieldType.
marianoalvarosaiz Sep 26, 2025
cde9b70
LPD-66737 Manual SF
achaparro Sep 26, 2025
e191407
LPD-66737 Sort
brianchandotcom Sep 29, 2025
2250a5f
Revert "LPD-66438 Use translated language to get site name"
ambrinchaudhary Sep 26, 2025
ad10a8f
Revert "LPD-66438 Fix unit tests and create new ones"
ambrinchaudhary Sep 26, 2025
14942f3
LPD-66447 Auto SF
ling-alan-huang Sep 27, 2025
98ac8ce
LRDOCS-14839 Auto SF
ling-alan-huang Sep 27, 2025
f09aecf
LPD-66219 Fix when logged in as a non-admin user, the "An unexpected …
ivicac Sep 25, 2025
6cec9c6
LPD-66219 Fetch only spaces
ivicac Sep 27, 2025
0b63660
LPD-63411 Adding description
IstvanD Sep 29, 2025
508b335
LPD-66344 Add batch export capability to MasterPageResourceImpl
BarbaraCabrera Sep 23, 2025
ed00af0
LPD-66350 Add batch export capability to PageTemplateResourceImpl
BarbaraCabrera Sep 23, 2025
7dbc6fd
LPD-66352 Add batch export capability to PageTemplateSetResourceImpl
BarbaraCabrera Sep 23, 2025
2b08b4e
LPD-66353 Add batch export capability to DisplayPageTemplateFolderRes…
BarbaraCabrera Sep 23, 2025
11e3c75
LPD-66351 Add batch export capability to DisplayPageTemplateResourceImpl
BarbaraCabrera Sep 23, 2025
4019cb9
LPD-66350 Add nested fields to PageTemplateResourceImpl
BarbaraCabrera Sep 26, 2025
782a626
LPD-66351 Add nested fields to DisplayPageTemplateResourceImpl
BarbaraCabrera Sep 26, 2025
ee49e84
LPD-66344 Add nested fields to MasterPageResourceImpl
BarbaraCabrera Sep 26, 2025
cae13b1
LPD-63861 LPD-66351 Add batch export capability to UtilityPageResourc…
achaparro Sep 28, 2025
bf2fa90
LPD-63861 Add dependencies
achaparro Sep 28, 2025
30ac6c2
LPD-50700 removed feature flag
andrea-ale-sbarra Sep 17, 2025
4321cd0
LPD-50700 fix bug on Diagram
andrea-ale-sbarra Sep 26, 2025
c9d6f25
LPD-50700 autogenerated code (gw buildLang)
andrea-ale-sbarra Sep 17, 2025
e6b233e
LPD-65957 Move tests to where they should be
izaera Sep 23, 2025
c8f1d08
LPD-65957 Captchas are flaky in CI so use a different screen
izaera Sep 23, 2025
29ca276
LPD-65957 Refactor SamplePage so that it adheres to the POM contract
izaera Sep 24, 2025
7eb449b
LPD-65957 SF
izaera Sep 29, 2025
2ee49f6
LPD-66218 Only show CMS related workflow task
dsitu Sep 24, 2025
d9984e8
LPD-66218 Functional Test
dsitu Sep 24, 2025
1205b00
LPD-64931 portal-search-web: Handle the legacy preference name. Avoid…
peerkar Sep 14, 2025
909c3b5
LPD-64101: Add ExportImportPage helpers
peerkar Sep 23, 2025
45a3b36
LPD-64101: Add UploadServletRequestSystemSettingsPage
peerkar Sep 23, 2025
40418cd
LPD-64101: Apply UploadServletRequestSystemSettingsPage
peerkar Sep 23, 2025
7c10ada
LPD-64101: Create test for full site export-import using the Clarity …
peerkar Sep 23, 2025
db8b666
LPD-66439 site-initializer-teaser-showcase: Fix the structure or brok…
peerkar Sep 23, 2025
bdd96dd
LPD-64101: Increase timeout
peerkar Sep 24, 2025
092b34c
LPD-64101 SF
brianchandotcom Sep 29, 2025
d24e993
LPD-64508 export-import-api: Add getter for the model name, which in …
peerkar Sep 23, 2025
a51e8de
LPD-64508 object-rest-impl: Apply
peerkar Sep 23, 2025
5430f4f
LPD-64508 export-import-service: Add internal parameters to be consum…
peerkar Sep 23, 2025
c57c938
LPD-64508 export-import-service: Update unit tests
peerkar Sep 23, 2025
64648ce
LPD-64508 export-import-report-service: Not needed
peerkar Sep 23, 2025
e13b609
LPD-64508 export-import-report-service: Simplify and use internal par…
peerkar Sep 23, 2025
2414162
LPD-64058 export-import-test: Update test
peerkar Sep 23, 2025
aa3ecfc
LPD-64058 export-import-api: gw baseline
peerkar Sep 23, 2025
d6de563
LPD-64058 export-import-report-service: Use class name as is
peerkar Sep 25, 2025
a80cad0
LPD-64058 export-import-report-service: Use class name as is
peerkar Sep 27, 2025
a740b43
LPD-64058 export-import-report-test: We cannot just use any companyId…
peerkar Sep 28, 2025
3657f8b
LPD-64058 export-import-report-test: The same, we cannot just use any…
peerkar Sep 28, 2025
0467453
LPD-64508 SF
brianchandotcom Sep 29, 2025
b9b69fc
LPD-64508 We don't have to be so careful in tests. I'd rather buy space.
brianchandotcom Sep 29, 2025
9130e59
LPD-62787 We should continue to get space on the recycle bin temporar…
guilhermedcamacho Sep 29, 2025
77e6912
LPD-66480 Updating java sdk
4lejandrito Sep 29, 2025
b55267f
LPD-66480 This is sync
4lejandrito Sep 29, 2025
c0995c3
LPD-66480 Sort
4lejandrito Sep 29, 2025
e12142d
LPD-64609 Convert empty layout to different layout type
brookedalton Sep 4, 2025
65833eb
LPD-64609 Handle content page conversion
brookedalton Aug 21, 2025
b4ed645
LPD-64609 Add new test for ConvertEmptyLayoutMVCAction
brookedalton Aug 21, 2025
992cfa4
LPD-64609 Throw LayoutTypeException if attempting to update an empty …
brookedalton Sep 4, 2025
c50a4ab
LPD-64609 baseline
brookedalton Sep 4, 2025
56891d7
LPD-64609 Update layout status depending on page type
brookedalton Sep 4, 2025
5d37759
LPD-64609 Add test for updating empty layout type and status
brookedalton Sep 4, 2025
c63cefb
LPD-60098 Pass in parameters to convert empty layout and use ERC for …
brookedalton Sep 4, 2025
e8f2fe2
LPD-64609 Work with basic templates
brookedalton Sep 10, 2025
db796b2
LPD-64609 Work with templates
brookedalton Sep 11, 2025
22811f7
LPD-64609 Differentiate between adding child page with template or co…
brookedalton Sep 11, 2025
9b99941
LPD-64609 Update modal title for page template set
brookedalton Sep 25, 2025
2b65232
LPD-64609 Rename editAction and remove initialType
brookedalton Sep 25, 2025
3966568
LPD-64609 Simplify logic
ctang3 Sep 18, 2025
cd38dcb
LPD-64609 Naming following privateLayout pattern
achaparro Sep 26, 2025
692f236
LPD-64609 Manual SF
achaparro Sep 26, 2025
573a990
LPD-64609 Manual SF
achaparro Sep 26, 2025
717407d
LPD-66478 - Use ItemSelector in new structure form
bryceosterhaus Sep 25, 2025
94eb027
LPD-66478 - This module should be namespaced with @liferay/
bryceosterhaus Sep 25, 2025
e88cfb0
LPD-66478 - Regen
bryceosterhaus Sep 26, 2025
2e83021
LPD-66478 - Regen yarn.lock
bryceosterhaus Sep 26, 2025
fe0739a
LPD-63238 Add new endpoints to .yaml
pedro-oliveira446 Aug 20, 2025
f24091f
LPD-63536 Add preferApproved flag to filtering in service layer
pedro-oliveira446 Sep 23, 2025
3cfd07a
LPD-63536 Reuse new created method
pedro-oliveira446 Sep 24, 2025
ebae338
LPD-63536 Add to many to many query also
pedro-oliveira446 Sep 24, 2025
d82fc94
LPD-63536 Set new parameter in the existing calls
pedro-oliveira446 Sep 23, 2025
a1d951a
LPD-63536 Add resource and manager methods for get approved entries p…
pedro-oliveira446 Sep 23, 2025
cf48a13
LPD-63536 Skip check when preferApproved is true
pedro-oliveira446 Sep 23, 2025
5cab32b
LPD-63536 Add resource and manager methods for get approved entry
pedro-oliveira446 Sep 23, 2025
8f60e8f
LPD-63536 Creating new constructor adding 'attributes' as parameter
pedro-oliveira446 Aug 28, 2025
d29e3c3
LPD-63536 Semver
pedro-oliveira446 Sep 23, 2025
0646af8
LPD-63536 Ensure all atributtes are passed to DTOConverter
pedro-oliveira446 Aug 28, 2025
b29b67a
LPD-63536 The nested field is always associated to the headObjectEntryId
pedro-oliveira446 Sep 24, 2025
ec4161b
LPD-63537 Build service
pedro-oliveira446 Sep 25, 2025
90155fa
LPD-63536 Add prefer approved in ModelsProvider
pedro-oliveira446 Sep 24, 2025
0e677f7
LPD-63536 Apply to usage
pedro-oliveira446 Sep 24, 2025
3e2faf1
LPD-63536 Return last approved entry when preferApproved is true in m…
pedro-oliveira446 Sep 24, 2025
6ccf0d5
LPD-63536 Check permissions using headObjectEntryId
pedro-oliveira446 Sep 24, 2025
6a5f3d2
LPD-63536 Don't needed because we are checking by the headObjectEntryId
pedro-oliveira446 Sep 28, 2025
707bace
LPD-63536 Build Rest
pedro-oliveira446 Sep 26, 2025
2c575e1
LPD-63536 Integration test to GetApprovedObjectEntries and getApprove…
pedro-oliveira446 Sep 25, 2025
04f7bf8
LPD-63536 Integration test to GetApprovedObjectEntries with nested fi…
pedro-oliveira446 Sep 25, 2025
61ccdf8
LPD-63536 Integration test to getApprovedObjectEntry
pedro-oliveira446 Sep 26, 2025
97f4c1b
LPD-63536 Fix tests
pedro-oliveira446 Sep 28, 2025
875c797
LPD-63536 Semver
pedro-oliveira446 Sep 28, 2025
8a287a3
LPD-63536 SF
brianchandotcom Sep 29, 2025
bcac3ac
LPD-66767 object-service: Use short name as the model name
peerkar Sep 29, 2025
805bda6
LPD-66767 object-test: Update test
peerkar Sep 29, 2025
0532b7a
LPD-66767 SF
brianchandotcom Sep 29, 2025
208e841
LPD-66767 Match order in modules/apps/export-import/export-import-rep…
brianchandotcom Sep 29, 2025
65cefdb
LPD-66748 Set readOnly to false if no value is defined for it
carolmariaabb Sep 29, 2025
f5c19a7
LPD-66748 Add unit test
carolmariaabb Sep 29, 2025
1143f9f
LPD-66748 Sort by expectedReadOnly and then actualReadOnly
brianchandotcom Sep 29, 2025
af38ea0
Revert "LPD-66219 Fetch only spaces"
brianchandotcom Sep 29, 2025
612e84c
Revert "LPD-66219 Fix when logged in as a non-admin user, the "An une…
brianchandotcom Sep 29, 2025
b284bd6
LPD-66447 Fix typo
brianwulbern Sep 29, 2025
34a2a5d
LPD-66853 Drop DB2 CI docker anti time drifting protection. We have n…
shuyangzhou Sep 23, 2025
fad2710
LPD-65859 - Adjust lines
marcoscv-work Sep 22, 2025
08be907
LPD-64878 Replace 'Structure' by 'Content Structure' in /site-initial…
veroglez Sep 22, 2025
20c5be8
LPD-64878 Replace 'Structure' by 'Content Structure' in /site-cms-sit…
veroglez Sep 22, 2025
d128433
LPD-64878 Replace 'Structure' by 'Content Structure' in /site-cms-sit…
veroglez Sep 22, 2025
f5ba4f9
LPD-64878 Adapt tests
veroglez Sep 22, 2025
fe6a2ae
LPD-64878 BuildLang
veroglez Sep 26, 2025
d0ca2c2
LPD-64878 Adapt locators
sandrodw3 Sep 29, 2025
8458036
LPD-66822 Hide fields
victorg1991 Sep 29, 2025
ae9f118
LPD-66799 Show only structure spaces in workflow tab
sandrodw3 Sep 29, 2025
4bf721f
LPD-66799 Adapt tests
sandrodw3 Sep 29, 2025
0260fb1
LPD-66502 Adapt frontend component
sandrodw3 Sep 24, 2025
52da981
LPD-66502 Send the "hasWorkflow" to the frontend to change the text o…
BarbaraCabrera Sep 29, 2025
0c2506b
LPD-66502 Adapt test
sandrodw3 Sep 29, 2025
23619c1
LPD-66830 Deselect metadata fields
sandrodw3 Sep 29, 2025
eb62a88
LPD-66830 Increase timeout
sandrodw3 Sep 29, 2025
b28efde
LPD-66830 Fix tests
sandrodw3 Sep 29, 2025
1630bbc
LPD-66830 As used
brianchandotcom Sep 29, 2025
c601faf
LPD-57271 LPD-65946 headless-admin-taxonomy-impl: consolidate logic w…
joshuacords Sep 18, 2025
16a5b7f
LPD-65946 headless-admin-taxonomy-test: updated expected behavior
joshuacords Sep 23, 2025
28edd97
LPD-65946 Wordsmith
brianchandotcom Sep 29, 2025
64084e9
LPD-65918 headless-admin-taxonomy-impl: filter vocabulary exports to …
joshuacords Sep 23, 2025
303c217
LPD-65918 Rename
brianchandotcom Sep 29, 2025
d82c633
LPD-66765 Remove empty model implementation from ObjectDefinition wit…
gabrielwas Sep 29, 2025
c1b9033
LPD-66765 Adapt integration tests to stop using empty model implement…
gabrielwas Sep 29, 2025
2eb3a45
LPD-66765 No need to expose method to get or add empty KaleoDefinition
gabrielwas Sep 29, 2025
d82a2cf
LPD-66765 Create empty shells for KaleoDefinition as draft
gabrielwas Sep 29, 2025
659d618
LPD-66765 buildService
gabrielwas Sep 29, 2025
ef919af
LPD-66765 Integration tests not needed anymore
gabrielwas Sep 29, 2025
10b839d
LPD-66765 Get groupId from the workflow definition link
marcelabc Sep 29, 2025
79b72e3
LPD-66765 Rename test to reflect workflow definition status
marcelabc Sep 29, 2025
e3d1dcf
LPD-66765 Inline
brianchandotcom Sep 29, 2025
1860481
LPD-66180 test: ensure rootObjectDefinitionExternalReferenceCodes set…
MarinhoFeliphe Sep 26, 2025
0c99f9e
LPD-66180 fix: prevent an object definition setting with name as root…
MarinhoFeliphe Sep 26, 2025
61d4a34
LPD-66180 fix: not needed, entries in the child descendant can exist …
MarinhoFeliphe Sep 26, 2025
f9a22a1
LPD-66180 fix: buy space and return null if the value of the setting …
MarinhoFeliphe Sep 26, 2025
6e3e606
LPD-66180 feat: register a relationship tab for each non-edge relatio…
MarinhoFeliphe Sep 26, 2025
433d93b
LPD-66180 refactor: simplify
MarinhoFeliphe Sep 26, 2025
6a2169a
LPD-65858 Add nested field at export time.
dannielraposo Sep 24, 2025
90e7887
LPD-65858 Add customFields to batchTestEntity
dannielraposo Sep 24, 2025
dede49a
LPD-65858 buildREST
dannielraposo Sep 24, 2025
5906e99
LPD-65858 Update method to persist customFields
dannielraposo Sep 24, 2025
205da06
LPD-65858 Extend test to verify that the customFields.attributeType i…
dannielraposo Sep 25, 2025
3d6f448
LPD-65858 Update unit test with new nestedField
dannielraposo Sep 25, 2025
783bf6d
LPD-65858 Use existing transform method to simplify this
ccorreagg Sep 29, 2025
87ec484
LPD-66327 portal-vulcan-test: Add test to validate a GraphQL name con…
peerkar Sep 29, 2025
923d313
LPD-66327 Wordsmith
brianchandotcom Sep 29, 2025
c99d13e
LPD-66327 Auto SF
brianchandotcom Sep 29, 2025
dc725d3
LPD-55735 use clob instead of varchar
cdbm Sep 29, 2025
2bbadaf
LPD-55735 gw buildService
cdbm Sep 29, 2025
7084290
LPD-55735 adjust upgrade process to use TEXT instead of varchar
cdbm Sep 29, 2025
66f6b8b
LPD-62446 portal-web: Unquarantine Search#ViewSortedSearchResults
oliv-yu Sep 25, 2025
9d23e16
LPD-62446 portal-web: Remove SearchUpgrade#ViewResultRankingsEntryArc…
oliv-yu Sep 25, 2025
14815dd
LPD-66058 portal-web: Blueprints#View*AdminBulkDeletion update expect…
oliv-yu Sep 26, 2025
d78cc16
LPD-62446 portal-web: Add teardowns for tests related to sort portlet
oliv-yu Sep 27, 2025
75aaaa7
LPD-66327 portal-vulcan-test: Wordsmithing follow-up
peerkar Sep 29, 2025
e706aca
LPD-66327 Wordsmith
brianchandotcom Sep 29, 2025
3285698
LPD-66342 - Remove unneeded dropdown height limit
marcoscv-work Sep 24, 2025
cc5c95d
LPD-65328 Automate AWS Marketplace Product release
jaredgorski Sep 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions build-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14540,8 +14540,7 @@ analytics.cloud.domain.allowed=*</echo>
</target>

<target name="prepare-system-ext-properties">
<echo file="${app.server.classes.portal.dir}/system-ext.properties">jdbc.data.source.anti.time.drift=true
log.sanitizer.enabled=false</echo>
<echo file="${app.server.classes.portal.dir}/system-ext.properties">log.sanitizer.enabled=false</echo>

<get-testcase-property property.name="custom.system.properties" />

Expand Down
74 changes: 74 additions & 0 deletions cloud/helm/aws-marketplace/marketplace_product_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/usr/bin/env bash

PRODUCT_VERSION="${1?Argument specifying new AWS Marketplace product version is required.}"

DETAILS_JSON='{
"DeliveryOptions": [
{
"Details": {
"ContainerProductDeliveryOptionDetails": {
"ContainerImages": [
{
"ImageDigest": "sha256:abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"ImageTag": "latest"
}
],
"DeliveryOptionTitle": "Deploy using Helm and Terraform",
"DeliveryOptionType": "Public",
"Description": "This option supports deployment of Liferay using Helm and Terraform.\n\nService Dependencies\n\nThere are 3 service dependencies which are instantiated using Terraform scripts; an RDS Postgres database, an OpenSearch domain and an S3 bucket.\n\nThese are created within the AWS account executing the Terraform scripts and are fully under control of the account owner.",
"EcrRepositoryArn": "arn:aws:ecr:us-east-1:123456789012:repository/my-ecr-repo",
"EcrRepositoryName": "liferay/charts",
"HelmInstallationNamespace": "liferay-system",
"HelmReleaseName": "liferay",
"KubernetesServiceAccountName": "liferay-default",
"SupportedRegions": [
"us-east-1",
"us-west-2"
],
"SupportedServices": [
"Amazon Elastic Kubernetes Service (EKS)"
]
}
},
"Type": "[email protected]"
}
],
"Version": {
"ReleaseNotes": "My new Release notes",
"VersionTitle": "'${PRODUCT_VERSION}'"
}
}'
ENTITY_ID="prod-7xd5pjyie6zee"
ENTITY_TYPE="[email protected]"

CHANGE_SET_JSON='[
{
"ChangeType": "AddDeliveryOptions",
"Details": '"${DETAILS_JSON}"',
"Entity": {
"Identifier": "'${ENTITY_ID}'",
"Type": "'${ENTITY_TYPE}'"
}
}
]'
CHANGE_SET_JSON_STRING=$(echo "${CHANGE_SET_JSON}" | jq 'tostring')

configure_aws() {
aws sso login
}

start_change_set() {
aws marketplate-catalog start-change-set \
--catalog "AWSMarketplace" \
--change-set "${CHANGE_SET_JSON_STRING}"
}

main() {
echo "Using product version: ${PRODUCT_VERSION}"

configure_aws

start_change_set
}

main
2 changes: 1 addition & 1 deletion modules/_node-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"node-scripts": "./bin.js"
},
"com.liferay": {
"sha256": "a1b7193ab466d4b18f5860052c29db07e162ca555487fd5df04397fcfabab538"
"sha256": "aeb088fa34d190f5b8bcf73621f691c1cd574d46cb652f080050c359672381ad"
},
"dependencies": {
"@babel/preset-env": "7.24.7",
Expand Down
1 change: 0 additions & 1 deletion modules/_node-scripts/preflight/checkPackageJSONFiles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ const ALLOWED_NAMED_SCOPE_EXCEPTIONS = [
'frontend-js-aui-web',
'frontend-js-clay-sample-web',
'frontend-js-components-web',
'frontend-js-item-selector-web',
'frontend-js-jquery-web',
'frontend-js-loader-modules-extender',
'frontend-js-lodash-web',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import com.liferay.portal.configuration.module.configuration.ConfigurationProvider;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.feature.flag.FeatureFlagManagerUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.settings.GroupServiceSettingsLocator;
Expand Down Expand Up @@ -241,10 +240,6 @@ public int getCommerceSiteType() {

@Override
public long getCPConfigurationListId(long groupId) throws PortalException {
if (!FeatureFlagManagerUtil.isEnabled(_companyId, "LPD-10889")) {
return 0;
}

Map<Long, CPConfigurationList> cpConfigurationLists =
_getCPConfigurationLists();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import com.liferay.portal.kernel.cookies.CookiesManagerUtil;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.feature.flag.FeatureFlagManagerUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.settings.GroupServiceSettingsLocator;
Expand Down Expand Up @@ -306,12 +305,6 @@ public int getCommerceSiteType() {

@Override
public long getCPConfigurationListId(long groupId) throws PortalException {
if (!FeatureFlagManagerUtil.isEnabled(
_portal.getCompanyId(_httpServletRequest), "LPD-10889")) {

return 0;
}

Map<Long, CPConfigurationList> cpConfigurationLists =
_getCPConfigurationLists();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.liferay.commerce.frontend.helper.ProductHelper;
import com.liferay.commerce.frontend.model.PriceModel;
import com.liferay.commerce.frontend.model.ProductSettingsModel;
import com.liferay.commerce.model.CPDefinitionInventory;
import com.liferay.commerce.percentage.PercentageFormatter;
import com.liferay.commerce.price.CommerceProductPrice;
import com.liferay.commerce.price.CommerceProductPriceCalculation;
Expand All @@ -30,11 +29,8 @@
import com.liferay.commerce.product.service.CPDefinitionLocalService;
import com.liferay.commerce.product.service.CPInstanceLocalService;
import com.liferay.commerce.product.service.CommerceChannelLocalService;
import com.liferay.commerce.service.CPDefinitionInventoryLocalService;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.feature.flag.FeatureFlagManagerUtil;
import com.liferay.portal.kernel.language.Language;
import com.liferay.portal.kernel.security.auth.CompanyThreadLocal;
import com.liferay.portal.kernel.util.ResourceBundleUtil;
import com.liferay.portal.kernel.util.Validator;

Expand Down Expand Up @@ -145,74 +141,40 @@ public ProductSettingsModel getProductSettingsModel(
BigDecimal multipleQuantity =
CPDefinitionInventoryConstants.DEFAULT_MULTIPLE_ORDER_QUANTITY;

if (FeatureFlagManagerUtil.isEnabled(
CompanyThreadLocal.getCompanyId(), "LPD-10889")) {
CPDefinition cpDefinition = _cpDefinitionLocalService.fetchCPDefinition(
cpDefinitionId);

CPDefinition cpDefinition =
_cpDefinitionLocalService.fetchCPDefinition(cpDefinitionId);
if (cpDefinition != null) {
CPConfigurationEntry cpConfigurationEntry =
cpDefinition.fetchCPConfigurationEntry(
commerceContext.getCPConfigurationListId(
cpDefinition.getGroupId()));

if (cpDefinition != null) {
CPConfigurationEntry cpConfigurationEntry =
cpDefinition.fetchCPConfigurationEntry(
commerceContext.getCPConfigurationListId(
cpDefinition.getGroupId()));

if (cpConfigurationEntry == null) {
cpConfigurationEntry =
cpDefinition.fetchMasterCPConfigurationEntry();
}

minOrderQuantity = cpConfigurationEntry.getMinOrderQuantity();
maxOrderQuantity = cpConfigurationEntry.getMaxOrderQuantity();
multipleQuantity =
cpConfigurationEntry.getMultipleOrderQuantity();

BigDecimal[] allowedOrderQuantitiesArray =
cpConfigurationEntry.getAllowedOrderQuantitiesArray();

if ((allowedOrderQuantitiesArray != null) &&
(allowedOrderQuantitiesArray.length > 0)) {

productSettingsModel.setAllowedQuantities(
allowedOrderQuantitiesArray);
}

productSettingsModel.setBackOrders(
cpConfigurationEntry.isBackOrders());
productSettingsModel.setLowStockQuantity(
cpConfigurationEntry.getMinStockQuantity());
productSettingsModel.setShowAvailabilityDot(
cpConfigurationEntry.isDisplayAvailability());
if (cpConfigurationEntry == null) {
cpConfigurationEntry =
cpDefinition.fetchMasterCPConfigurationEntry();
}
}
else {
CPDefinitionInventory cpDefinitionInventory =
_cpDefinitionInventoryLocalService.
fetchCPDefinitionInventoryByCPDefinitionId(cpDefinitionId);

if (cpDefinitionInventory != null) {
minOrderQuantity = cpDefinitionInventory.getMinOrderQuantity();
maxOrderQuantity = cpDefinitionInventory.getMaxOrderQuantity();
multipleQuantity =
cpDefinitionInventory.getMultipleOrderQuantity();
minOrderQuantity = cpConfigurationEntry.getMinOrderQuantity();
maxOrderQuantity = cpConfigurationEntry.getMaxOrderQuantity();
multipleQuantity = cpConfigurationEntry.getMultipleOrderQuantity();

BigDecimal[] allowedOrderQuantitiesArray =
cpDefinitionInventory.getAllowedOrderQuantitiesArray();
BigDecimal[] allowedOrderQuantitiesArray =
cpConfigurationEntry.getAllowedOrderQuantitiesArray();

if ((allowedOrderQuantitiesArray != null) &&
(allowedOrderQuantitiesArray.length > 0)) {

productSettingsModel.setAllowedQuantities(
allowedOrderQuantitiesArray);
}
if ((allowedOrderQuantitiesArray != null) &&
(allowedOrderQuantitiesArray.length > 0)) {

productSettingsModel.setBackOrders(
cpDefinitionInventory.isBackOrders());
productSettingsModel.setLowStockQuantity(
cpDefinitionInventory.getMinStockQuantity());
productSettingsModel.setShowAvailabilityDot(
cpDefinitionInventory.isDisplayAvailability());
productSettingsModel.setAllowedQuantities(
allowedOrderQuantitiesArray);
}

productSettingsModel.setBackOrders(
cpConfigurationEntry.isBackOrders());
productSettingsModel.setLowStockQuantity(
cpConfigurationEntry.getMinStockQuantity());
productSettingsModel.setShowAvailabilityDot(
cpConfigurationEntry.isDisplayAvailability());
}

productSettingsModel.setMinQuantity(minOrderQuantity);
Expand Down Expand Up @@ -351,10 +313,6 @@ private PriceModel _updatePriceModelDiscount(
@Reference
private CommerceProductPriceCalculation _commerceProductPriceCalculation;

@Reference
private CPDefinitionInventoryLocalService
_cpDefinitionInventoryLocalService;

@Reference
private CPDefinitionLocalService _cpDefinitionLocalService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,8 @@ private String _getCommerceOrderItemIds() throws PortalException {
objectEntry.getGroupId(),
commerceReturnToCommerceReturnItems.
getObjectRelationshipId(),
null, commerceReturn.getId(), true, null, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null),
null, false, commerceReturn.getId(), true, null,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null),
curObjectEntry -> {
Map<String, Serializable> values =
curObjectEntry.getValues();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.feature.flag.FeatureFlagManagerUtil;
import com.liferay.portal.kernel.language.Language;
import com.liferay.portal.kernel.service.UserLocalService;
import com.liferay.portal.kernel.util.ParamUtil;
Expand Down Expand Up @@ -223,29 +222,21 @@ private CommerceOrderImporterItemImpl _toCommerceOrderImporterItemImpl(
cpDefinition.getCPDefinitionId());
commerceOrderImporterItemImpl.setNameMap(cpDefinition.getNameMap());

long cpConfigurationListId = 0;
CommerceChannel commerceChannel =
_commerceChannelLocalService.getCommerceChannelByGroupId(
commerceOrder.getGroupId());

if (FeatureFlagManagerUtil.isEnabled(
cpInstance.getCompanyId(), "LPD-10889")) {

CommerceChannel commerceChannel =
_commerceChannelLocalService.getCommerceChannelByGroupId(
commerceOrder.getGroupId());

CPConfigurationList cpConfigurationList =
_cpConfigurationListDiscovery.getCPConfigurationList(
cpInstance.getCompanyId(), cpInstance.getGroupId(),
commerceOrder.getCommerceAccountId(),
commerceChannel.getCommerceChannelId(),
commerceOrder.getCommerceOrderTypeId());

cpConfigurationListId =
cpConfigurationList.getCPConfigurationListId();
}
CPConfigurationList cpConfigurationList =
_cpConfigurationListDiscovery.getCPConfigurationList(
cpInstance.getCompanyId(), cpInstance.getGroupId(),
commerceOrder.getCommerceAccountId(),
commerceChannel.getCommerceChannelId(),
commerceOrder.getCommerceOrderTypeId());

commerceOrderImporterItemImpl.setQuantity(
_cpDefinitionInventoryEngine.getMinOrderQuantity(
cpConfigurationListId, cpInstance));
cpConfigurationList.getCPConfigurationListId(),
cpInstance));

commerceOrderImporterItemImpl.setUnitOfMeasureKey(StringPool.BLANK);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ private List<ObjectEntry> _getCommerceReturnItemObjectEntries()

return _objectEntryLocalService.getOneToManyObjectEntries(
objectEntry.getGroupId(),
objectRelationship.getObjectRelationshipId(), null,
objectRelationship.getObjectRelationshipId(), null, false,
objectEntry.getObjectEntryId(), true, null, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
import com.liferay.application.list.PanelApp;
import com.liferay.commerce.application.list.constants.CommercePanelCategoryKeys;
import com.liferay.commerce.product.constants.CPPortletKeys;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.feature.flag.FeatureFlagManagerUtil;
import com.liferay.portal.kernel.model.Group;
import com.liferay.portal.kernel.model.Portlet;
import com.liferay.portal.kernel.security.permission.PermissionChecker;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
Expand All @@ -40,18 +36,6 @@ public String getPortletId() {
return CPPortletKeys.CP_CONFIGURATION_LISTS;
}

@Override
public boolean isShow(PermissionChecker permissionChecker, Group group)
throws PortalException {

boolean show = super.isShow(permissionChecker, group);

show &= FeatureFlagManagerUtil.isEnabled(
group.getCompanyId(), "LPD-10889");

return show;
}

@Reference(
target = "(jakarta.portlet.name=" + CPPortletKeys.CP_CONFIGURATION_LISTS + ")"
)
Expand Down
Loading