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

[5.4] use same output style for jobs as migrations #18773

Merged
merged 4 commits into from
Apr 12, 2017

Conversation

Quezler
Copy link
Contributor

@Quezler Quezler commented Apr 11, 2017

  • Adds a message for when a job has started.
  • Make status strings the same width.

See 2328c7a
And #18542

Copy link

@CedriQ CedriQ left a comment

Choose a reason for hiding this comment

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

Slick

@tillkruss
Copy link
Contributor

Would you mind adding tests for this?

@Quezler
Copy link
Contributor Author

Quezler commented Apr 11, 2017

@tillkruss from what i can find, the current tests only check for the events being fired, nothing related to text output.

@Quezler
Copy link
Contributor Author

Quezler commented Apr 11, 2017

And i currently do not see how a test would be written for this/wether it is required at all (the writeOutput function only gets called in the function i changed, from all the files in the entire framework)

break;
case 'failed':
$this->output->writeln('<error>['.Carbon::now()->format('Y-m-d H:i:s').'] Failed:</error> '.$job->resolveName());
break;
Copy link
Contributor

Choose a reason for hiding this comment

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

Using str_pad() here, might make this more readable.

@Quezler
Copy link
Contributor Author

Quezler commented Apr 11, 2017

I'll refractor it in a moment, good point @tillkruss

@Quezler
Copy link
Contributor Author

Quezler commented Apr 11, 2017

@tillkruss I have updated the code the best i could, is it more readable now?

@taylorotwell taylorotwell merged commit d038921 into laravel:5.4 Apr 12, 2017
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.

5 participants