-
Notifications
You must be signed in to change notification settings - Fork 112
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
[Good First Issues]: implement function "extract_pattern" - 7 points #425
Comments
Can I take on the implementation of this function? May I be assigned this issue, please? |
Hi @mithindev for better communication join our slack channel |
Sure! |
How is it going havent see your PR yet? |
Hey, I am sorry. I am in the middle of my end-sem exams. I will finish It today. Thank you so much for your patience. |
@mithindev, no problem, I just wanted to make sure :) Hope your exams are going well. |
I will closed this issue |
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
The function is used to get value from the source JSON path, which matches the regular expression. Then assign the value to the target JSON path.
args
..
Description
Function name: ** extract_pattern**
If the pattern is "a*" the function will search for an element that starts with the letter a.
Example
After the function "extract_pattern":
The transformed event should look like this:
How to implement
function-extract_pattern
extract_pattern.go
underinternal/primitive/transform/action/strings
, and then implement the function.extract_pattern_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: