Skip to content

Add environments search params to log metadata

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR logs search param in environments controller. The change is behind a feature flag.

{...,"controller":"Projects::EnvironmentsController", "meta.environment.search":"mysearchterm",...```

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.

  1. Visit environments page eg: http://gdk.test:3000/flightjs/Flight/-/environments
  2. Search an environment eg: my environment
  3. Check logs/development_json.log. It should not contain my environment
  4. Enable the feature flag environments_search_logging
  5. Try again, this time the log file should have ...'meta.environment.search': 'my environment'

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 #374932 (closed)

Edited by Halil Coban

Merge request reports

Loading