Coder Social home page Coder Social logo

Comments (4)

hairmare avatar hairmare commented on July 20, 2024

@q-src In the first example your the link should be fully qualified.

http://graviton-develop.nova.scapp.io/file/?eq(links.%24ref,http%3A%2F%2Fgraviton%2Ddevelop.nova.scapp.io%2Fcore%2Fapp%2Fadmin)

While this still doesn't work, I'm pretty sure that it did work at some time in the past. So it does look like this is a regression.

from graviton.

q-src avatar q-src commented on July 20, 2024

@hairmare Thanks for the reply.

I've tried it not fully qualified because this works for filtering by $refs which are not within an array. For example:
http://graviton-develop.nova.scapp.io/core/module/?eq(app.%24ref,%2Fcore%2Fapp%2Fadmin)

Moreover, the request works with .. syntax:
http://graviton-develop.nova.scapp.io/file/?eq(links..%24ref,%2Fcore%2Fapp%2Fadmin)

However, this is no consistent behaviour because http://graviton-develop.nova.scapp.io/file/?eq(links..type,user) does return an empty result.

In addition, the following behaviours concerning filtering by array might interest you too: http://graviton-develop.nova.scapp.io/file/?like(links,*) does return an empty result and http://graviton-develop.nova.scapp.io/file/?like(links..%24ref,*) fails with HTTP 500 and response null.

from graviton.

hairmare avatar hairmare commented on July 20, 2024

The last point you raise is is also in libgraviton/rql-parser#1. There certainly also are issues with $ref behaviour not always matching non $ref behaviour, looks like something smelly is going on there.

from graviton.

narcoticfresh avatar narcoticfresh commented on July 20, 2024

So old, close..

from graviton.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.