Commit Graph

175 Commits

Author SHA1 Message Date
dependabot[bot]
7fc92be193 build(deps): bump github.com/json-iterator/go from 1.1.9 to 1.1.10 (#619)
Bumps [github.com/json-iterator/go](https://github.com/json-iterator/go) from 1.1.9 to 1.1.10.
- [Release notes](https://github.com/json-iterator/go/releases)
- [Commits](https://github.com/json-iterator/go/compare/v1.1.9...v1.1.10)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 23:38:37 +03:00
dependabot[bot]
31506b8e9a build(deps): bump github.com/stretchr/testify from 1.4.0 to 1.6.1 (#618)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.4.0 to 1.6.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.4.0...v1.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 23:38:16 +03:00
dependabot[bot]
0e9adf8627 build(deps): bump github.com/mattn/go-sqlite3 from 1.13.0 to 1.14.0 (#617)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.13.0...v1.14.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 23:37:00 +03:00
dependabot[bot]
091d3cd90d build(deps): bump github.com/DATA-DOG/go-sqlmock from 1.3.3 to 1.4.1 (#616)
Bumps [github.com/DATA-DOG/go-sqlmock](https://github.com/DATA-DOG/go-sqlmock) from 1.3.3 to 1.4.1.
- [Release notes](https://github.com/DATA-DOG/go-sqlmock/releases)
- [Commits](https://github.com/DATA-DOG/go-sqlmock/compare/v1.3.3...v1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 23:36:05 +03:00
Alex Snast
1f553bc145 entc/gen: adding hook.Unless helper (#550) 2020-06-16 16:16:02 +03:00
Alex Snast
6e6651c878 Query policy (#411)
* entc/gen: drop xerrors package usage

* all: bump dependencies version

* entc/gen: adding query privacy policy support
2020-03-29 18:11:13 +03:00
Ariel Mashraki
416c374cb3 sqlgraph/convert: use json.RawMessage for JSON types (#393)
If the underlying driver does not support JSON types, driver.DefaultParameterConverter
will convert it to uint8.
2020-03-17 18:34:10 +02:00
Ariel Mashraki
7988d3084d entc/hooks: initial work for mutations and hooks (#377)
* entc/hooks: initial work for mutations and hooks

* ent/schema: adding policy to schema

* ent: change op string to uint

* entc: move entschema to runtime and enable smooth transition

* entc/privacy: adding privacy template

* all: goimports

* intg/hooks: mutation client/tx and basic schema tests

* ent/privacy: adding more verbose decisions

* entc/gen: edge-ids getter and additional tests

* all: regen assets

* entc/gen: fix client hookd propagation

* intg: add deletion example

* intg/privacy: remove old entschema package

* typed privacy

* ent/privacy: hooks shouldn't be called on privacy deny

* entc/gen: fix schema hooks invocation order

* remove read policy from public api

* update circleci go orb

Co-authored-by: Ariel Mashraki <ariel@mashraki.co.il>
2020-03-16 00:19:27 +02:00
Ariel Mashraki
2a82920267 go: update gomod version to 1.14 (#365) 2020-02-27 12:53:35 +02:00
Alex Snast
0428788539 entc/gen: add support for wrapped errors
Signed-off-by: Alex Snast <alexsn@fb.com>
2020-01-30 10:53:58 +01:00
Ariel Mashraki
21a58e94a3 entc/integration: test postgres schema creation
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/124

Reviewed By: alexsn

Differential Revision: D18117662

fbshipit-source-id: e8151f92e00f565db26f17f78ff46b132c46e425
2019-10-24 10:49:47 -07:00
Ariel Mashraki
44335ab955 all: remove irrelevant imports caused accidentally
Reviewed By: idoshveki

Differential Revision: D18066228

fbshipit-source-id: 7d84cc931d2b16e2e67580453f07a2ec85195f34
2019-10-22 12:55:36 -07:00
Ido Shveki
67c1d5262a Adding dropdown
Summary:
Still behind gk
added dropdown component

Reviewed By: dlvhdr

Differential Revision: D17981200

fbshipit-source-id: cc1bf9d43ffce49328e444398a339699c7884e46
2019-10-22 08:13:42 -07:00
Ariel Mashraki
cdf91dd5d2 all: remove irrelevant imports in go.mod
Reviewed By: r-i-g

Differential Revision: D18059244

fbshipit-source-id: 1d43c3368ed126acf35d8fc753ddb59a7d91abc6
2019-10-22 04:40:35 -07:00
Ron Galay
5958d28ae1 Add gk like ability to ofproxy
Summary: We need to add a large domain of address for brck, and only for them. In order to do that, we'll first introduce a way to gaurd against unique changes.

Reviewed By: AyliD

Differential Revision: D18058884

fbshipit-source-id: 38a1ad45305e72871593d954906193e9f0964493
2019-10-22 04:06:05 -07:00
Ariel Mashraki
5ef5fa1dde all: upgrade sqlite version to v1.11.0
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/102

Reviewed By: alexsn

Differential Revision: D17977693

fbshipit-source-id: 78ac5de4130bfc635d30c82bb3f633517e76178d
2019-10-17 04:28:56 -07:00
Ariel Mashraki
c2418a1907 entc/gen: suspended goimports after files were written (#89)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/89

We can't run "imports" on files when the state is not completed. Because, "goimports" will drop undefined package. Therefore, it's suspended to end of the writing.

Fixed #88

Reviewed By: alexsn

Differential Revision: D17899321

fbshipit-source-id: 198dae11b121869764ebc9eee92110caf4256bed
2019-10-13 07:03:11 -07:00
Alex Snast
e668326c5e ent/entc: set go-bindata version in go.mod (#74)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/74

don't rely on local go-bindata binary

Reviewed By: a8m

Differential Revision: D17786303

fbshipit-source-id: 1d1258478fd8f3abcdb3a7b1b06d0601b4468c94
2019-10-07 02:20:47 -07:00
Alex Snast
b59fb59b9a symphony: bump stretchr/testify package version
Reviewed By: idoshveki

Differential Revision: D17281295

fbshipit-source-id: fff60a2760eea967b61b5636fec7a21b77c48bf0
2019-09-10 01:21:16 -07:00
Alex Snast
c95a00c4ce upgrade go version to 1.13 (#1408)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1408

In addition removing GOPROXY setting as its enabled by default in 1.13

Reviewed By: a8m

Differential Revision: D17181239

fbshipit-source-id: e1faebea46ce6d5c4c11a55e6e7ee7a87b374c0f
2019-09-04 05:20:16 -07:00
Ariel Mashraki
e0e754717e ent: change ent package name (#1338)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1338

Pull Request resolved: https://github.com/facebookincubator/ent/pull/14

Reviewed By: alexsn

Differential Revision: D16890825

fbshipit-source-id: 656baaa73f5debab08c849b6b9639caeec2a8ef1
2019-08-19 09:32:14 -07:00
Ariel Mashraki
1e47de5300 move lib/go/gremlin to ent/dialect (#1192)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1192

Pull Request resolved: https://github.com/facebookincubator/ent/pull/11

Reviewed By: alexsn

Differential Revision: D16377224

fbshipit-source-id: 07ca7436eb9b64fbe2299568560b91466b2417ba
2019-07-20 08:27:06 -07:00
Andy Buteau
f46c8f8848 Bump version of uuid
Summary:
Code in fbcode/fbc/kirin/graph requires uuid v1.1.1 so entc needs to use the same version, otherwise running entc against `fbcode/fbc/kirin/graph/ent/schema` will result in the following error:

  $ entc generate ./ent/schema
  open plugin /var/folders/gc/4mclbm612vb2jgg7x2mks20xxhkjkd/T/entc_fbc_kirin_graph_ent_schema_1562895280.so: plugin.Open("/var/folders/gc/4mclbm612vb2jgg7x2mks20xxhkjkd/T/entc_fbc_kirin_graph_ent_schema_1562895280"): plugin was built with a different version of package github.com/google/uuid

Reviewed By: tcirstea

Differential Revision: D16226326

fbshipit-source-id: 1f9939ed64e7490220ed5ae56b3f24b9ef9dd558
2019-07-12 12:35:38 -07:00
Ariel Mashraki
5f0268e02c add tests for mysql migration
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/4

Reviewed By: alexsn

Differential Revision: D15874726

fbshipit-source-id: 217fbc0503e961704ea646ee40663a30211c5af1
2019-06-18 10:11:00 -07:00
facebook-github-bot
267e3c15bd Initial commit
fbshipit-source-id: c79a38536e3c128dce1b2948615b72ec9779ed22
2019-06-16 04:37:51 -07:00