Skip to content

Admin: resolve BoostMissingHeaderTmp by choosing BoostFile #138

@snowfox1003

Description

@snowfox1003

Add a Django admin workflow so operators can clear missing-header backlog rows by attaching an existing catalog header, without editing BoostUsage by hand.

  • Implement resolve_missing_header_tmp(tmp, boost_file) (and related helpers) in boost_usage_tracker/services.py: call create_or_update_boost_usage, delete the BoostMissingHeaderTmp row, and remove the null-header placeholder BoostUsage when it has no remaining tmp rows.
  • On BoostMissingHeaderTmpAdmin, improve the changelist context (list_display / list_select_related) and add a bulk Action with an ActionForm BoostFile picker (library comes from BoostFile; catalog row must already exist).
  • Optionally validate header_name against boost_file.github_file.filename (exact or suffix match) and surface per-row errors in admin messages for bulk runs.
  • Add tests in boost_usage_tracker/tests/ and document the new API in docs/service_api/boost_usage_tracker.md.
  • Optionally add search_fields on BoostFileAdmin for a better picker (e.g. filename / library name).

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions