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

feat: add function replace_between_positions #406

Merged
merged 6 commits into from
Jan 11, 2023
Merged

feat: add function replace_between_positions #406

merged 6 commits into from
Jan 11, 2023

Conversation

c0d33ngr
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #376

Problem Summary

This problem solve the issue of finding a sub-string by specifying the starting position and the ending position of an existed json element, and then replace it with a specific new string.

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

@CLAassistant
Copy link

CLAassistant commented Jan 10, 2023

CLA assistant check
All committers have signed the CLA.

@xdlbdy xdlbdy changed the title implement the function replace_between_positions feat: add function replace_between_positions Jan 10, 2023
@c0d33ngr
Copy link
Contributor Author

I've updated the code @xdlbdy thanks to you.

@c0d33ngr
Copy link
Contributor Author

Do I have to sign the CLA assistant also?

@JieDing
Copy link
Contributor

JieDing commented Jan 10, 2023

Do I have to sign the CLA assistant also?

hi @c0d33ngr Yeah, please sign the CLA assistant

@c0d33ngr
Copy link
Contributor Author

c0d33ngr commented Jan 11, 2023

I've made updates to the code

@c0d33ngr
Copy link
Contributor Author

I've updated the code

Copy link
Contributor

@xdlbdy xdlbdy left a comment

Choose a reason for hiding this comment

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

LGTM

@xdlbdy xdlbdy merged commit 29f5430 into vanus-labs:main Jan 11, 2023
@c0d33ngr
Copy link
Contributor Author

LGTM

I just saw a test earlier before you merging it about mismatch type from checks provided

wenfengwang pushed a commit that referenced this pull request Mar 23, 2023
* implement the function replace_between_positions

* Update code to be more robust with checks and test cases

* fix errors in code

* fix tests in replace-between-positions

* Fix bug

* fix: fix code error
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.

[Good First Issues]: implement function "replace_between_positions" - 8 points
4 participants