Skip to content

Commit

Permalink
Remove c_isbot and add it as RandomCustomData
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevost committed Oct 18, 2018
1 parent 3fb0222 commit 40bf011
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"Etienne Rocheleau"
"Jerome Devost"
"Francis Nadeau"
"Pascal Soucy"
"Adam Bolduc"
Expand Down
1 change: 0 additions & 1 deletion scenariolib/visit.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ func (v *Visit) DecorateCustomMetadata(evt *ua.ActionEvent, customData map[strin
evt.CustomData = map[string]interface{}{
"JSUIVersion": JSUIVERSION,
"ipaddress": v.IP,
"c_isbot": true,
}

// Send all the possible random custom data that can be added from the config
Expand Down
2 changes: 1 addition & 1 deletion scenarios_examples/DemoMovies.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"timeBetweenActions": 1,
"randomGoodQueries": [],
"randomBadQueries": [],
"randomCustomData": [],
"randomCustomData": [{"apiname": "c_isbot", "values": ["true"]}],
"globalFilter": "@mytype=Movie",
"scenarios": [{
"name": "(G) red willis",
Expand Down

0 comments on commit 40bf011

Please sign in to comment.