Skip to content
Snippets Groups Projects

Show indicator to Pipelines for merge train

Merged Shinya Maeda requested to merge indicator-for-pipeline-for-merge-train into master
All threads resolved!

What does this MR do?

Updates the text of the pipeline widget on a merge request's page.

This new text simplifies the current implementation (which has an unwieldy number of v-if in the Vue template) and also better indicates the pipeline's purpose.

Current implementation

image

(The current implementation has many possible permutations; only one scenario is shown in the screenshot above.)

UX proposal:

Note: the conditions will be evaluated in the order specified below.

Pipeline type Pipeline texts in MR Evaluation in FE
Pipelines for merge train Merge train pipeline # 123 pending for adcd1234 pipeline.flags.merge_train_pipeline === true
Pipelines for merged results Merged result pipeline # 123 pending for adcd1234 pipeline.flags.merge_request_pipeline === true
Pipelines for merge requests (detached) Detached merge request pipeline # 123 pending for adcd1234 pipeline.flags.detached_merge_request_pipeline === true
Branch pipelines Pipeline # 123 pending for adcd1234 on feature-branch pipeline.ref.branch === true
Tag pipelines Pipeline # 123 pending for adcd12341 pipeline.ref.tag === true

1It is not currently possible to create a merge request for a tag, so this scenario is N/A at the moment. However, this feature has been proposed, so this merge request attempts to handle this possibility gracefully.

Screenshots

Merge train pipeline: image

Merged result pipeline: Screen_Shot_2019-08-21_at_1.05.43_PM

Detached merge request pipeline: Screen_Shot_2019-08-21_at_1.01.12_PM

Branch pipeline: Screen_Shot_2019-08-21_at_12.55.45_PM

Tag pipeline: N/A (tag pipelines are not yet implemented by GitLab)

Related issues

This MR has a CE backport

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32025

Edited by Nathan Friend

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
  • Nathan Friend changed the description

    changed the description

    • Resolved by Rayana Verissimo

      @rverissimo Can you do a UX review on this change? :pray:

      I've updated the description of this MR with screenshots for each scenario. If you'd like to reproduce this locally or in a review app, let me know, and I can give you steps (although I'll warn you it's a decent amount of work to reproduce each scenario).

  • Nathan Friend assigned to @rverissimo

    assigned to @rverissimo

  • @nkipling You've been chosen by Reviewer Roulette as a frontend reviewer for this change; care to take a look? :slight_smile:

  • assigned to @nkipling

  • Nathan Friend added 2 commits

    added 2 commits

    • e4fb4489 - Make MR pipeline widget text more descriptive (EE)
    • c4f8c076 - Make MR pipeline widget text more descriptive (CE)

    Compare with previous version

  • Rayana Verissimo unassigned @rverissimo

    unassigned @rverissimo

  • Nathan Friend assigned to @dosuken123

    assigned to @dosuken123

  • mentioned in issue #13799 (closed)

  • 🤖 GitLab Bot 🤖 changed milestone to %12.3

    changed milestone to %12.3

  • mentioned in issue #13991 (closed)

  • Shinya Maeda added 671 commits

    added 671 commits

    • c4f8c076...bca3a0f4 - 668 commits from branch master
    • e48c344a - Make MR pipeline widget text more descriptive (EE)
    • 6baf9a98 - Make MR pipeline widget text more descriptive (CE)
    • 45a1844a - Pulling pipeline type calculation into backend

    Compare with previous version

  • Shinya Maeda added 1 commit

    added 1 commit

    • 8ee82c2a - Pulling pipeline type calculation into backend

    Compare with previous version

    • Author Maintainer
      Resolved by Nathan Friend

      @nfriend I worked a bit in this branch and quickly realized that this MR was getting bigger and bigger. Thus, I decoupled BE change to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32323 for keeping this MR as small as possible.

      I'll try to merge it asap. With the BE change, FE no longer needs to calculate pipeline type or pipeline type label anymore. Please refer pipeline.type and pipeline.details.type_label keys instead. So until then, this MR can be considered as blocked state.

      To make FE implementation aligns with new BE change, I tweaked a bit FE code but I probably made a mistake. I'd appreciate if you'd fix it if any.

      Edited by Shinya Maeda
  • Nathan Friend added 1140 commits

    added 1140 commits

    • 8ee82c2a...37a2ce2f - 1138 commits from branch master
    • 7e0f7abf - Make MR pipeline widget text more descriptive (EE)
    • 5dde126e - Make MR pipeline widget text more descriptive (CE)

    Compare with previous version

  • Shinya Maeda added 1 commit

    added 1 commit

    • 1186b476 - Add feature spec and fix backend logic

    Compare with previous version

  • Author Maintainer

    @tkuah This MR contains a very small BE changes. Would you mind reviewing and signs-off if no objections? Thanks.

  • Shinya Maeda assigned to @tkuah and unassigned @dosuken123

    assigned to @tkuah and unassigned @dosuken123

  • Thong Kuah approved this merge request

    approved this merge request

  • Thong Kuah assigned to @dosuken123

    assigned to @dosuken123

  • unassigned @tkuah

  • I'll rebase both this MR and the CE backport on master to resolve the ee-specific-lines-check failure :fingers_crossed:

  • Nathan Friend added 394 commits

    added 394 commits

    • 1186b476...8ad69eaa - 391 commits from branch master
    • c3669dc2 - Make MR pipeline widget text more descriptive (EE)
    • 338d7bf4 - Make MR pipeline widget text more descriptive (CE)
    • 541a5a79 - Add feature spec and fix backend logic

    Compare with previous version

  • Author Maintainer

    @nfriend Thank you for backporting! It seems there are nothing I have to do in this MR anymore. I'll unassign myself, but please let me know if you need my hand.

  • Shinya Maeda unassigned @dosuken123

    unassigned @dosuken123

  • Shinya Maeda added 1 commit

    added 1 commit

    • 612c5a0d - Add feature spec and fix backend logic

    Compare with previous version

  • Nick Kipling approved this merge request

    approved this merge request

  • Author Maintainer

    @kushalpandya Can you review/merge as frontend maintainer? Thanks.

  • Shinya Maeda assigned to @kushalpandya and unassigned @nfriend

    assigned to @kushalpandya and unassigned @nfriend

  • Thanks @nfriend, left a few suggestions. :slight_smile:

  • assigned to @nfriend

  • Nathan Friend added 377 commits

    added 377 commits

    • 612c5a0d...6cf60b77 - 375 commits from branch master
    • ff361258 - Make MR pipeline widget text more descriptive (EE)
    • 5a0b9823 - Make MR pipeline widget text more descriptive (CE)

    Compare with previous version

  • Nathan Friend added 127 commits

    added 127 commits

    • 5a0b9823...4a57c020 - 125 commits from branch master
    • 66aae5f1 - Make MR pipeline widget text more descriptive (EE)
    • 4ab6c4e1 - Make MR pipeline widget text more descriptive (CE)

    Compare with previous version

  • Rayana Verissimo approved this merge request

    approved this merge request

  • Thanks for the review, @kushalpandya! I've made a few updates based on your suggestions - care to take another look?

  • Kushal Pandya approved this merge request

    approved this merge request

  • Thong Kuah resolved all threads

    resolved all threads

  • merged

  • Thong Kuah mentioned in commit 0b28bd79

    mentioned in commit 0b28bd79

  • Merged! Thanks @nfriend @dosuken123 ! :thumbsup_tone1:

  • Shinya Maeda mentioned in merge request !18250 (merged)

    mentioned in merge request !18250 (merged)

  • Yorick Peterse removed 1 deleted label

    removed 1 deleted label

  • Please register or sign in to reply
    Loading