Skip to content

Make feature_category warn configurable

What does this MR do and why?

Describe in detail what your merge request does and why.

Related note #381801 (comment 1188886004)

We introduced warnings for spec files with no feature_category.

This can be overwhelming in cases when we have to fix conflicts.

With this MR we add an ENV var which can be set to disable the warnings FEATURE_CATEGORY_WARN

FEATURE_CATEGORY_WARN is set by default to true

FEATURE_CATEGORY_WARN should be set to false or 0 if we want to disable the warnings

FEATURE_CATEGORY_WARN=false bin/rspec spec/models/user_spec.rb:24
FEATURE_CATEGORY_WARN=0 bin/rspec spec/models/user_spec.rb:24

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

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

MR acceptance checklist

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

Edited by Alina Mihaila

Merge request reports