Skip to content

[RUN-AS-IF-FOSS] Fix(filtered search manager): add state option

What does this MR do?

This MR fixes a bug by introducing a useStateDefault option to the legacy filtered_search_manager. This enables each usage to specify whether to use the default state setting as a part of the default search parameters.

Screenshots

Example where state=opened should be applied Example where state=opened should not be applied
Screen_Shot_2020-08-07_at_13.35.59 Screen_Shot_2020-08-07_at_13.36.31

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

The implemented fix does not have a difference for the usages that need this state=opened default behavior but requires these instances to specify to use this behavior via an option. This means that any missed uses will change to not have this behavior, which does involve some risk. However, I've gone through the code base pretty thoroughly to ensure we capture all instances. See my comment here: #232734 (comment 392352247).

The behavior is covered with tests and each of these instances should migrate away from this legacy filtered manager to use the more modern filtered_search_bar_root.vue. Efforts to do these migrations are captured in issues like this: #232465 (closed).

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Closes #232734 (closed)

Edited by Jose Ivan Vargas

Merge request reports

Loading