Comments (11)
i think a go-restful based framework should be imported, https://github.com/hpejustin/depark this can be a good example.
from grafeas.
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.
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.
We'll use one of the following filtering specs:
Both of them require an accessible parser - I'm following up on that.
from grafeas.
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.
We need a few things:
- A parser that will parse and validate a filter expression from query string
- 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.
Added #84 to address the database
from grafeas.
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.
@TristonianJones Awesome! Lets put it in grafeas/server-go/filtering.
from grafeas.
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.
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)
- Running GET cURL for a valid occurrence ID but from the wrong project HOT 1
- json: cannot unmarshal object when trying to create in toto occurrence HOT 4
- [Question]: Getting started with Grafeas HOT 3
- [Question] process to contribute a new storage implementation HOT 2
- Diagram in the readme is unviewable in GH dark mode
- Update Note and Occurrence Protos to support SBOM (SPDX) data HOT 1
- Can't get any notes using python client HOT 1
- [Getting Started] SOS When I visit the grafeas-server, it shows 500
- Support git as one of the producers when sending data to Grafeas HOT 1
- Add support for CWE field in vulnerability proto message HOT 7
- Updating repeated fields is broken due to grpc-gateway bug HOT 1
- Unable to create any occurrence except kind: DEPLOYMENT with postgres backend HOT 1
- Release v0.2.1 HOT 1
- Use Grafeas v1 API HOT 1
- Note ID can be created with / in the id, but not queried HOT 1
- Security Policy violation Binary Artifacts HOT 2
- Enable Grafeas to store and retrieve Vex information
- Support SLSA v1.0 provenance format HOT 1
- possible SQL injection?
- New release for grafeas? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafeas.