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

Change prepareRequest to a reducer #10

Merged
merged 5 commits into from
Feb 23, 2018
Merged

Conversation

ballercat
Copy link
Contributor

This change changes the prepareRequest to behave as a reducer for jobs instead of a mapper(?).

@codecov-io
Copy link

codecov-io commented Feb 20, 2018

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master    #10   +/-   ##
=======================================
  Coverage       100%   100%           
+ Complexity       61     60    -1     
=======================================
  Files             5      5           
  Lines           169    143   -26     
=======================================
- Hits            169    143   -26
Impacted Files Coverage Δ Complexity Δ
src/plugins/BasePlugin.php 100% <100%> (ø) 7 <1> (ø) ⬇️
src/Renderer.php 100% <100%> (ø) 35 <0> (-1) ⬇️
src/plugins/DevModePlugin.php 100% <0%> (ø) 6% <0%> (ø) ⬇️
src/Job.php 100% <0%> (ø) 6% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9112a8b...11176aa. Read the comment docs.

@ballercat ballercat changed the title Change prepareRequest to a reducer WIP: Change prepareRequest to a reducer Feb 21, 2018
@ballercat ballercat changed the title WIP: Change prepareRequest to a reducer Change prepareRequest to a reducer Feb 22, 2018
@ballercat
Copy link
Contributor Author

@roippi

Hey Ben, could you take a look at this when you get a chance? Should be ready to go.

src/Renderer.php Outdated
}
return $job;
}, $jobs);
$parsedJobs = $jobs;
Copy link
Collaborator

Choose a reason for hiding this comment

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

can I ask why you called this parsedJobs? there's no parsing going on here

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 I misread prepared will fix!

@roippi
Copy link
Collaborator

roippi commented Feb 23, 2018

LGTM after nit

@roippi roippi merged commit 53549d6 into wayfair:master Feb 23, 2018
roippi added a commit that referenced this pull request Feb 23, 2018
* Change prepareRequest to a reducer

* tweak api, match spec exactly

* typehint prepareRequest

* Revert "typehint prepareRequest"

This reverts commit 79ce391.

* naming, fix a few phpcs warnings
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.

3 participants