Open Michaelg22 opened 1 year ago
Looking for a new person to contribute to this issue. :)
@Michaelg22 hey, I would like to work on this issue.
Thanks I will assign it to you!
the time format is Y-m-d
Should we add an argument to change it @xdlbdy
y-m-d or d-m-y and m-d-y ...
targetJsonPath - The name of an existing column
The provided example {"command":["today","$.data.time", "Europe/Madrid"]}
works on the event where the data
map does not have a time
column as suggested by $.data.time
.
@Michaelg22 can you please clarify the requirement or help me understand if I am missing something.
I have changed the description of targetJSONPath
Please I'd love to work on this
Hey, Please assign this issue to me, I want to work on this too.
hey, please assign it to me. i will love to work on this.
hi @AmeerIbrahimm I assign it to you.
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: today
Args
Description
The function is used to get the current date(format: YYYY-MM-DD) in a specific TimeZone. And assign it to the target JSON path. The Time Zone will be UTC if users don't specify it.
Example
After the function.
The transformed event should look like this:
How to implement
function-today
today.go
underinternal/primitive/transform/action/datatime
, and then implement the function.today.go
underinternal/primitive/transform/action/datatime
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 4 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.