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 only. One backfill runs at a time.

Details · procedure
Kindprocedure
Authoritygamesgamesgamesgames.games
Commit rev3n2ekzljqj225
Indexed

Showing version bafyreicgnm3zeuxyfrebvaecfsvycn77xz3ojfalzn7jj22qd6c4p6v6xu. Show the latest

Procedure

procedure · POST

Input

application/json

dryRun

boolean

Choose slugs and compare search documents, but write nothing. Pass false to write.

  • default: true

maxGames

integer

Stop after this many games, for a trial run.

  • minimum: 1

uris

array

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.

  • minLength: 1
  • maxLength: 5000
itemsstring · at-uri

Output

application/json

True when a backfill was already pending or running; jobId is that job, and nothing new was queued.

dryRun

requiredboolean

jobId

requiredstring
  • maxLength: 128

status

string

The existing job's status, when alreadyQueued is true.

  • maxLength: 32
  • knownValues: pending | running

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Queue a job that finds games whose search document is missing, gutted or stale, and rewrites those documents from the index. Admins only. One search reindex runs at a time, and none while a catalogue reindex is pending or running. Run with dryRun first.

  • Queue a job that brings the index rows of these catalogue games back in line with the catalogue PDS. The catalogue repo itself is not changed. Admins only. One reindex runs at a time.

  • Queue a job that copies Wikidata's sitelink counts, publishers, mod and fan game classes, and English Wikipedia articles for our games into the index, keyed by IGDB game ID. Admins only. One sync runs at a time.

  • Queue a job that recounts how many games each organization is credited as publishing. Search uses the counts to tell established publishers from fan teams. Admins only. One refresh runs at a time.