8000 Scripts broken by the catalogue rewrite · Issue #424 · jra3/mulm · GitHub
[go: up one dir, main page]

Skip to content

Scripts broken by the catalogue rewrite #424

Closed

Description

@jra3

From the review of #419. Their headers say they are deprecated; they are in fact unrunnable.

  • scripts/generate-test-data.ts, scripts/import-longo-submissions.ts, scripts/import-steve-matassa.ts call recordName, which no longer exists.
  • scripts/import-cares-iucn-data.ts reads config.databaseFile; the key is config.database.file, so its own connection opens undefined. Pre-existing.
  • scripts/sync-iucn-data.ts cannot start under npm run script: it imports ../src/db/conn, which pulls @/ aliases ts-node does not resolve, and importing conn opens and migrates the DB before argument parsing.

Either port each to the catalogue (src/species) and the alias-aware runner, or delete the ones nobody runs.

Activity

  1. added
    bugSomething isn't working
    infrastructureInfrastructure, deployment, and DevOps
    priority:lowLow priority - nice to have
    needs-triageMaintainer needs to evaluate this issue
    on Sep 24, 2026
  2. jra3 commented on Sep 24, 2026

    @jra3
    OwnerAuthor

    Triage: needs a call on port vs delete for each script. Which of these still get run?

  3. jra3 commented on Sep 24, 2026

    @jra3
    OwnerAuthor

    Triage decision:

    • Delete scripts/generate-test-data.ts, scripts/import-longo-submissions.ts, scripts/import-steve-matassa.ts. These were one-off imports, and nothing outside scripts/ references them.
    • Port scripts/import-cares-iucn-data.ts and scripts/sync-iucn-data.ts to the catalogue (src/species) and make them runnable under npm run script:
      • read config.database.file, not config.databaseFile
      • resolve @/ aliases, and parse arguments before anything opens or migrates the DB
      • keep src/integrations/README.md in step with the ported scripts
  4. added
    ready-for-agentFully specified, ready for an AFK agent
    and removed
    needs-triageMaintainer needs to evaluate this issue
    on Sep 24, 2026
  5. added 2 commits that reference this issue on Sep 29, 2026
  6. jra3 commented on Sep 29, 2026

    @jra3
    OwnerAuthor

    Reopened: the merge of #433 closed this, but the PR body says Part of. What's left is parsing arguments before the database opens (#432); type-checking scripts is #440.

  7. reopened this on Sep 29, 2026
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

    bugSomething isn't workinginfrastructureInfrastructure, deployment, and DevOpspriority:lowLow priority - nice to haveready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0