Skip to content

Flag publications missing an expected companion artifact (#1405)#1407

Merged
jonfroehlich merged 1 commit into
1405-data-health-action-linksfrom
1405-companion-artifact-checks
Jun 26, 2026
Merged

Flag publications missing an expected companion artifact (#1405)#1407
jonfroehlich merged 1 commit into
1405-data-health-action-linksfrom
1405-companion-artifact-checks

Conversation

@jonfroehlich

Copy link
Copy Markdown
Member

Part 2 of #1405 (companion checks). Stacked on #1406 — base is 1405-data-health-action-links, so this diff is just the new checks. GitHub will auto-retarget to master once #1406 merges.

What & why

Some publication types almost always ship with a companion artifact, and the gaps were invisible. Two new Data Health checks (Artifacts group) surface them:

  • Conference papers without a talk — Conference venue type, not an extended abstract, talk empty. Most full conference papers are presented with a talk, so these are usually data-entry gaps.
  • Poster papers without a linked poster — Poster venue type, poster empty (the poster won't show on the site).

Kept as two separate checks (distinct dashboard counts) because the corrective action differs — add a talk vs. add a poster.

Scoping (avoids permanent false positives)

Shared CompanionArtifactCheck base excludes:

  • Pre-Makeability-Lab work (DATE_MAKEABILITYLAB_FORMED, same convention as the unlinked-artifacts check) — grad-school-era papers predate the lab's talk/poster records.
  • Not-yet-presented papers (future-dated / to_appear()) — the companion usually isn't recorded until the work is presented.

Each row links to the publication's edit page, where the FK is set (via the link_model mechanism from #1406).

Testing

python manage.py test website --settings=makeabilitylab.settings_test → passing. Companion-check regression tests cover positive flagging plus every exclusion (talk present, extended abstract, to-appear, pre-lab, poster-with-poster, and cross-check isolation).

🤖 Generated with Claude Code

Add two Data Health checks (Artifacts group) for publications that should have
a related artifact but don't:

- Conference papers without a talk: Conference venue type, not an extended
  abstract, talk FK empty. Most full conference papers are presented with a
  talk, so these are usually data-entry gaps.
- Poster papers without a linked poster: Poster venue type, poster FK empty.

Both share CompanionArtifactCheck, which excludes pre-Makeability-Lab work
(DATE_MAKEABILITYLAB_FORMED) and not-yet-presented (future-dated) papers to
avoid permanent false positives, and links each row to the publication's edit
page where the FK is set. Kept as two separate checks (distinct dashboard
counts) because the corrective action differs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonfroehlich jonfroehlich merged commit f4d4638 into 1405-data-health-action-links Jun 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant