Add validation to make sure that an "individual" archive has no more than 1 referenced entity

Created on 4 September 2025, 10 days ago

Problem/Motivation

An individual archive should never have more than one referenced dataset assigned to it.
This ticket should do either or both of two things:

  1. Add a validator to validate that if archive_type = individual, that the count of referenced dataset contains no more than one reference
  2. Add state logic so that if archive_type = individual the "add another" button is removed from the referenced entity field

This is blocked by ✨ Add archive entity Active

Acceptance Criteria

Testing steps

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @swirt
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    This field no longer exists. I am not certain we need this field anymore. It might be useful for connecting an archive to a dataset, but it is probably easier to use the dataset id.

    Keeping this ticket open until things are more finalized.

Production build 0.71.5 2024