Skip to content

Fix firstRange and lastRange implementation in DataProtocol #2993

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

Closed
wants to merge 4 commits into from

Conversation

Frizlab
Copy link
Contributor

@Frizlab Frizlab commented Mar 29, 2021

firstRange did not find needle if at last index of haystack.
lastRange was fully broken and crashed.

@Frizlab Frizlab marked this pull request as draft March 29, 2021 07:57
@Frizlab Frizlab marked this pull request as ready for review March 29, 2021 08:15
@Frizlab
Copy link
Contributor Author

Frizlab commented Mar 29, 2021

Hopefully I got it right this time

@varungandhi-apple
Copy link
Contributor

cc @phausler: would you be the right person to review?

@spevans
Copy link
Contributor

spevans commented Apr 1, 2021

@swift-ci test

@YOCKOW
Copy link
Member

YOCKOW commented Apr 4, 2021

#2499 will fix the same bug(SR-10689).
Who would decide which PR should be chosen?

EDIT: FYI
The same implementation with #2499 for SDK Overlay was already merged:

@millenomi
Copy link
Contributor

Oh, geez, this fell through the cracks while I am Away On Adventures.

@YOCKOW is your cherry-pick on the main branch of this repository already?

@millenomi
Copy link
Contributor

And if so: is @Frizlab's patch fixing a different issue than that?

@millenomi
Copy link
Contributor

I'm happy to take this patch if it's needed.

@YOCKOW
Copy link
Member

YOCKOW commented Apr 10, 2021

@millenomi

I believe #2499 is ready to be merged into main branch because:

  • It has been open since Sep 2019.
  • The last tests have passed all.
  • It has no conflicts with the main branch.
  • (As above,) The same implementation with it for SDK Overlay was already merged.

@Frizlab's patch (this PR) seems to be fixing the same issue.

@Frizlab
Copy link
Contributor Author

Frizlab commented Apr 29, 2021

Personally I don’t care which PR is merged as long as the issue is fixed.

@CodaFi
Copy link
Contributor

CodaFi commented Jun 9, 2021

@swift-ci test

@YOCKOW
Copy link
Member

YOCKOW commented Jun 18, 2021

FYI: #2499 was merged into main. The issue (SR-10689) is fixed.

@Frizlab
Copy link
Contributor Author

Frizlab commented Jun 19, 2021

Closing as all tests introduced in this PR now pass with the merging of #2499.

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.

6 participants