Skip to content

Add data to the search context

Tomas Bulva requested to merge add-data-to-search-context into master

What does this MR do and why?

In order to determine eligibility for the syntax option button, we need more data from the backend.

3/4

Issue: #329234 (closed)

Screenshots or screen recordings

This is technical depth MR there is no visible change.

How to set up and validate locally

  1. checkout this branch
  2. search any term on the search page: https://your.gdk:3000/search
  3. depending on the state of your advanced search you will see:
  4. check that html element (view page source) has additional data:
  <div 
    data-elasticsearch-enabled="false or true" 
    data-group-initial-json="null or json" 
    data-project-initial-json="null or json"
    default-branch-name="string or not existing"
    id="js-search-topbar">
  </div>
  ...

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

Edited by Tomas Bulva

Merge request reports

Loading