-
Notifications
You must be signed in to change notification settings - Fork 467
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
#22857 refreshing block editor contentlet reference #22867
Conversation
dotCMS/src/main/java/com/dotmarketing/portlets/contentlet/transform/ContentletTransformer.java
Outdated
Show resolved
Hide resolved
" }\n" + | ||
" }\n" + | ||
" ]\n" + | ||
" }"; |
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.
maybe we can move this json into a json file
}); | ||
} | ||
|
||
return Tuple.of(refreshed.booleanValue(), contentlet); |
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.
should the method throw a exception if contentlet is null?
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.
Maybe include a Precondition that content can't be null
dotCMS/src/main/java/com/dotcms/contenttype/business/StoryBlockAPIImpl.java
Outdated
Show resolved
Hide resolved
dotCMS/src/main/java/com/dotcms/contenttype/business/StoryBlockAPIImpl.java
Show resolved
Hide resolved
dotCMS/src/main/java/com/dotcms/contenttype/business/StoryBlockAPIImpl.java
Show resolved
Hide resolved
return Tuple.of(refreshed.booleanValue(), contentlet); | ||
} | ||
@Override | ||
public Tuple2<Boolean, Object> refreshStoryBlockValueReferences(final Object storyBlockValue) { |
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.
CloseDB?
@@ -24,7 +24,7 @@ | |||
import java.util.Objects; | |||
import java.util.stream.Collectors; | |||
|
|||
public class Metadata implements Serializable { | |||
public class Metadata implements Serializable { |
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.
this can be removed
…esh-content-editor
…lock editor dependencies
…S/core into issue-22857-refresh-content-editor
…7-refresh-content-editor # Conflicts: # dotCMS/src/integration-test/java/com/dotcms/MainSuite.java # dotCMS/src/main/java/com/dotcms/content/elasticsearch/business/ESContentFactoryImpl.java # dotCMS/src/main/webapp/html/portlet/ext/contentlet/field/edit_field.jsp
* #22857 refreshing block editor contentlet reference (#22867) * #22857 initial draft and ideas * #22857 final changes * ˜#22857 adding the story block api * #22857 the refresh happens now even on cached contentlets * #22857 adding some minor changes * #22857 adding unit test for update references * #22857 unit test for getDependencies * #22857 adding feedback * #22857 adding more feedback * #22857 rolling back some config * #22857 adding some logging * Rename var * #22857 adding a fix for searching by query when need to refresh the block editor dependencies * #22857 adding some flag to control when refresh or not Co-authored-by: Freddy Montes <freddymontes@gmail.com> Co-authored-by: Jose Castro <jose.castro@dotcms.com> * CI: bumps version to 22.12.0-rc.0 [skip ci] * Fix of versions after running code freeze against the release-22.10 branch * Fixing submodules branch * Updating enterprise branch * Revert "Updating enterprise branch" This reverts commit fab861d. * Setting correct dorcmsReleaseVersion property * Updating core-web versions * Publish Release * Update package.json * Update gradle.properties * Update .gitmodules * CI: bumps version to 22.12.0-next.5 [skip ci] Co-authored-by: Jonathan <jonathan.sanchez@dotcms.com> Co-authored-by: Jose Castro <jose.castro@dotcms.com> Co-authored-by: victoralfaro-dotcms <victor.alfaro@dotcms.com>
* #22857 initial draft and ideas * #22857 initial draft and ideas * #22857 initial draft and ideas * #22857 initial draft and ideas * #22857 initial draft and ideas * #22857 initial draft and ideas * #22857 final changes * ˜#22857 adding the story block api * #22857 the refresh happens now even on cached contentlets * #22857 adding some minor changes * #22857 adding unit test for update references * #22857 unit test for getDependencies * #22857 unit test for getDependencies * #22857 adding feedback * #22857 adding more feedback * #22857 adding more feedback * #22857 rolling back some config * #22857 rolling back some config * #22857 adding some logging * Rename var * #22857 adding a fix for searching by query when need to refresh the block editor dependencies * #22857 adding some flag to control when refresh or not Co-authored-by: Freddy Montes <freddymontes@gmail.com> Co-authored-by: Jose Castro <jose.castro@dotcms.com>
* #22867 cherry pick done * fixing unit test, a value missing in a msg format
* Fixing artifact plgin invocation. Need to use Gralde version 6.9.3 in order for this to work. * #22864 Categories - $contentlet.categories can be slow * #22864 adding cache for pullAllCategoryChildren * #22864 adding cache for pullAllCategoryChildren * #22864 adding cache for pullAllCategoryChildren * #22864 adding cache for pullAllCategoryChildren * #22864 much faster * Fixing Postman Test: `VanityURL.postman_collection.json` * Removing infinite loop call. Co-authored-by: Jose Castro <jose.castro@dotcms.com> * Trigger builds * CI: bumps version to 22.11.0-rc.5 [skip ci] * CI: bumps version to 22.11.0-rc.16 [skip ci] * #23056 : REVERT - Reverting changes in `docker-compose` files. (#23425) Reverting changes in `docker-compose` files to avoid overwriting important changes already present in `master` branch. Additionally, adding a fix provided by Todd which would add the appropriate `LANG` environment variable when applying the config defaults. * #23296 Bug: WYSIWYG NPE if it finds an invalid data-elements * #23401 Insure zip file integrity * #22857 Keep the contentlets references up to date in the block editor * #22867 cherry pick done * fixing unit test, a value missing in a msg format * CI: bumps version to 22.11.0-rc.6 [skip ci] * Increase version * CI: bumps version to 22.12.0-rc.2 [skip ci] * CI: bumps version to 22.12.0-rc.2 [skip ci] * Increase version rc (#23486) * Increase version rc * Increase version rc * CI: bumps version to 22.12.0-rc.4 [skip ci] * CI: bumps version to 22.13.0-next.3 [skip ci] * CI: bumps version to 23.1.0-next.2 [skip ci] * Fixing merge conflicts in docker-compose files. * Bringing LANG variable back. * CI: bumps version to 23.1.0-next.3 [skip ci] Co-authored-by: Victor Alfaro <victor.alfaro@dotcms.com> Co-authored-by: Will Ezell <will@dotcms.com> Co-authored-by: Jose Castro <jose.castro@dotcms.com> Co-authored-by: Jonathan <jonathan.sanchez@dotcms.com>
Initial draft - refreshing block editor contentlets