Skip to content

#32238 content type content palette#32410

Merged
jdotcms merged 42 commits into
mainfrom
issue-32238-content-types
Aug 27, 2025
Merged

#32238 content type content palette#32410
jdotcms merged 42 commits into
mainfrom
issue-32238-content-types

Conversation

@jdotcms
Copy link
Copy Markdown
Contributor

@jdotcms jdotcms commented Jun 12, 2025

Adding a new way to fetch the content types content palette

This PR fixes: #32238

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new /page endpoint to fetch content-type palettes for a specific page, including filtering out hidden types.

  • Introduces a lazy-loaded config for hidden content types
  • Implements getPagesContentTypes REST method and a helper to resolve container types by page
  • Updates imports and JavaDoc examples
Comments suppressed due to low confidence (2)

dotCMS/src/main/java/com/dotcms/rest/api/v1/contenttype/ContentTypeResource.java:1576

  • The example URL has an extra & and merges orderby and direction into variabledirection. Please correct it to something like ...?sites=...&per_page=40&orderby=variable&direction=DESC.
 * GET http://localhost:8080/api/v1/contenttype?sites=48190c8c-42c4-46af-8d1a-0cd5db894797,SYSTEM_HOST,&per_page=40&&orderby=variabledirection=DESC

dotCMS/src/main/java/com/dotcms/rest/api/v1/contenttype/ContentTypeResource.java:1603

  • No tests appear to be added for the new /page endpoint or its helper method. Consider adding unit and integration tests to cover both successful and failure paths.
@GET

Comment thread dotCMS/src/main/java/com/dotcms/rest/api/v1/contenttype/ContentTypeResource.java Outdated
Comment thread dotCMS/src/main/java/com/dotcms/rest/api/v1/contenttype/ContentTypeResource.java Outdated
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
angular-example-uve ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 9:46pm
astro-example-uve ❌ Failed (Inspect) Jun 13, 2025 9:46pm
nextjs-example-uve ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 9:46pm

@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous Bot commented Jun 13, 2025

🤖 No test run has been triggered as your Meticulous project has been deactivated (since you haven't viewed any test results in a while). Click here to reactivate.

Last updated for commit 9d68c97. This comment will update as new commits are pushed.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@erickgonzalez erickgonzalez disabled auto-merge July 18, 2025 00:09
@jdotcms jdotcms enabled auto-merge August 6, 2025 15:17
@jdotcms jdotcms added this pull request to the merge queue Aug 27, 2025
Merged via the queue into main with commit cd2de30 Aug 27, 2025
39 checks passed
@jdotcms jdotcms deleted the issue-32238-content-types branch August 27, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Create Efficient Content Type Fetching Endpoint

5 participants