Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2304

Relationship search API fails with use of TP3 (Janus graph)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • atlas-core
    • None

    Description

      Relationship search REST API (api/atlas/v2/search/relationship) fails due to use of Gremlin expressions that are not recognized in TinkerPop3.

      TinkerPop2 query:

      g.V('__guid', guid).both(relation).has('__state', T.in, states).order{it.a.getProperty(sortAttributeName) <=> it.b.getProperty(sortAttributeName)} [startIdx..<endIdx].toList()
      

      TinkerPop3 query:

      g.V().has('__guid', guid).both(relation).has('__state', within(states)).order().by(sortAttributeName, incr).range(startIdx, endIdx).toList()
      

      Attachments

        1. ATLAS-2304.patch
          5 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: