Skip to content

Filter by iteration in issues list

Heinrich Lee Yu requested to merge 118742-iterations-in-filter-bar into master

What does this MR do?

Adds filtering by iteration to:

  1. Project issues list
  2. Group issues list
  3. Project issue board
  4. Group issue board
Project Group
Screenshot_2020-10-30_at_10.21.33 Screenshot_2020-10-30_at_10.21.48
Screenshot_2020-10-30_at_10.22.57 Screenshot_2020-10-30_at_10.22.16

New queries

SELECT
    "issues".*
FROM
    "issues"
    INNER JOIN "sprints" ON "sprints"."id" = "issues"."sprint_id"
WHERE
    "issues"."project_id" = 278964
    AND ("issues"."state_id" IN (1))
    AND "issues"."issue_type" IN (0, 1)
    AND "sprints"."title" = 'gitlab-org: #11'
ORDER BY
    "issues"."created_at" DESC,
    "issues"."id" DESC
LIMIT 20 OFFSET 0
Time: 327.993 ms
  - planning: 0.991 ms
  - execution: 327.002 ms
    - I/O read: 312.913 ms
    - I/O write: 0.000 ms

Shared buffers:
  - hits: 30 (~240.00 KiB) from the buffer pool
  - reads: 144 (~1.10 MiB) from the OS file cache, including disk I/O
  - dirtied: 35 (~280.00 KiB)
  - writes: 0

https://explain.depesz.com/s/UziV

SELECT
    "issues".*
FROM
    "issues"
    LEFT OUTER JOIN "sprints" ON "sprints"."id" = "issues"."sprint_id"
WHERE
    "issues"."project_id" = 278964
    AND ("issues"."state_id" IN (1))
    AND "issues"."issue_type" IN (0, 1)
    AND (sprints.title != 'gitlab-org: #11'
        OR sprints.id IS NULL)
ORDER BY
    "issues"."created_at" DESC,
    "issues"."id" DESC
LIMIT 20 OFFSET 0
Time: 77.441 ms
  - planning: 0.671 ms
  - execution: 76.770 ms
    - I/O read: 75.580 ms
    - I/O write: 0.000 ms

Shared buffers:
  - hits: 1 (~8.00 KiB) from the buffer pool
  - reads: 28 (~224.00 KiB) from the OS file cache, including disk I/O
  - dirtied: 7 (~56.00 KiB)
  - writes: 0

https://explain.depesz.com/s/2nVV

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

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

Related to #118742 (closed)

Edited by Mayra Cabrera

Merge request reports