Skip to content

Circular collection nesting was not prevented in Hyrax #245

@laritakr

Description

@laritakr

Error

Collection was not prevented from having same collection as both a parent and a child in Hyrax (Collections Sprint).

Steps to reproduce in Hyrax (Collections Sprint)

  1. Create collection A
  2. Create collection B
  3. Add collection A as a sub-collection of collection B
  4. Add collection B as a sub-collection of collection A.

Rationale

Collection B should not be able to be added as a sub-collection of Collection A, as this is a violation of PCDM.

Expected Behavior

The nested indexer has been updated due to its unexpected behavior in this situation, but PCDM should not be allowing the situation to occur. There should be an error thrown if collections B and A have any sort of ancestral relationship.

Hyrax screen shot

This shows invalid relationships added through UI in collections sprint branch.
screen shot 2017-11-17 at 10 20 25 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions