Skip to content

Override attributes to include known column names to avoid error

charlie ablett requested to merge cablett-fix-label-attributes into master

What does this MR do and why?

Add a temporary override to our attributes method to only slice by known column names to avoid issues like #421145 (closed) where an added column wasn't picked up sufficiently by the cached attributes value, and ActiveRecord threw an error as a result.

!128576 (merged) is the better, longer-term solution I think. But this will unblock the MR author more quickly.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports