You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vanus Functions are a series of pre-built functions worked within Vanus transformer. By choosing a function, users can specify the way that events will be changed.
It will be a good start if you decide to contribute to Vanus codes.
Details
Function name: extract_between_delimiters
args
sourceJsonPath – The name of an existing path.
targetJsonPath – The name of the new path to be created.
startDelimiter – Indicating the character or characters that begin the delimited value.
endDelimiter – Indicating the delimiter character or characters that end the delimited value.
..
Description
The function is used to extract value between the start delimiter and end delimiter from the source JSON path. Then assign the value to the target JSON path.
Extraction is base on the starting and ending delimiters.
Create a branch function-extract_between_delimiters
Create extract_between_delimiters.go under internal/primitive/transform/action/strings, and then implement the function.
Create extract_between_delimiters_test.go under internal/primitive/transform/action/strings for unit test.
Register your function in internal/primitive/transform/runtime/init.go.
Submit your PR
Contribution points
Each issue counts specific points based on its difficulty. Contributors earn the corresponding points if they solve that issue. Contribution points are used to describe the contributions contributors have made. They can also be used to get rewards when there are community events.
This issue counts 7 points.
How to claim to solve the issue
If you want to implement this function, please leave a comment in this issue like:
I'd like to implement this function, please assign this issue to me.
Vanus community will assign the issue to you on time.
The text was updated successfully, but these errors were encountered:
I don't have a lot experience with Go, but looking through merged PRs, I think I get the gist, and I really want to try to implement this function, please assign this issue to me.
Motivation
Vanus Functions are a series of pre-built functions worked within Vanus transformer. By choosing a function, users can specify the way that events will be changed.
It will be a good start if you decide to contribute to Vanus codes.
Details
Function name: extract_between_delimiters
args
..
Description
The function is used to extract value between the start delimiter and end delimiter from the source JSON path. Then assign the value to the target JSON path.
Extraction is base on the starting and ending delimiters.
Example
After the function "extract_between_delimiters":
The transformed event should look like this:
How to implement
function-extract_between_delimiters
extract_between_delimiters.go
underinternal/primitive/transform/action/strings
, and then implement the function.extract_between_delimiters_test.go
underinternal/primitive/transform/action/strings
for unit test.internal/primitive/transform/runtime/init.go
.Contribution points
Each issue counts specific points based on its difficulty. Contributors earn the corresponding points if they solve that issue. Contribution points are used to describe the contributions contributors have made. They can also be used to get rewards when there are community events.
This issue counts 7 points.
How to claim to solve the issue
If you want to implement this function, please leave a comment in this issue like:
Vanus community will assign the issue to you on time.
The text was updated successfully, but these errors were encountered: