Skip to content

Resolve "Log only features on the current and future release"

What does this MR do and why?

We are currently logging the states for all Feature Flags that were checked during a request, but this can easily explode due to outdated feature flags. This MR makes it that only current and future FFs are logged, unless they opt in with the key keep_logging on the yaml description.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable the Feature Flag on GDK:
    Feature.enable(:feature_flag_state_logs)
  2. Tail the logs
    tail -f log/development_json.log | grep feature_flag_states
  3. Open the home page without the changes, the following feature flags are logged: image
  4. With the changes, all flags logged have milestones 14.6 and beyond (can be checked at on config/feature_flags/development/some_flag.yaml): image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #346106 (closed)

Edited by Alex Kalderimis

Merge request reports

Loading