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

Issue 26170 show more than 20 items for bundles #27569

Merged
merged 62 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
0c5e258
🏁 Publishing release version [24.01.26]
Jan 27, 2024
e8028c8
Setting to next version: [1.0.0-SNAPSHOT]
Jan 27, 2024
d1cdca1
feat(core): Javascript Scripting API #26227 (#26230)
jdotcms Jan 29, 2024
676afb4
Fixing label for announcements menu (#27464)
manuelrojas Jan 29, 2024
a9ac128
Added confirm dialog to replace existing asset name on File ContentTy…
KevinDavilaDotCMS Jan 29, 2024
279602a
fix(apps): CSS issues #27445 (#27462)
KevinDavilaDotCMS Jan 29, 2024
08dfeb7
sec(image) updating imageio libs to latest version (#27021)
wezell Jan 30, 2024
222c146
fix(push-publish): fix view all for bundles in publishing queue (#26170)
dsolistorres Feb 9, 2024
0c7e4a2
Update dotmarketing-config.properties (#26967)
jdcmsd Jan 30, 2024
9e44aed
"#26729 Removing typo in error message" (#27469)
Neehakethi Jan 31, 2024
f2576ca
fix(core) #24307 : Fixing problem with Enterprise-only Metadata Provi…
jcastro-dotcms Jan 31, 2024
9b63505
Update ApiToken_Resource.postman_collection.json (#26949)
rsh1k Jan 31, 2024
c21eed3
Update TempAPI.postman_collection.json (#27053)
rsh1k Jan 31, 2024
2645bd2
fix(CLI): Fixing and ignoring intermittent tests (#27481)
jgambarios Jan 31, 2024
94221fa
#27451 Checking if the Experiment is still running before send the Ev…
freddyDOTCMS Feb 1, 2024
614d99f
feat(edit-content): #27289 Allow user to enable a new edit mode from …
jcastro-dotcms Feb 1, 2024
e02de9e
chore(core): Expose the `editableAsText` attribute, even if the metad…
jcastro-dotcms Feb 1, 2024
d213638
#26800 Adding GITHUB_TOKEN to checkout repo step. (#27495)
dcolina Feb 1, 2024
c71d221
dotCMS/core#26900 Allow pass field variables to Monaco's Binary Field…
oidacra Feb 1, 2024
b2753a8
🏁 Releasing version 1.0.0-SNAPSHOT
Feb 2, 2024
9810763
⬆️ Next version 1.0.0-SNAPSHOT
Feb 2, 2024
a613870
chore(edit-ema): Change the nextjs example colors and theme #27425 (#…
fmontes Feb 2, 2024
c9af0be
Clean-up runner (#27504)
victoralfaro-dotcms Feb 2, 2024
d46b294
fix(announcements): adjust announcements menu icon size (#27496)
manuelrojas Feb 2, 2024
f33f6ad
feat(Announcements): correcting query that retrieves announcements fr…
fabrizzio-dotCMS Feb 2, 2024
13422b5
chore(core): Update local.dotcms.site cert so that it is valid for 20…
wezell Feb 3, 2024
f6251ed
fix(ui): Fixed scroll on replace-name-dialog in File ContentType (#27…
KevinDavilaDotCMS Feb 5, 2024
82f8142
chore(core): Redis Improvements #26932 (#26974)
jdotcms Feb 5, 2024
0968048
use: css variables (#27506)
rjvelazco Feb 5, 2024
089837e
feat(edit-content): Implement Key/Value Field #26904 (#27465)
rjvelazco Feb 5, 2024
520a739
fixed checkbox background issue (#27492)
KevinDavilaDotCMS Feb 5, 2024
4cfbaa8
fix(edit-content): Autocomplete component responsiveness #27421 (#27474)
KevinDavilaDotCMS Feb 5, 2024
a90b587
#27479 Adding Vanity URLs (#27515)
manuelrojas Feb 6, 2024
bc7c121
chore(sonar) new sonarqube requires java17 (#27529)
spbolton Feb 6, 2024
356b1cc
feat(edit content): Add settings to Binary Field content type (#27455)
zJaaal Feb 7, 2024
5227989
#25736 qa wants postman to fail is we pass an invalid CT (#27520)
fabrizzio-dotCMS Feb 7, 2024
21fce96
feat(CLI): #27416 Adding GHA release CLI workflow steps for publishin…
dcolina Feb 7, 2024
c7bc619
#27516 fixing the way to capture the inode from an url (#27517)
jdotcms Feb 7, 2024
3a815c3
🏁 Releasing CLI version 24.01.26
Feb 7, 2024
d6b372e
⬆️ Next CLI version 1.0.0-SNAPSHOT
Feb 7, 2024
fbafd96
Removing metric code from core (#27485)
freddyDOTCMS Feb 7, 2024
b21128d
fix(hosts) now sorts from shortest to longest. Also removed a bad jo…
wezell Feb 7, 2024
8ab89a8
fix(edit-content): Adding multiple binary fields in Content Type brea…
rjvelazco Feb 7, 2024
3520e70
dotCMS/core#27522 Unable to edit content from Card view in content Se…
hmoreras Feb 8, 2024
c0fc0de
Fixed autocomplete as dropdown and multiple options (#27532)
KevinDavilaDotCMS Feb 8, 2024
38cad1a
fix(sites) adding secondary sort on hostname, so now sorting sites by…
wezell Feb 8, 2024
e8ab070
Update Permission_Resource.postman_collection.json (#26947)
rsh1k Feb 8, 2024
98fbc57
fix(announcements): menu item mark as read (#27548)
manuelrojas Feb 8, 2024
0bb7444
chore(security): Upgrading Tomcat to latest minor release 9.0.85 #267…
jcastro-dotcms Feb 8, 2024
7a4eed0
need to cleanup runner due to out of disk space (#27566)
spbolton Feb 8, 2024
0e8c275
#27453 Include Experience plugin as dependency (#27543)
freddyDOTCMS Feb 8, 2024
2b93454
Update Scripting_Resource.postman_collection.json (#26950)
rsh1k Feb 8, 2024
8cb46f2
Update BringBack.postman_collection.json (#26948)
rsh1k Feb 8, 2024
0b51ba8
need to run cleanup after checkout (#27567)
spbolton Feb 9, 2024
8680b2b
fix(edit-ema): Fixed behaviour on select contentlet (#27560)
KevinDavilaDotCMS Feb 8, 2024
7a02944
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
dsolistorres Feb 9, 2024
385ba82
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
dsolistorres Feb 9, 2024
b9efad3
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
erickgonzalez Feb 13, 2024
3983810
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
erickgonzalez Feb 13, 2024
983640b
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
erickgonzalez Feb 13, 2024
8d957a1
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
erickgonzalez Feb 14, 2024
c8b2046
Merge branch 'master' into issue-26170-show-more-than-20-items-for-bu…
erickgonzalez Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 104 additions & 11 deletions dotCMS/src/curl-test/Bundle_Resource.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,83 @@
},
"response": []
},
{
"name": "get assets uploaded bundle",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Bundle uploaded sucessfully\", function () {",
" pm.response.to.have.status(200);",
"",
" var jsonData = pm.response.json();",
" pm.expect(4).to.eq(jsonData.length);",
"",
" jsonData.forEach(item => {",
" if (item.type === \"contentlet\" && item.isHtmlPage){",
" pm.expect(\"Page Asset\").to.eq(item.content_type_name);",
" pm.expect(\"892662d008a2cdfcfdd4f00e138df6fe\").to.eq(item.asset);",
" pm.expect(\"page_test\").to.eq(item.title);",
" pm.expect(true).to.eq(item.isHtmlPage);",
" pm.collectionVariables.set(\"bundleHtmlPageId\", item.asset);",
" } else if (item.type === \"contentlet\") {",
" pm.expect(\"type_1\").to.eq(item.content_type_name);",
" pm.expect(\"ad7551b54313c244e7110608c0cda9fe\").to.eq(item.asset);",
" pm.expect(\"Testing\").to.eq(item.title);",
" pm.collectionVariables.set(\"bundleContentItemId\", item.asset);",
" } else if (item.type === \"contenttype\"){",
" pm.expect(\"type_1\").to.eq(item.title);",
" pm.collectionVariables.set(\"bundleTypeId\", item.asset);",
" } else if (item.type === \"language\"){",
" pm.expect(\"Language\").to.eq(item.content_type_name);",
" pm.expect(\"TE\").to.eq(item.country_code);",
" pm.expect(\"te\").to.eq(item.language_code);",
" pm.expect(\"te(TE)\").to.eq(item.title);",
" pm.collectionVariables.set(\"bundleLanguageId\", item.asset);",
" } else {",
" px.eq(true, false);",
" }",
" });",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "admin",
"type": "string"
},
{
"key": "username",
"value": "admin@dotcms.com",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{serverURL}}/api/bundle/get_asset_test/assets",
"host": [
"{{serverURL}}"
],
"path": [
"api",
"bundle",
"get_asset_test",
"assets"
]
}
},
"response": []
},
{
"name": "Add Content type to Bundle",
"event": [
Expand Down Expand Up @@ -1349,7 +1426,7 @@
"formdata": []
},
"url": {
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier=39fc9a9713a3cf42984923925f538d87&bundleName=test_assets",
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier={{bundleTypeId}}&bundleName=test_assets",
"host": [
"{{serverURL}}"
],
Expand All @@ -1362,7 +1439,7 @@
"query": [
{
"key": "assetIdentifier",
"value": "39fc9a9713a3cf42984923925f538d87"
"value": "{{bundleTypeId}}"
},
{
"key": "bundleName",
Expand Down Expand Up @@ -1428,7 +1505,7 @@
"formdata": []
},
"url": {
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier=2f4be139df2ed53b349eb4beae23d3dd&bundleName=test_assets",
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier={{bundleContentItemId}}&bundleName=test_assets",
"host": [
"{{serverURL}}"
],
Expand All @@ -1441,7 +1518,7 @@
"query": [
{
"key": "assetIdentifier",
"value": "2f4be139df2ed53b349eb4beae23d3dd"
"value": "{{bundleContentItemId}}"
},
{
"key": "bundleName",
Expand Down Expand Up @@ -1508,7 +1585,7 @@
"formdata": []
},
"url": {
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier=5098127&bundleName=test_assets",
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier={{bundleLanguageId}}&bundleName=test_assets",
"host": [
"{{serverURL}}"
],
Expand All @@ -1521,7 +1598,7 @@
"query": [
{
"key": "assetIdentifier",
"value": "5098127"
"value": "{{bundleLanguageId}}"
},
{
"key": "bundleName",
Expand Down Expand Up @@ -1588,7 +1665,7 @@
"formdata": []
},
"url": {
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier=892662d008a2cdfcfdd4f00e138df6fe&bundleName=test_assets",
"raw": "{{serverURL}}/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle?assetIdentifier={{bundleHtmlPageId}}&bundleName=test_assets",
"host": [
"{{serverURL}}"
],
Expand All @@ -1601,7 +1678,7 @@
"query": [
{
"key": "assetIdentifier",
"value": "892662d008a2cdfcfdd4f00e138df6fe"
"value": "{{bundleHtmlPageId}}"
},
{
"key": "bundleName",
Expand All @@ -1613,7 +1690,7 @@
"response": []
},
{
"name": "get assets",
"name": "get assets generated bundle",
"event": [
{
"listen": "test",
Expand Down Expand Up @@ -1672,14 +1749,14 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{serverURL}}/api/bundle/get_asset_test/assets",
"raw": "{{serverURL}}/api/bundle/{{bundleId}}/assets",
"host": [
"{{serverURL}}"
],
"path": [
"api",
"bundle",
"get_asset_test",
"{{bundleId}}",
"assets"
]
}
Expand Down Expand Up @@ -1811,6 +1888,22 @@
{
"key": "bundleId",
"value": "01FPJVAJE4MHGF9QDDC66SBH9N"
},
{
"key": "bundleTypeId",
"value": ""
},
{
"key": "bundleContentItemId",
"value": ""
},
{
"key": "bundleLanguageId",
"value": ""
},
{
"key": "bundleHtmlPageId",
"value": ""
}
]
}
20 changes: 13 additions & 7 deletions dotCMS/src/main/java/com/dotcms/rest/BundleResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,14 @@ public Response getPublishQueueElements(@PathParam("bundleId") final String bund
.init();

try {

PublishAuditStatus publishAuditStatus = PublishAuditAPI.getInstance()
.getPublishAuditStatus(bundleId, 0);

if (publishAuditStatus == null) {
throw new NotFoundException(String.format("Bundle %s not exists", bundleId));
if (!UtilMethods.isSet(publishAuditStatus)) {
final Bundle bundle = APILocator.getBundleAPI().getBundleById(bundleId);
if (!UtilMethods.isSet(bundle)) {
throw new NotFoundException(String.format("Bundle %s not exists", bundleId));
}
}

final List<PublishQueueElement> queueElements = PublisherAPIImpl.getInstance()
Expand All @@ -156,10 +158,14 @@ public Response getPublishQueueElements(@PathParam("bundleId") final String bund
publishAuditStatus = PublishAuditAPI.getInstance()
.getPublishAuditStatus(bundleId, limit);

final Map<String, String> assets = publishAuditStatus.getStatusPojo().getAssets();
detailedAssets = assets.entrySet().stream()
.map(entry -> publishQueueElementTransformer.getMap(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
if (!UtilMethods.isSet(publishAuditStatus)) {
detailedAssets = ImmutableList.of();
} else {
final Map<String, String> assets = publishAuditStatus.getStatusPojo().getAssets();
detailedAssets = assets.entrySet().stream()
.map(entry -> publishQueueElementTransformer.getMap(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
}
}

return Response.ok(detailedAssets).build();
Expand Down
Loading