Skip to content

Gracefully handles excluded fields from attributes during serialization on JsonCache

What does this MR do?

We have models that leave out some fields from the JSON export for security reasons, e.g. the BroadcastMessage model that include the CacheMarkdownField. The ActiveRecord::AttributeSet we build from the cached value does know about these columns so we need manually set them. This fixes the 500 errors from #59208 (closed) without users needing to clear the cache.

What are the relevant issue numbers?

Closes #59208 (closed)

Does this MR meet the acceptance criteria?

/cc @ashmckenzie @jarv

Edited by Douglas Barbosa Alexandre

Merge request reports