Skip to content

DB schema #13

Open
Open
@cspotcode

Description

@cspotcode

Thinking about a DB schema:

Table: lib
Each library we render has a row in this table
Columns

  • name - npm name
  • last-checked npm API was last queried at this time to check for new versions

Table render_queue
When a new npm version of a lib is identified, it's added to this queue.
We can also manually add items to the queue to force a re-render.
Columns

  • lib
  • version
  • state: pending, in-progress
  • started: if it was started too long ago, assume the worker died?

Table: lib_render
Each row describes a single render of a single lib@version
Columns:

  • lib_name
  • lib_version
  • renderer_version - if we update the renderer, we'll know that docs have been rendered using an older version and need to be eventually re-rendered
  • datetime
  • result - success, failure. If rendering fails, it may be nice to show all failures in a list, or to prioritize re-rendering them after we bugfix the reasons they failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions