Skip to content

Conversation

yann-eugone
Copy link
Contributor

@yann-eugone yann-eugone commented Sep 20, 2021

So far, library was using an "auto incremented" index to identify an item in the batch.

With this change, reader is allowed to determine what should be the item id.

If nothing is done, we will end to an auto-incremented integer, starting to 0.

This PR also introduce a reader decorator able to extract id from data read.

@codecov
Copy link

codecov bot commented Sep 20, 2021

Codecov Report

Merging #32 (eb20cee) into 0.x (c8f4e3f) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                0.x      #32      +/-   ##
============================================
+ Coverage     92.84%   92.90%   +0.05%     
- Complexity      620      628       +8     
============================================
  Files           100      101       +1     
  Lines          1789     1804      +15     
============================================
+ Hits           1661     1676      +15     
  Misses          128      128              
Impacted Files Coverage Δ
src/batch/src/Job/Item/ItemJob.php 100.00% <100.00%> (ø)
src/batch/src/Job/Item/Reader/IndexWithReader.php 100.00% <100.00%> (ø)

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 c8f4e3f...eb20cee. Read the comment docs.

@yann-eugone yann-eugone merged commit 935c5fb into 0.x Sep 21, 2021
@yann-eugone yann-eugone deleted the read-index branch September 27, 2021 16:47
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.

2 participants