games.gamesgamesgamesgames.backfillGameSlugs

Queue a job that gives games with no slug one, and puts the slug on their search document. Existing slugs are never changed. A dry run unless dryRun is false. Admins and the maintenance account only. One backfill runs at a time.

Details · procedure
Kindprocedure
Authoritygamesgamesgamesgames.games
Commit rev3n2eoyaummw25
Indexed

Showing version bafyreibytciroz4g5k7jnl4mehpzszsrvke25dhquvz6yuwiwzghu3h6sq. Show the latest

cid bafyreibytciroz4g5k7jnl4mehpzszsrvke25dhquvz6yuwiwzghu3h6sq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Queue a job that gives games with no slug one, and puts the slug on their search document. Existing slugs are never changed. A dry run unless dryRun is false. Admins and the maintenance account only. One backfill runs at a time.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dryRun": {
              "default": true,
              "description": "Choose slugs and compare search documents, but write nothing. Pass false to write.",
              "type": "boolean"
            },
            "maxGames": {
              "description": "Stop after this many games, for a trial run.",
              "minimum": 1,
              "type": "integer"
            },
            "uris": {
              "description": "Only these game URIs. A game that already has a slug gets it copied to its search document if that is missing it. Without uris, the job walks every game that has no slug.",
              "items": {
                "format": "at-uri",
                "type": "string"
              },
              "maxLength": 5000,
              "minLength": 1,
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyQueued": {
              "description": "True when a backfill was already pending or running; jobId is that job, and nothing new was queued.",
              "type": "boolean"
            },
            "dryRun": {
              "type": "boolean"
            },
            "jobId": {
              "maxLength": 128,
              "type": "string"
            },
            "status": {
              "description": "The existing job's status, when alreadyQueued is true.",
              "knownValues": [
                "pending",
                "running"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId",
            "dryRun"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.backfillGameSlugs",
  "lexicon": 1
}