Skip to content

Rename the structural index to the database index, and pnpm seed to pnpm import #55

Closed

Description

@johnf

Parent

#52

What to build

Rename the "structural index" to the database index and pnpm seed to pnpm crates:import (not pnpm import, which is a built-in pnpm command that takes precedence over scripts), so that ldacapi uses arocapi's vocabulary. The admin crates page shows each crate's "Database" and "Search" state. The indexer class, its module and the index state key follow the rename. pnpm crates:import [dir] behaves exactly as pnpm seed did, and pnpm bootstrap, the README and the deploy docs use the new name. No other behaviour changes. Index state is held in memory, so no data migration is needed.

Ships on the one #52 branch and PR, as its own commit. See #52 for the decisions behind it.

Acceptance criteria

  • The admin crates page labels the two indexes "Database" and "Search"; no "Structural" remains in the UI, code, tests or README
  • pnpm crates:import [dir] imports crate folders into the OCFL repository; pnpm seed no longer exists
  • pnpm bootstrap still migrates, imports test-data and indexes
  • README and deploy instructions use pnpm crates:import
  • pnpm lint and pnpm test pass

Activity

  1. johnf commented on Nov 4, 2026

    @johnf
    CollaboratorAuthor

    Implemented in #63. Changed from the original ticket: the script is pnpm crates:import, not pnpm import. pnpm import is a built-in pnpm command (it generates a lockfile from another package manager's) and takes precedence over a package script, so an operator typing it would never run ours. The body now says pnpm crates:import.

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

    ready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions