-
Notifications
You must be signed in to change notification settings - Fork 470
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
[Pages] Removing contents from containers does not refresh cache #12716
Comments
Issue happens also if a content was recently removed and then it's added back to the same container. |
Typo on branch name and committed message. Fix is here 3387de6 |
PR for Master: #12720 |
PR for Release-4.2: #12721 |
@joseorsini I'm assuming there was a real issue here, but note that in your original steps to reproduce the behavior looks like it's correct - since you didn't save/publish the page between steps 4 and 5, the content should no longer show in the preview mode (which shows you what the page will look like if you publish the page), but should still show in the live mode (since you haven't published the changes you made yet). The content you remove shouldn't disappear from the Live version of the page until you save/publish the page. |
@john-thomas-dotcms I believe an update in the MultiTree relationships here wouldn't require the user to manually publish a page here. We would expect that the MultiTree relationship (which is not versionable) is refreshed on cache, because once a content is added/removed from a container, the relationships are already updated in the DB side of things. It was just a matter of invalidating cache here, and user does not have to go and publish the page manually, reducing the amount of steps to do in order to see an updated version of the page they're editing. |
@joseorsini if they don't have to publish the page for the changes to go live, then: I think that it's intuitive and maybe necessary that adding a content to a page in the page editor does not automatically publish the changes. Part of the goal of the Preview mode is to allow users to see what their changes will look like if they do publish it. And what happens if the user adding the content to the page has edit permissions for the page but not publish permissions for it? Maybe I'm not understanding something here, , but it seems wrong on a few different levels to publish the changes immediately (without the user explicitly taking the publish action). |
This fix is broken some unit test... |
P.R #12946 |
A question: this NPE is triggered by the time contents are being destroyed, however, the MultiTreeFactory.deleteMultiTree call is done by the time:
Since Language and Id are values that are persisting in contents, and content is not fully deleted yet, why it returns a null VersionInfo for these contents? |
New issues surfaced during tests, in order to reproduce issues reported by regression tests. Reported under |
Fixed, tested in the last master // postgres // FF |
Passed QA. |
Expected Behavior
After a content is removed from a container, Behavior of pages on Edit/Preview/Mode should reflect this latest update and never show the content that was recently removed.
Current Behavior
If we remove a content from a container, the recently removed content is still displayed in the same page on Live Mode. Edit/Preview mode shows the right behavior. Even if we set the page Cache TTL to zero, or if we set
?dotcache=no/refresh
on the URI, the page is not refreshed.Possible Solution
Update/Invalidate the live-version cached objects for this page and associated contents.
Known Workarounds
Flush all caches.
Steps to Reproduce (for bugs)
Context
Reported on latest master and on dotCMS 4.1.1, according to customer's instructions here
https://dotcms.zendesk.com/agent/tickets/90583
Screencast: https://drive.google.com/file/d/0B48uh-u7fegRRVZ5T3BSb0VZMHM/view?usp=sharing
Your Environment
The text was updated successfully, but these errors were encountered: