-
Notifications
You must be signed in to change notification settings - Fork 5
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-48899 Add CX and Fragment types to app table #6237
base: master
Are you sure you want to change the base?
LPD-48899 Add CX and Fragment types to app table #6237
Conversation
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. |
625f385
to
099984c
Compare
ci:forward |
CI is automatically triggering the following test suites:
The pull request will automatically be forwarded to the user
|
✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPD-48899-resend-3 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#8020 Jenkins Report:jenkins-report.html Jenkins Suite:sf Pull Request:is-solutions-delivery#6237 Testray Routine:EE Pull Request Testray Build:[master] ci:test:sf - CalebJamesH > is-solutions-delivery - PR#6237 - 2025-02-26[05:01:36] Testray Build ID: Testray Importer:publish-testray-report#30403 |
ci:stop |
Target exception: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "stableJobResult" is null Base Branch:Branch Name: master Branch GIT ID: 26ff042a7230aca438731909c0ff739a4ecaa938 Job Summary:Job Link: test-portal-acceptance-pullrequest(master) For more details click here. |
...arketplace-workspace/client-extensions/liferay-marketplace-custom-element/src/enums/Order.ts
Outdated
Show resolved
Hide resolved
...tensions/liferay-marketplace-custom-element/src/pages/CustomerDashboard/pages/Apps/index.tsx
Outdated
Show resolved
Hide resolved
...t-extensions/liferay-marketplace-site-initializer/site-initializer/commerce-order-types.json
Outdated
Show resolved
Hide resolved
Jenkins Build:test-portal-acceptance-pullrequest(master)#13256 Jenkins Report:jenkins-report.html Jenkins Suite:relevant Pull Request:is-solutions-delivery#6237 Testray Routine:EE Pull Request Testray Build:[master] ci:test:relevant - CalebJamesH > is-solutions-delivery - PR#6237 - 2025-02-26[05:01:37] Testray Build ID: Testray Importer:publish-testray-report#28793 |
099984c
to
8e912a6
Compare
Just starting reviewing :) |
...arketplace-workspace/client-extensions/liferay-marketplace-custom-element/src/enums/Order.ts
Show resolved
Hide resolved
...tplace-workspace/client-extensions/liferay-marketplace-custom-element/src/enums/OrderType.ts
Outdated
Show resolved
Hide resolved
...ray-marketplace-custom-element/src/pages/CustomerDashboard/components/PurchasedAppsTable.tsx
Outdated
Show resolved
Hide resolved
b054cd3
to
66a8b63
Compare
86ab2f3
to
0d81aea
Compare
ci:test:sf |
ci:test:relevant |
ci:test:stable |
❌ ci:test:sf - 0 out of 1 jobs passed in 6 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPD-48899-resend-3 1 Failed Jobs:For more details click here.[exec] > Task :packageRunCheckFormat [exec] yarn run v1.13.0 [exec] \$ node-scripts check:ci [exec] [exec] ?????? Running preflight checks... [exec] [exec] ?????? Checking outdated tsconfig.json files ... [exec] [exec] ?????? Running TypeScript checks on modified files... [exec] ?????? A total of 8 CPUs were detected: launching tsc using 8 workers [exec] [exec] ?????? Running format checks on modified files... [exec] Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting. [exec] /opt/dev/projects/github/liferay-portal/workspaces/liferay-marketplace-workspace/client-extensions/liferay-marketplace-custom-element/src/pages/CustomerDashboard/pages/Apps/App/Licenses/Licenses.tsx [exec] 1:1 error File has format errors. (format check) [exec] [exec] ??? 1 problem (1 error, 0 warnings) [exec] [exec] [exec] ??? CI checks failed. [exec] error Command failed with exit code 1. [exec] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [exec] [exec] > Task :packageRunCheckFormat FAILED [exec] Gradle build finished at 2025-02-28 15:41:51.695. [exec] [exec] [exec] FAILURE: Build failed with an exception. [exec] [exec] * What went wrong: [exec] Execution failed for task ':packageRunCheckFormat'. [exec] > Process 'command '/opt/dev/projects/github/liferay-portal/build/node/bin/node'' finished with non-zero exit value 1 [exec] [exec] * Try: [exec] > Run with --info or --debug option to get more log output. [exec] > Run with --scan to get full insights. [exec] > Get more help at https://help.gradle.org. [exec] [exec] * Exception is: [exec] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':packageRunCheckFormat'. [exec] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda\$executeIfValid\$1(ExecuteActionsTaskExecuter.java:148) [exec] at org.gradle.internal.Try\$Failure.ifSuccessfulOrElse(Try.java:282) [exec] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146) |
Jenkins Build:test-portal-source-format#5943 Jenkins Report:jenkins-report.html Jenkins Suite:sf Pull Request:is-solutions-delivery#6237 Testray Routine:EE Pull Request Testray Build:[master] ci:test:sf - CalebJamesH > is-solutions-delivery - PR#6237 - 2025-02-28[07:36:22] Testray Build ID: Testray Importer:publish-testray-report#6668 |
0d81aea
to
5fbc137
Compare
ci:test:sf |
ci:test:stable |
ci:test:relevant |
✔️ ci:test:sf - 1 out of 1 jobs passed in 6 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPD-48899-resend-3 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#7797 Jenkins Report:jenkins-report.html Jenkins Suite:sf Pull Request:is-solutions-delivery#6237 Testray Routine:EE Pull Request Testray Build:[master] ci:test:sf - CalebJamesH > is-solutions-delivery - PR#6237 - 2025-02-28[07:52:17] Testray Build ID: Testray Importer:publish-testray-report#5543 |
5fbc137
to
e31a400
Compare
e31a400
to
a80b667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CalebJamesH looks really nice, I left a comment to update some types
SOLUTIONS7 = 'SOLUTIONS7', | ||
SOLUTIONS30 = 'SOLUTIONS30', | ||
} | ||
|
||
export const ORDER_TYPES_LABELS: {[key: string]: string} = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add the type since is automatically inferred here, what could be done is to add the as const
to add the real keys and values as type
export const ORDER_TYPES_LABELS: {[key: string]: string} = { | |
export const ORDER_TYPES_LABELS = { |
[ORDER_TYPES.FRAGMENT]: 'Fragment', | ||
[ORDER_TYPES.SOLUTIONS7]: 'Solutions 7', | ||
[ORDER_TYPES.SOLUTIONS30]: 'Solutions 30', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably the best option
}; | |
} as const; |
export const ProductTypeLabels: {[key: string]: string} = { | ||
[ProductType.CLIENT_EXTENSION]: 'Client Extension', | ||
[ProductType.CLOUD]: 'Cloud', | ||
[ProductType.DXP]: 'DXP', | ||
[ProductType.FRAGMENT]: 'Fragment', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const ProductTypeLabels: {[key: string]: string} = { | |
[ProductType.CLIENT_EXTENSION]: 'Client Extension', | |
[ProductType.CLOUD]: 'Cloud', | |
[ProductType.DXP]: 'DXP', | |
[ProductType.FRAGMENT]: 'Fragment', | |
}; | |
export const ProductTypeLabels = { | |
[ProductType.CLIENT_EXTENSION]: 'Client Extension', | |
[ProductType.CLOUD]: 'Cloud', | |
[ProductType.DXP]: 'DXP', | |
[ProductType.FRAGMENT]: 'Fragment', | |
} as const; |
const productTypeERC: {[key: string]: {}} = { | ||
[ProductType.CLIENT_EXTENSION]: {externalReferenceCode: 'CLIENT_EXTENSION'}, | ||
[ProductType.CLOUD]: {externalReferenceCode: 'CLOUDAPP'}, | ||
[ProductType.DXP]: {externalReferenceCode: 'DXPAPP'}, | ||
[ProductType.FRAGMENT]: {externalReferenceCode: 'FRAGMENT'}, | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prevent redundancy
const productTypeERC: {[key: string]: {}} = { | |
[ProductType.CLIENT_EXTENSION]: {externalReferenceCode: 'CLIENT_EXTENSION'}, | |
[ProductType.CLOUD]: {externalReferenceCode: 'CLOUDAPP'}, | |
[ProductType.DXP]: {externalReferenceCode: 'DXPAPP'}, | |
[ProductType.FRAGMENT]: {externalReferenceCode: 'FRAGMENT'}, | |
}; | |
const productTypeERC = { | |
[ProductType.CLIENT_EXTENSION]: 'CLIENT_EXTENSION', | |
[ProductType.CLOUD]: 'CLOUDAPP', | |
[ProductType.DXP]: 'DXPAPP', | |
[ProductType.FRAGMENT]: 'FRAGMENT', | |
} as const; |
return ( | ||
(productTypeERC[productSpecification] as OrderType) || | ||
({externalReferenceCode: 'NOTYPE'} as OrderType) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ( | |
(productTypeERC[productSpecification] as OrderType) || | |
({externalReferenceCode: 'NOTYPE'} as OrderType) | |
); | |
return {externalReferenceCode: productTypeERC[productSpecification] || 'NOTYPE'})); |
https://liferay.atlassian.net/browse/LPD-48899