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.
- Visit environments page eg: http://gdk.test:3000/flightjs/Flight/-/environments
- Search an environment eg:
my environment
- Check
logs/development_json.log
. It should not containmy environment
- Enable the feature flag
environments_search_logging
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #374932 (closed)
Edited by Halil Coban