Skip to main content

Module flag_vendor

Module flag_vendor 

Source
Expand description

Vendor flag state for fallow flags --retirement --flag-state <FILE>.

The export is a local JSON file in one vendor-neutral schema. Fallow reads it offline: no credentials, no network calls and no vendor clients. The docs give jq recipes that turn the export of each vendor into this schema.

The export adds four reasons to the report. fully-rolled-out and archived-in-vendor come from the vendor state of a flag in the code. missing-in-vendor marks a flag in the code whose key is not in the export. vendor-only adds a row for a key in the export that no code reads.

Structs§

FlagStateError
Why the export cannot be used.
VendorExport
A valid vendor export.
VendorFlag
One flag of the export.
VendorMatch
Inputs to match an export with the rows of the report.

Constants§

FLAG_STATE_SCHEMA_VERSION
The schema version of the export that this build reads.
MAX_FLAG_STATE_BYTES
Largest export that Fallow reads, in bytes.
STALE_EXPORT_DAYS
An export older than this many days gets a warning.

Functions§

apply_vendor_state
Add the vendor reasons to rows, and add a row for each vendor-only key. Returns the export summary for the report.
load_flag_state
Read and check the export at path.
parse_flag_state
Parse and check the bytes of an export.