Skip to content

Commit

Permalink
Merge branch 'master' into feature/gra-682-graphfilter-live-create-an…
Browse files Browse the repository at this point in the history
…d-edit
  • Loading branch information
edlouth committed Aug 23, 2023
2 parents 08e936c + d8f7c7c commit 95d1f94
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Security Policy


## Reporting a Vulnerability

Please report any security issues or concerns to security@grai.io.
9 changes: 8 additions & 1 deletion docs/pages/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ This will take less than five minutes and involves three easy steps:
- Install the Grai Connector for your data sources
- Update the server with your source metadata

If you'd prefer to skip straight to a demo you can also use the CLI

```bash
pip install grai-cli
grai demo start
```

### Step 1: Clone the repository and run locally

```shell copy
git clone https://github.com/grai-io/grai-core.git
cd grai-core/grai-server
cd grai-core/examples/deployment/docker-compose/complete
docker compose up
```

Expand Down
2 changes: 1 addition & 1 deletion grai-server/app/lineage/graph_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def filter_by_dict(row, query: GraphQuery) -> GraphQuery:
if row["operator"] == "contains":
query.where(f"'{value}' IN table.tags")
elif row["operator"] == "not-contains":
query.where(f"'{value}' NOT IN table.tags")
query.where(f"NOT '{value}' IN table.tags")

elif row["type"] == "ancestor":
if row["field"] == "tag":
Expand Down
2 changes: 1 addition & 1 deletion grai-server/app/lineage/tests/test_graph_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def test_table_tag_doesnt_contain():
filter_by_filter(filter, query)

assert len(query.clause[0].wheres) == 1
assert query.clause[0].wheres[0].where == "'tag1' NOT IN table.tags"
assert query.clause[0].wheres[0].where == "NOT 'tag1' IN table.tags"
assert query.parameters == {}


Expand Down

0 comments on commit 95d1f94

Please sign in to comment.