Skip to content

Difference in persister behavior when handling array defaults #965

@dlpierce

Description

@dlpierce

While working on valkyrie/ferdora support in hyrax, I've discovered a difference in the way the various persisters handle the default value for an attribute of type array (a frozen empty array).

After persisting a new resource, or when reloading it, the postgres and memory persisters produce a resource with an unfrozen array, while the fedora and solr persisters the array is frozen. Based on past work in valkyrie, I believe the intention is for the default value for arrays to be frozen for all of the persistence adapters. See this branch which has a spec added for this case, but no failures for fedora and solr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions