-
Notifications
You must be signed in to change notification settings - Fork 43
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
Distributed Caching - V15.0.0-alpha3 #265
Comments
I was able to reproduce it. So far, I can see that this scenario is not covered with tests because the tests use string-based rich-text resolution. So first, we need to replicate the error with a test and then fix it. My wild guess is that classes such as |
BTW - I hope we'll solve the dichotomy of rich text rendering once and for all in the v16 milestone. Here's the proposal: #259 |
https://github.com/Kentico/kontent-delivery-sdk-net/releases/tag/15.0.0-alpha4 seems to be working. thanks for testing the distributed caching! |
Good morning, appreciate you fixing so quickly. On initial test it seems to
be working okay, however on updating your dancing goat sample it broke
it....
The Blocks Property of Type IRichTextContent has been removed...? not sure
how relevant this is...though??
Thanks
John
…On Sun, 7 Feb 2021 at 22:42, Petr Švihlík ***@***.***> wrote:
https://github.com/Kentico/kontent-delivery-sdk-net/releases/tag/15.0.0-alpha4
seems to be working.
thanks for testing the distributed caching!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#265 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH2XYN6Z4JVT6IMUGW6XXXTS54JN3ANCNFSM4XE7HBCQ>
.
--
*John Hyde*
Technical Operations Manager
*T:* +44 (0) 2380 215 399 | *W:* themtmagency.com
<https://themtmagency.com/?utm_source=mtm-email-footer>
------------------------------
Facebook <https://www.facebook.com/TheMTMAgency/> | Linkedin
<https://www.linkedin.com/company/mtmagency/> | Twitter
<https://twitter.com/themtmagency?lang=en>
*The MTM Agency* – Saxon House, Saxon Wharf, Lower York Street
Southampton, SO14 5QF
|
Yes, there was a breaking change to make the code simpler. Please refer to: https://github.com/Kentico/kontent-sample-app-net/compare/RTE-problem The Blocks property was just a wrapper around an |
Awesome did that and it all works anyway :-)
Will get onto deeper cach testing now.
Thanks
John
…On Mon, 8 Feb 2021 at 08:47, Petr Švihlík ***@***.***> wrote:
Yes, there was a breaking change to make the code simpler. Please refer
to: https://github.com/Kentico/kontent-sample-app-net/compare/RTE-problem
The Blocks property was just a wrapper around an IEnumerable aspect of
the IRichTextContent itself. You can safely remove the Blocks property
and use the object itself.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#265 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH2XYN4RM376JPLSA6QBXNTS56QLDANCNFSM4XE7HBCQ>
.
--
*John Hyde*
Technical Operations Manager
*T:* +44 (0) 2380 215 399 | *W:* themtmagency.com
<https://themtmagency.com/?utm_source=mtm-email-footer>
------------------------------
Facebook <https://www.facebook.com/TheMTMAgency/> | Linkedin
<https://www.linkedin.com/company/mtmagency/> | Twitter
<https://twitter.com/themtmagency?lang=en>
*The MTM Agency* – Saxon House, Saxon Wharf, Lower York Street
Southampton, SO14 5QF
|
Brief bug description
Error deserializing rich text content when using distributed caching
JsonSerializationException: Cannot preserve reference to array or readonly list, or list created from a non-default constructor: Kentico.Kontent.Delivery.ContentItems.RichText.RichTextContent. Path 'Item.Articles.$values[0].BodyCopy.$values'.
This happens on both my current project and also the Dancing Goat project when using 15.0.0-alpha3 of the delivery client
Kentico.Kontent.Delivery 15.0.0-alpha3
Kentico.Kontent.Delivery.Caching 15.0.0-alpha3
Kentico.Kontent.Delivery.Abstractions 15.0.0-alpha3
What went wrong?
Repro steps
Download dancing goat project, configure distributed caching
Set the caching to 30 seconds
Load the site
Refresh the page immediately
Expected behavior
Page refreshes using the cached version
Additional context
The text was updated successfully, but these errors were encountered: