Skip to content

Use cached weight for epic board lists

Jan Provaznik requested to merge jp-list-weight into master

What does this MR do and why?

Uses cached weight counts to get epic lists overall weight. This was the main reason for caching these counts - &7780.

DB queries:

original query (taken from !76440 (merged)):

Related to #356686 (partially - cached counts will be used also on other places) and #353450 (closed)

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

  1. Enable the invite modal
    Feature.enable(:epic_board_total_weight)
  2. Sample query:
query {
  group(fullPath: "flightjs") {
    id
    epicBoard(id: "gid://gitlab/Boards::EpicBoard/1") {
      lists {
        edges {
          node {
            id
            metadata {
              epicsCount
              totalWeight
            }
          }
        }
      }
    }
  }
}

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