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
Create background task that converts fat content into json content #24093
Comments
The issue is caused by this method: core/dotCMS/src/main/java/com/dotmarketing/portlets/contentlet/business/HostFactoryImpl.java Lines 776 to 788 in 9a35a7c
If a customer is coming from a previous version,before In my opinion, we should have a fallback, that if the |
After some discussions, the proposed solution is:
|
…d could cause issues and the value either way is always ignored, metadata is calculated directly from the asset.
…n_content (#24615) * #24093 Adding logic to schedule the job to allow multiple executions in case of errors, if everything goes well, the job is removed. * #24093 Adding code to avoid overriding the title set by the contentlet json with the data coming from the db * #24093 Adding code to avoid overriding the title set by the contentlet json with the data coming from the db * #24093 Adding test for the PopulateContentletAsJSONJob class * #24093 Ignoring File Asset metadata legacy field, migrating that field could cause issues and the value either way is always ignored, metadata is calculated directly from the asset. * #24093 Adding missing test to MainSuite
I was checking this fix for internal QA using a real-world-like database with multiple sites and a ton of content. and it all looks great. The upgrade task runs smoothly. The Site selector works as expected. As I can switch sites with no problem.
Actually, this code now is only showing contetlet versions with a As can be seen in the following code
We have a similar problem to what we had with the If you're interested the following query helped me to locate contentlets with several versions
For this particular real-world-like db I did
|
These two cards will fix the issue reported by @fabrizzio-dotCMS :
Once they get fixed, this issue can be passed QA. |
Passed internal QA |
Fixed, tested on master-23.06 // Docker // FF |
Problem Statement
We have an issue when upgrading customers to 23.01 - the host selector does not seem to work. This is because we are expecting to use the
contentlet_as_json
field to do host lookups and this has not been populated. We need a StartupTask that fires a background job that converts the fat contentlets to json_as_content contentlets.The job should fire once and should run something like:
and then update the contentlets
contentlet_as_json
field with the appropriate values (this should be done via SQL and not through the apis).Steps to Reproduce
Upgrade a dataset from 21.06 with a bunch of hosts. The Site dropdown doesn't show the complete list of sites in site portlet, dropdown the filter doesn't work, there's an error in browser console.
You go to:
1.- System->Sites
2.- You will see the complete sites in dashboard.
3.- Open site dropdown (upper right corner).
Acceptance Criteria
Show complete list of sites in dropdown and able to filter.
dotCMS Version
22.03.4
Proposed Objective
Please Select
Proposed Priority
Please Select
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.zendesk.com/agent/tickets/109926
https://dotcms.zendesk.com/agent/tickets/110105
Assumptions & Initiation Needs
If you save/active a site you will be able to see it in site dropdown.
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: