You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Deletescripts/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.
Portscripts/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
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.
Activity
jra3 commentedon Sep 24, 2026
Triage: needs a call on port vs delete for each script. Which of these still get run?
jra3 commentedon Sep 24, 2026
Triage decision:
scripts/generate-test-data.ts,scripts/import-longo-submissions.ts,scripts/import-steve-matassa.ts. These were one-off imports, and nothing outsidescripts/references them.scripts/import-cares-iucn-data.tsandscripts/sync-iucn-data.tsto the catalogue (src/species) and make them runnable undernpm run script:config.database.file, notconfig.databaseFile@/aliases, and parse arguments before anything opens or migrates the DBsrc/integrations/README.mdin step with the ported scriptsScripts: delete the one-off imports; port the IUCN two (#424)
Address review of #424: --species-id resyncs; tidy the ports
jra3 commentedon Sep 29, 2026
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.