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

fix(iteration): bySetPositions index calculation #69

Merged
merged 2 commits into from
Jan 28, 2024

Conversation

jonasbadstuebner
Copy link
Contributor

Closes: #68

dateIndex is currently implemented so that edge cases, where it should "ignore" a SETPOS, lead to incorrect calculations.

I'm open for improvements, maybe I made the implementation of this check more complicated than it has to be.
It's late in Germany, so maybe I see a better way tomorrow. But this is the solution I found.

It includes the fix from #67, but not the test, so I would like them both to be merged. I will take care of rebasing if necessary.

Signed-off-by: Jonas Badstübner <jonas.badstuebner@hetzner-cloud.de>
Copy link

codecov bot commented Jan 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1a33b23) 87.90% compared to head (89b6a2d) 87.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #69      +/-   ##
==========================================
+ Coverage   87.90%   87.92%   +0.01%     
==========================================
  Files          21       21              
  Lines        1282     1284       +2     
==========================================
+ Hits         1127     1129       +2     
  Misses        155      155              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JonasWanke JonasWanke merged commit d84d259 into JonasWanke:main Jan 28, 2024
13 checks passed
@JonasWanke
Copy link
Owner

Thanks for this fix! It's published as part of v0.2.15

@JonasWanke JonasWanke added the T: Fix Type: Build & CI label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Fix Type: Build & CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SETPOS/bySetPositions is not behaving correctly
2 participants