Skip to content

Explicitly add the global search scope to the logs

Roy Zwambag requested to merge rz-explicitly-add-gs-scope-to-logs into master

What does this MR do and why?

We didn't explicitly log the scope of global searches before. We could get it from the params, but logging them on the top level makes it easier to query.

How to set up and validate locally

  1. Run a search API call: curl --header "PRIVATE-TOKEN: <private_token>" "http://gdk.test:3000/api/v4/search?scope=projects&search=flight"
  2. Check the logs for the API in log/api_json.log

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 Roy Zwambag

Merge request reports