Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2481

IdentityRemovalStrategy not installed

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.4.8
    • Fix Version/s: 3.5.0
    • Component/s: process
    • Labels:

      Description

      I'm not sure why but IdentityRemovalStrategy is not in play and almost looks like it never has been, yet I fairly certain we've gone about life thinking it was one of our standard strategies. Perhaps this issue title will shift once this is given more thought but I came to notice this issue with this example:

      gremlin> g.V().match(__.as("a").out("knows").as("b")).identity()
      ==>[]
      ==>[]
      gremlin> g.withStrategies(IdentityRemovalStrategy.instance()).V().match(__.as("a").out("knows").as("b")).identity()
      ==>[a:v[1],b:v[2]]
      ==>[a:v[1],b:v[4]]
      

      So if the strategy had been in play, PathRetractionStrategy wouldn't have trimmed the history. Or, perhaps PathRetractionStrategy should have been smarter....

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              spmallette Stephen Mallette
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: