Namespace: ThingSlug

ThingSlug

Model for short human-readable identifiers used in URLs pointing to review subjects (Thing objects). RethinkDB only enforces uniqueness for primary keys, so we keep these in a separate table.

This model is not versioned.

Source:

Methods

(async) qualifiedSave() → {ThingSlug}

Save a slug update, adding a numeric qualifier if necessary because we already have a slug pointing to a different thing.

Source:
Returns:

the slug that should be associated with the Thing object.

Type
ThingSlug

(async, protected, inner) _resolveConflicts() → {ThingSlug}

Resolves naming conflicts by creating a new slug with a numeric qualifier if needed.

Source:
Returns:

the best available slug to use

Type
ThingSlug