Skip to content
Snippets Groups Projects

Add limit to the number of events showed in cycle analytics

Merged James Lopez requested to merge fix/cycle-analytics-events-limit into master
All threads resolved!

This is part of https://gitlab.com/gitlab-org/gitlab-ce/issues/24800 to provide a limit to the number of events shown so there are no performance problems - and a better UX.

TODO - from the frontend, add a note about the maximum or an X out of Y events shown.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • @jameslopez so this isn't expected to implement pagination, just the limiting to stop the 502s?

  • James Lopez Resolved all discussions

    Resolved all discussions

  • Author Maintainer

    @smcgivern correct - see Job's suggestion https://gitlab.com/gitlab-org/gitlab-ce/issues/24800#note_18812405 We'll do pagination later, as that will require some UX design, etc... And this is a quick fix for now...

  • James Lopez Added 1 commit:

    Added 1 commit:

    • c91ecf55 - split base query into multiple lines

    Compare with previous version

  • James Lopez Added 1 commit:

    Added 1 commit:

    • 339721e6 - user project and not empty_project as we need the repo stuff

    Compare with previous version

  • @jameslopez What's the status here?

  • Douwe Maan changed milestone to %8.15

    changed milestone to %8.15

  • Author Maintainer

    @DouweM we need a frontend change in order to merge this MR first.

    @alfredo has this been done in the frontend? See https://gitlab.com/gitlab-org/gitlab-ce/issues/24800 for the details...

  • mentioned in issue #22940 (closed)

  • mentioned in issue #27622 (closed)

  • Douwe Maan removed milestone

    removed milestone

  • James Lopez added 4312 commits

    added 4312 commits

    • 339721e6...178626ed - 4308 commits from branch master
    • 2e54454e - Add limit to the number of events showed in cycle analytics and spec
    • 0c4c5408 - undo local changelog change
    • 40bc96c9 - fix typo [ci skip]
    • 58a5d4a9 - user project and not empty_project as we need the repo stuff

    Compare with previous version

  • James Lopez added 1 commit

    added 1 commit

    • 1b7c1867 - move query limit to base event fetcher

    Compare with previous version

  • James Lopez added 1 commit

    added 1 commit

    Compare with previous version

  • Hey @jameslopez quick question on this. I'd like to help do the frontend piece, but was curious on how it should work.

    I don't see a page query parameter or any way to signify which subset of events are being viewed. Is the intent to limit it to the only last 50 events (no pagination)?

  • Author Maintainer

    @samrose3 yes, this is something temporary, until we decide to do the whole pagination. https://gitlab.com/gitlab-org/gitlab-ce/issues/24800 has no milestone yet.

    I've just picked this up again as I thought I can do the frontend myself - requirements are pretty straightforward: https://gitlab.com/gitlab-org/gitlab-ce/issues/24800#note_19176379

    But let me know if you can do it (that would be great too!) 👍🏻

  • @jameslopez I can help out with this real quick 💪 😁

  • Author Maintainer

    @samrose3 thanks a lot!

  • James Lopez marked as a Work In Progress

    marked as a Work In Progress

  • James Lopez changed milestone to %8.17

    changed milestone to %8.17

  • James Lopez added 1 commit

    added 1 commit

    Compare with previous version

  • James Lopez added ~18308 label

    added ~18308 label

  • Author Maintainer

    @smcgivern this should be pretty much the same as when you first reviewed, but there was a big refactoring so I had to move things around. Feel free to have another quick look! Thanks :)

  • James Lopez unmarked as a Work In Progress

    unmarked as a Work In Progress

  • assigned to @smcgivern

  • added 1 commit

    • 8dced28a - Display number of shown events on Plan stage of Cycle Analytics

    Compare with previous version

  • @mikegreiling can you take a look at my commit to make sure everything looks solid? 💯

  • added 1 commit

    • 4490a57f - Revise tooltip message and warning text

    Compare with previous version

  • @jameslopez LGTM, I think my comments are for @samrose3!

    I'm moving to %9.0.

  • changed milestone to %9.0

  • added 1 commit

    • dff411d7 - Fix display logic for warning message

    Compare with previous version

  • username-removed-443319 resolved all discussions

    resolved all discussions

  • mentioned in issue #30046 (moved)

  • mentioned in issue gitlab#8963

  • Please register or sign in to reply
    Loading