Skip to content
Snippets Groups Projects

Fix cluster installation processing spinner

Merged Jacques Erasmus requested to merge 56398-fix-cluster-installation-loading-state into master
All threads resolved!

What does this MR do?

This fixes the cluster installation processing spinner on the installation buttons.

before after
installing loading_2.2019-01-18_14_45_28

Solution

  1. Button says "Install"
  2. Click button
  3. Button says "Installing" with spinner (greyed out)

What are the relevant issue numbers?

Closes #56398 (closed)

Edited by 🤖 GitLab Bot 🤖

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
  • Simon Knox
  • Simon Knox
  • Simon Knox
  • Simon Knox
  • Simon Knox
  • @jerasmus left a couple of questions. Overall LGTM :thumbsup: thanks for fixing!

  • assigned to @jerasmus

  • added 1 commit

    Compare with previous version

  • @psimyn thanks for the review!

    I've addressed your comments, back to you!

  • assigned to @psimyn

  • @jerasmus all looks good. Given the rest of application_row_spec.js I think it's ok to leave as-is, but leaving discussion open for a maintainer to resolve

  • assigned to @jerasmus

  • Thanks for the review @psimyn!

    @fatihacet could you please give this a maintainer review?

  • Fatih Acet
  • Fatih Acet
  • Fatih Acet
    • Resolved by Jacques Erasmus

      @jerasmus the checks we have and the especially ones like (x || y || z) && !t) worries me here in this MR. I know, it was there before and you just changed some of them or added a few more etc. but still, I believe it's a problem.

      For instance, we have a computed property called isInstalling and we chain it with some other computed properties to get something we want. Changing something wrong in the isInstalling property would cause other checks to fail.

      How can we make this better? Since you already deep dive into this part of the codebase, do you think it's further possible to improve the logic here? Please let me know what you think about it.

  • assigned to @jerasmus

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • 24790d27 - Add test for the installation button

    Compare with previous version

  • Fatih Acet resolved all discussions

    resolved all discussions

  • Fatih Acet approved this merge request

    approved this merge request

  • merged

  • Fatih Acet mentioned in commit ad47b123

    mentioned in commit ad47b123

  • LGTM :sunny: Locally works fine too. Thanks @jerasmus :thumbsup:

  • Woo! Thanks @jerasmus!

  • This MR introduced failures in master, and were even present in this MR but were merged anyway.

    Edit: I was mistaken about this being broken in this MR. I was looking at the wrong widget. Apologies for that accusation!

    Edited by Robert Speicher
  • Robert Speicher mentioned in commit 1414cfae

    mentioned in commit 1414cfae

  • @rspeicher oops I didn't see that. Looking into it now.

  • mentioned in issue #56398 (closed)

  • Reverted to resolve ~"broken master".

  • Nope, I was right the first time. It did fail in this branch, we just didn't see it because we have several builds with only: merge_requests, which were green, and hid the broken pipeline below it.

  • Ah, a terrible gotcha! Note rebasing with master will take away the only: merge_requests pipeline from running, probably too late to be of benefit now.

  • @jerasmus looks like the failures are legit, shame that we missed it. Can you rebase from master and fix failing specs then create another MR and assign to me?

  • My apologies, not sure how it slipped through. Tests fixed now in: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24814 :thumbsup:

  • Jacques Erasmus mentioned in merge request !24814 (merged)

    mentioned in merge request !24814 (merged)

  • 🤖 GitLab Bot 🤖 changed the description

    changed the description

  • Please register or sign in to reply
    Loading