Skip to content

ats_report.target_ref is free text: the polymorphic pointer cannot be resolved by the seed loader or linked in the UI #17

Description

@os-sam

Observation

ats_report.target_type + ats_report.target_ref form a polymorphic pointer, but target_ref is a plain Field.text. Nothing can resolve it: the seed loader only resolves pointer pairs declared with referenceVia (ADR-0052 §5, the sys_activity.record_id + object_name shape), the Console renders it as an opaque string, and a seed cannot know engine-minted ids, so the demo seed (#5) stores the target's natural key (job title, candidate name, application display name, employer name) in it.

Suggestion

Declare the pair — target_ref: Field.text({ referenceVia: 'target_type', ... }) or whatever the current spelling of the ADR-0052 pointer is — so the loader resolves natural keys to ids per row, and the UI can link to the reported record. Confirm the target_type option values (job, candidate, application, employer) map onto object names the resolver expects (ats_job etc.), or store the object machine name instead.

Low priority; a demo-fidelity and admin-queue usability finding, not a data-integrity one. (Filed without a finding label: the label does not exist in this repository.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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