Skip to content

Fix usage of OR filtering

Jan Provaznik requested to merge jp-fix-filter-parent into master

What does this MR do and why?

Fixes usage of OR filter for single epic/issue list. because resource_parent is obtained differently for (epic/issue) board and list, we rather pass the parameter explicitly to the method.

Related to #382969 (comment 1273217634)

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. Feature.enable(:or_issuable_queries)
  2. Sample queries
query {
  boardList(id: "gid://gitlab/List/1", issueFilters: {or: {labelNames: ["foo"]}}) {
    id
  }
}

query {
  epicBoardList(id: "gid://gitlab/Boards::EpicList/1", epicFilters: {or: {labelName: ["foo"]}}) {
    id
  }
}

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 Jan Provaznik

Merge request reports

Loading