GithubHelp home page GithubHelp logo

Comments (11)

ant-caichu avatar ant-caichu commented on September 28, 2024

i think a go-restful based framework should be imported, https://github.com/hpejustin/depark this can be a good example.

from grafeas.

ant-caichu avatar ant-caichu commented on September 28, 2024

i think, we can add Label or Annotation properties to Note and Occurrence, in that case we can use filter to list them.

from grafeas.

R2wenD2 avatar R2wenD2 commented on September 28, 2024

The intention here is to allow filtering on fields that already exist as a part of the occurrence or note. I don't see a case for additional labels or annotations.

The implementation will to parse a query string, reading key,values where keys are the fields of our resources.

from grafeas.

R2wenD2 avatar R2wenD2 commented on September 28, 2024

We'll use one of the following filtering specs:

Both of them require an accessible parser - I'm following up on that.

from grafeas.

furuholm avatar furuholm commented on September 28, 2024

One aspect of this could be to go for a format that can be transformed into a database query, or will that be too restrictive?

from grafeas.

R2wenD2 avatar R2wenD2 commented on September 28, 2024

We need a few things:

  1. A parser that will parse and validate a filter expression from query string
  2. A mapping of Keys to database fields (which I think is what you're referring to, @furuholm

I'm working with the cel team to create part one of this, but once we have that part 2 can follow quickly.

We also need a real database, but that's a separate issue.

from grafeas.

furuholm avatar furuholm commented on September 28, 2024

Added #84 to address the database

from grafeas.

TristonianJones avatar TristonianJones commented on September 28, 2024

Hey there, I've implemented the filter parsing using the syntax of advanced filters with the backing representation as cel. Any preference on which directory the parser should go into?

from grafeas.

R2wenD2 avatar R2wenD2 commented on September 28, 2024

@TristonianJones Awesome! Lets put it in grafeas/server-go/filtering.

from grafeas.

TristonianJones avatar TristonianJones commented on September 28, 2024

Just curious, but any thoughts on whether this is something that you'd like to continue using? If so, the github.com/google/cel-go library can be used to evaluate ASTs generated by the filtering parser.

from grafeas.

vtsao avatar vtsao commented on September 28, 2024

Yes we are still planning on using what you impl'd for our filtering. Also thanks for the code pointer. @aysylu FYI this might be something you will take on.

from grafeas.

Related Issues (20)

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.