[
https://issues.apache.org/jira/browse/TINKERPOP-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette updated TINKERPOP-2666:
----------------------------------------
Component/s: translator
(was: process)
Labels: (was: Translator)
Somewhere along the line (i think 3.5.0, we added a "withParameters" option
that helped produce Gremlin scripts that would gain better cache hits by
removing variable values in scripts and replacing them with dynamically
generated variable name. I can't help feel that's related to this in some way
as in a sense it's removing sensitive data for logging but without the helpful
type syntax you're suggesting. Please have a look at the {{GroovyTranslator}}
and its {{withParameters}} option and consider how that fits in with what this
issue.
> Create an anonymizing Translator for logging traversals without user data
> -------------------------------------------------------------------------
>
> Key: TINKERPOP-2666
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2666
> Project: TinkerPop
> Issue Type: Improvement
> Components: translator
> Affects Versions: 3.5.1
> Reporter: Mike Personick
> Priority: Major
> Fix For: 3.6.0, 3.5.2
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Implement a Translator which accepts a customizable Anonymizer and translates
> a traversal into a String for logging, stripped of all identifiable user data
> (ids, property names, property values, etc.). Provide a default Anonymizer
> implementation based on Java datatype, for example:
>
>
> {code:java}
> "g.V().has('runways',inside(1,3)).values('code','airport').toList()"
> ->
> "g.V().has(string0,P.gt(integer0).and(P.lt(integer1))).values(string1,string2).toList()"
> {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)