Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Ability to see which masters are paused and only show paused if everything is paused #928

Closed
wants to merge 3 commits into from

Conversation

glamorous
Copy link
Contributor

@glamorous glamorous commented Nov 19, 2020

This pull request does two things:

  • Show on a every "master" if it's paused or running
  • If horizon is active but at least 1 master is running and 1 is paused, you see this in the dashboard.

A couple of images to show what has been changed.

status_workers
inactive-not-changed
active_unchanged
paused_unchanged
active_changed

Little question: I wasn't sure if I should update the javascript files by running npm run production. If necessary, I can make changes.

Closes #927

@driesvints driesvints changed the title Ability to see which masters are paused and only show paused if everything is paused [4.x] Ability to see which masters are paused and only show paused if everything is paused Nov 20, 2020
@@ -74,7 +74,7 @@ public function test_paused_status_is_reflected_if_all_master_supervisors_are_pa
$masters = Mockery::mock(MasterSupervisorRepository::class);
$masters->shouldReceive('all')->andReturn([
(object) [
'status' => 'running',
'status' => 'paused',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because now it only will show "paused" if all master supervisorrs are paused. Changed in behaviour because it's now unclear if you look at the dashboard. Now it shows "paused" while only one master supervisor is paused and everything is running. Therefore this pull request to show users (see images) if not all master supervisors are paused or not. Test was failing because he expected to be "paused" if only one is "paused" despite the wrong title that was indicating all master supervisors are paused.

@taylorotwell
Copy link
Member

This was sent to 4.x branch. The current release of Horizon is 5.x. Please submit to that branch.

@glamorous
Copy link
Contributor Author

Opened a new PR: #929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants