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

IdentityRemovalStrategy not installed

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 3.4.8
    • 3.5.0
    • process

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment