View Source Bonfire.Tag.Tags (bonfire_umbrella v0.9.10-cooperation-beta.62)
Summary
Functions
For using on changesets (eg in epics)
Retrieves a list of tags by arbitrary filters. Used by
Try to find one (best-match) tag
Search / autocomplete for tags by name
Lookup a single for a tag by its name/username
Maybe tag something
Retrieves a single tag by arbitrary filters. Used by
tag existing thing with one or multiple Tags, Needle, or anything that can be made into a tag
Functions
For using on changesets (eg in epics)
Retrieves a list of tags by arbitrary filters. Used by:
- Various parts of the codebase that need to query for tags (inc. tests)
Try to find one (best-match) tag
Link to this function
maybe_find_tags(current_user, id_or_username_or_url, types \\ nil)
View SourceSearch / autocomplete for tags by name
Lookup a single for a tag by its name/username
Link to this function
maybe_tag(user, thing, tags \\ nil, boost_category_mentions? \\ true)
View SourceMaybe tag something
Retrieves a single tag by arbitrary filters. Used by:
- GraphQL Item queries
- ActivityPub integration
- Various parts of the codebase that need to query for tags (inc. tests)
Link to this function
tag_something(user, thing, tags, boost_or_label_category_tags? \\ true)
View Sourcetag existing thing with one or multiple Tags, Needle, or anything that can be made into a tag