Pedro Henrique
1f8e4ada01
entc/gen: allow package with alias on ID field ( #2926 )
...
* entc/gen: allow package with alias on ID field
* Update entc/gen/template/import.tmpl
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com >
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com >
2022-09-18 16:45:21 +03:00
Ariel Mashraki
ddc46d34d8
schema/field: correctly extract package names from type identifier ( #2765 )
...
Fixes https://github.com/ent/ent/issues/2761
2022-07-17 16:49:11 +03:00
Ariel Mashraki
6ddeb93649
entc/gen: use gotypw pkgname as alias in case it does not match pkgpath ( #2686 )
2022-06-25 11:05:15 +03:00
Ariel Mashraki
e1c5277483
ent: initial support for edge schemas ( #2560 )
2022-05-25 15:46:00 +03:00
Ciaran Liedeman
bab709001c
entc/gen: fix panics during initTemplates when Config.Storage is nil ( #1769 )
2021-07-26 21:49:07 +03:00
Ariel Mashraki
34aabc0eb1
entc/gen/template: add goland-annotation for template data-types
2021-04-09 17:53:04 +03:00
Ariel Mashraki
dd4792f5b3
go: rename module from github.com/facebook/ent => entgo.io/ent ( #1226 )
2021-02-02 23:03:04 +02:00
Ariel Mashraki
aa73b9067f
entc/gen/template: allow extensions to extend the import templates
2021-01-19 09:11:37 +02:00
Ariel Mashraki
2bd262a04c
entc/gen: add id field to external package importing ( #901 )
...
Fixed #891
2020-10-28 22:48:23 +02:00
Ariel Mashraki
38e769465c
entc/gen: import external packages in runtime package ( #775 )
...
Closed #773
2020-09-17 12:00:02 +03:00
Ariel Mashraki
fd0a7f9f02
all: facebookincubator/ent => facebook/ent ( #660 )
...
ent repository is going to be migrated to facebook organization
2020-08-18 11:05:08 +03:00
Ariel Mashraki
b5a9c66290
entc/gen: import siblings packages by default ( #655 )
...
Also, add missing pkg-path for non-value types.
2020-08-02 15:06:05 +03:00
Ariel Mashraki
bf566aa3ac
entc/gen: support valuescanner in go-types ( #510 )
2020-05-28 18:23:14 +03:00
Hylke Visser
cef1058af0
entc/gen: Fix import for ID type ( #455 )
...
* entc/gen: Alias semantic version imports
* entc/gen: Add import for ID type
* entc/gen: Revert semantic version import aliasing
2020-05-01 11:27:18 +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
65f96b3593
entc/gen: remove legacy i2a support for ids ( #389 )
...
* entc/gen: remove legacy i2a support for ids
* integ: add customid tests for fk strings
2020-03-16 18:19:30 +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
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
e85b10be36
entc/gen: remove multi storage support
2019-12-15 14:48:55 +02:00
Ariel Mashraki
c5b790043c
entc: change the way we inject additional fields ( #1560 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1560
Pull Request resolved: https://github.com/facebookincubator/ent/pull/96
Reviewed By: alexsn
Differential Revision: D17931147
fbshipit-source-id: 24e1d72be482cb787c557f46feeb2ed4a31dfe60
2019-10-15 12:00:46 -07:00
Ariel Mashraki
c3955a08f1
schema/field: json type support ( #38 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/38
Only `IsNil` and `NotNil` predicates are supported this moment
Reviewed By: alexsn
Differential Revision: D17444976
fbshipit-source-id: 37336fa0bc7749af995933baee2e23bb7366dd78
2019-09-19 05:00:11 -07:00
Ariel Mashraki
61b8ccea4a
entc/load: enable adding additional fields to the generated entities
...
Summary: In some cases (like xwf auth service), you want to add additional fields to the generated model.
Reviewed By: alexsn
Differential Revision: D17223674
fbshipit-source-id: fb4be71b388c6bd107e6bac242133c237fe25599
2019-09-08 08:05:13 -07:00
Ariel Mashraki
4323141fe2
ent: add license and copyright to template files
...
Reviewed By: alexsn
Differential Revision: D17149292
fbshipit-source-id: 837de5fad988de1e54438b47584701f2fc35326d
2019-09-01 03:03:15 -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
56656dfcb6
ent/entc: configure storage driver in codegen
...
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1229
Reviewed By: alexsn
Differential Revision: D16539934
fbshipit-source-id: b3a8bf1f1be6f65ad3f649cd921ea20fc24182bf
2019-07-30 02:49:22 -07:00
Ariel Mashraki
2cfda7564f
type safe predicates
...
Reviewed By: alexsn
Differential Revision: D16452717
fbshipit-source-id: da0a07275434d95d73a5a26830a2e5535c3abf47
2019-07-24 08:35:51 -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
Ariel Mashraki
37ae2b744e
add offset step to query builder ( #1049 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1049
Useful for real paging
Reviewed By: noamsch
Differential Revision: D16003607
fbshipit-source-id: 6a85d0e3d71a2582bc3cd8f1d66748dda4f2a10e
2019-06-26 01:43:59 -07:00
facebook-github-bot
267e3c15bd
Initial commit
...
fbshipit-source-id: c79a38536e3c128dce1b2948615b72ec9779ed22
2019-06-16 04:37:51 -07:00