Skip to contents

[Experimental]

Determines whether a collection should be visible based on its settings and the artist's default preferences.

Usage

is_collection_visible(collection, artist, cn = NULL)

Arguments

collection

Character. Collection UUID. Validated with artcore::validate_uuid() where applicable.

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

Logical. TRUE if collection is visible, FALSE otherwise.

Details

Visibility is determined by the following logic:

  1. If collection has a visibility_override, use that value

  2. If collection status is 'complete', it's visible

  3. Otherwise, use artist's default_wip_collection_visibility preference