Skip to content

featurebyte.FeatureList.update_status

update_status(
status: Literal["DEPRECATED", "DRAFT", "PUBLIC_DRAFT", "TEMPLATE", "DEPLOYED"]
)

Description

A FeatureList can have one of five statuses: "DEPLOYED": Assigned to FeatureLists with at least one active version online. "TEMPLATE": For FeatureLists serving as reference templates or safe starting points. "PUBLIC DRAFT": For FeatureLists shared for feedback purposes. "DRAFT": For FeatureLists in the prototype stage. "DEPRECATED": For outdated or unneeded FeatureLists.

Automatic status changes: - New FeatureLists are assigned the "DRAFT" status. - The "DEPLOYED" status is applied when at least one version is deployed. - If deployment is disabled for all versions, the FeatureList becomes a "PUBLIC_DRAFT".

Additional guidelines: - Before making a FeatureList a "TEMPLATE", add a description and ensure all features are "production ready". - Only "DRAFT" FeatureLists can be deleted; - A FeatureList cannot be reverted to a "DRAFT" status.

Parameters

  • status: Literal["DEPRECATED", "DRAFT", "PUBLIC_DRAFT", "TEMPLATE", "DEPLOYED"]
    Desired feature list status.

Examples

>>> feature_list = catalog.get_feature_list("invoice_feature_list")
>>> feature_list.update_status(fb.FeatureListStatus.TEMPLATE)