Ariel Mashraki
88bfbc38df
dialect/sql/schema: index builders per dialect
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/118
Reviewed By: alexsn
Differential Revision: D18092371
fbshipit-source-id: 02b85724b1e00d10c930112b9e2c8d07c8727216
2019-10-24 02:23:33 -07:00
Ariel Mashraki
c414cd9a82
dialect/sql/schema: alter column for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/117
Reviewed By: alexsn
Differential Revision: D18083914
fbshipit-source-id: a5f6993cfe9a260a84c0d4ab868e3e797b3a5776
2019-10-23 05:39:17 -07:00
Ariel Mashraki
a0c7ee77dc
dialect/sql/schema: default value format support for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/116
Reviewed By: alexsn
Differential Revision: D18083400
fbshipit-source-id: 5939aa2d1819d991ae74adc81c4ac60455bb7ed0
2019-10-23 05:39:16 -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
Ariel Mashraki
2789257849
dialect/sql/schema: alter table for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/115
Reviewed By: alexsn
Differential Revision: D18065988
fbshipit-source-id: a7d33bbebd63b01659bc5ba562ac85642dcd3d83
2019-10-22 12:55:36 -07:00
Ariel Mashraki
dff3067639
dialect/sql/schema: table creation tests for postgres
...
Reviewed By: alexsn
Differential Revision: D18059272
fbshipit-source-id: f93785378119dfa18be31fdfc969848ea6d9b782
2019-10-22 08:17:05 -07:00
Ariel Mashraki
8be31d18f9
dialect/sql/schema: add postgres table and column builders
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/114
Reviewed By: alexsn
Differential Revision: D18059082
fbshipit-source-id: fffec25143fa5f2a0ed2c79787abacefad724862
2019-10-22 08:17:05 -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
Alex Snast
a5b1805da3
ent/entc: rename time mixin fields ( #109 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/109
- created_at -> create_time
- updated_at -> update_time
Reviewed By: a8m
Differential Revision: D18035896
fbshipit-source-id: ec9aef703c444554eb0f65a668703a1a6607b93e
2019-10-22 03:45:52 -07:00
Ariel Mashraki
17cd619c2a
doc: add missing import to fields example
...
Reviewed By: alexsn
Differential Revision: D18058307
fbshipit-source-id: 752b8dc1c5f97947ce59d79c1ed27e57b2a216f7
2019-10-22 01:31:29 -07:00
Alex Snast
4d835b6d6f
ent/entc: mask reserved names on type validation
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/111
Reviewed By: a8m
Differential Revision: D18037667
fbshipit-source-id: 391b4d1826bb453fc6235363fb288c2ef1d3134c
2019-10-21 07:42:45 -07:00
Ariel Mashraki
8e3a17550a
sql/dialect/schema: add sqltype for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/108
Reviewed By: alexsn
Differential Revision: D18032062
fbshipit-source-id: 04a1d65bf4bd6bb78d79f1312ea09cce25cbb901
2019-10-20 08:30:13 -07:00
Ariel Mashraki
5f4a55ea1e
sql/dialect/schema: load postgres table
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/107
Reviewed By: alexsn
Differential Revision: D18031837
fbshipit-source-id: 863f8db50a0547a7cb5e9ac560066fd6ee4e9c26
2019-10-20 05:20:16 -07:00
Ariel Mashraki
c3135d03a6
ent/dialect/sql/schema: set nullability of columns on scan
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/106
Reviewed By: alexsn
Differential Revision: D17987588
fbshipit-source-id: f5f985d28bdd7379826dca35111c61f1c169d5c0
2019-10-17 14:29:32 -07:00
Ariel Mashraki
0241a969b4
diaelct/sql/schema: postgres read columns
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/104
Reviewed By: alexsn
Differential Revision: D17980080
fbshipit-source-id: 341092a17798d008b91389263bf3bdc24b2571b2
2019-10-17 09:11:12 -07:00
Ariel Mashraki
2b6c8eada3
dialect/sql/schema: initial interface for postgres API
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/101
Reviewed By: alexsn
Differential Revision: D17977541
fbshipit-source-id: 118f935e11449661fd91f87b94dde2fb62c9b912
2019-10-17 05:50:49 -07:00
Alex Snast
9d9e121dbd
ent/entc: .String() now uses ansic time format when formating time fields
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/103
Reviewed By: a8m
Differential Revision: D17978059
fbshipit-source-id: 721014b0bf712943d721c7ff038239cff690b94e
2019-10-17 04:36:04 -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
0f262a9c69
ent/doc: add algolia search to website
...
Summary: {F218025048}
Reviewed By: alexsn
Differential Revision: D17977453
fbshipit-source-id: e94716558f8f87f817a3bcf29a776549d7bcd0a3
2019-10-17 02:06:38 -07:00
Alex Snast
75f59d76ad
ent/entc: drop modtime from generated bindata
...
Summary: Keep bindata code consistent accross `go generate` executions.
Reviewed By: a8m
Differential Revision: D17977276
fbshipit-source-id: 7bc1eecf23f59c0732399ec69e484a594a611d31
2019-10-17 01:55:41 -07:00
Ariel Mashraki
e9d9deffe4
schema/schemautil: add license header for schemautil files
...
Reviewed By: alexsn
Differential Revision: D17953335
fbshipit-source-id: 6178e4121a4bbd241374f1d6ad5a447188d48fb1
2019-10-17 01:55:41 -07:00
Ariel Mashraki
e75a817d63
ent/doc: better installation instructions
...
Reviewed By: alexsn
Differential Revision: D17950790
fbshipit-source-id: d7517768bdfcc2eff8a5d900943a61ea2359d91b
2019-10-16 04:30:16 -07:00
Alex Snast
38b1fc9e66
ent/schema: adding schemautil package ( #100 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/100
package includes time mixins adding created_at / updated_at fields
Reviewed By: a8m
Differential Revision: D17950845
fbshipit-source-id: 84c0e7b82ed09857375a42add4254a4a85a52335
2019-10-16 03:47:57 -07:00
Ariel Mashraki
c6b395904c
entc/load: avoid panic due to index out of range ( #99 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/99
go/packages now returns partial packages instead of error and this can cause an index of out range.
Reviewed By: alexsn
Differential Revision: D17939156
fbshipit-source-id: d02867a0cca5f1e90ac4952ac4136d8c8086a944
2019-10-15 22:17:02 -07:00
Ariel Mashraki
a6df15101f
dialect/sql: fix bad query generation on clone
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/97
Reviewed By: alexsn
Differential Revision: D17931134
fbshipit-source-id: e181e253f6e29b757f5ca647195d87d7ac89a0c8
2019-10-15 13:38:39 -07:00
Ariel Mashraki
3f1d942d3e
ent/circleci: run codegen before running integration tests ( #98 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/98
Make sure templates are valid.
Reviewed By: alexsn
Differential Revision: D17933466
fbshipit-source-id: 70dca88cfeaa9d04f21e6a9364642f65b05c7c19
2019-10-15 12:29:28 -07: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
Hylke Visser
aa23f95b3e
Restore ids declaration in query builder IDs ( #95 )
...
Summary:
This pull request restores a line in the query builder template that I believe was [removed by accident](0c46ce4e5e (diff-855ebdbcdbdd5bf91fcb98886276275eL203) ).
Pull Request resolved: https://github.com/facebookincubator/ent/pull/95
Differential Revision: D17931801
Pulled By: a8m
fbshipit-source-id: d88f3f303329e2581bfa69668316f9cf5f5f0fe7
2019-10-15 09:52:09 -07:00
Ariel Mashraki
0c46ce4e5e
entc/gen: move multistorage logic to Go code
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/94
Reviewed By: alexsn
Differential Revision: D17926186
fbshipit-source-id: b59dc418703bc4faca5230a7354edea1423b7d35
2019-10-15 06:42:44 -07:00
Ariel Mashraki
36a3971f3d
entc/gen: add struct field name to fields and edges
...
Summary: avoig logic in templates
Reviewed By: alexsn
Differential Revision: D17926168
fbshipit-source-id: d583e800fb4a45cf939e9788cea6d45e126c61fe
2019-10-15 06:42:44 -07:00
Ariel Mashraki
64ed7580c0
entc/gen: use BuilderField for builder memebrs
...
Summary: StructField should be used a member of the ent type (struct), and logic should be removed from templates.
Reviewed By: alexsn
Differential Revision: D17926151
fbshipit-source-id: f77c5ce8359816ec3a4ce1ab71dd98f205706deb
2019-10-15 06:42:44 -07:00
Ariel Mashraki
2c8d7fcc8b
ent/doc: add custom predicate exmaple
...
Reviewed By: alexsn
Differential Revision: D17926144
fbshipit-source-id: 5390585bf634aecfad86a729db6e633c4a7e6f5e
2019-10-15 06:42:44 -07:00
Alex Snast
5d988870bc
ent/entc: use select/scan on id query ( #1552 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1552
Pull Request resolved: https://github.com/facebookincubator/ent/pull/93
avoids complete ent load on id query
Reviewed By: a8m
Differential Revision: D17906002
fbshipit-source-id: 7749a0d7c707858eab368978a1d220b581ea6dbb
2019-10-14 23:16:14 -07:00
Ariel Mashraki
638e34b11a
circleci: disable deprecate lint error in load package
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/90
Reviewed By: alexsn
Differential Revision: D17899427
fbshipit-source-id: 607ae3f9b417671ee6affd0dc58811aa082580b3
2019-10-13 08:09:39 -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
Ariel Mashraki
6f5f42ab3c
dialect/sql: dialect based builders ( #1550 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1550
Pull Request resolved: https://github.com/facebookincubator/ent/pull/84
This is still WIP and you should ignore this.
Reviewed By: alexsn
Differential Revision: D17854477
fbshipit-source-id: 2d19713c118adb31164b7a2781327e64c87db8d4
2019-10-13 07:03:11 -07:00
Alex Snast
9983309eac
ent/circleci: cache / restore go modules ( #86 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/86
In addition rename run.deadline golangci-lint config to run.timeout
Reviewed By: a8m
Differential Revision: D17863321
fbshipit-source-id: f863bac6499ddd3066a3ec6e9f518c0d5156f117
2019-10-12 23:52:42 -07:00
Ariel Mashraki
9521000534
doc: add examples for custom sql.DB and opencensus
...
Reviewed By: alexsn
Differential Revision: D17853894
fbshipit-source-id: bdceae27fe12bcf8bde877c51472efe7bd2b2bd6
2019-10-10 05:02:59 -07:00
Alex Snast
ce2bc07c1a
ent/circleci: adding linter tests
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/80
Reviewed By: a8m
Differential Revision: D17837182
fbshipit-source-id: 9fb539fd6cebc064d2d2804bd52e0fbf413cfc93
2019-10-10 04:45:07 -07:00
Alan Yee
fdf98f3b8d
Update README.md ( #79 )
...
Summary:
Add link to LICENSE
Pull Request resolved: https://github.com/facebookincubator/ent/pull/79
Differential Revision: D17826725
Pulled By: alexsn
fbshipit-source-id: 4eee6b5654c89f03d21584544e0492c43406d905
2019-10-08 23:06:46 -07:00
Chandan Rai
a3e6333b2a
corrected minor typo
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/77
Differential Revision: D17809443
Pulled By: a8m
fbshipit-source-id: fc9e86bc252e0cecaadd54a8a9da05845580bff5
2019-10-08 07:22:37 -07:00
Christian Muehlhaeuser
713b22ba60
Remove ineffective assignments in test ( #76 )
...
Summary:
Don't assign 'typ' if we don't end up checking it.
Pull Request resolved: https://github.com/facebookincubator/ent/pull/76
Differential Revision: D17809445
Pulled By: a8m
fbshipit-source-id: 124b53c2970795c51e8998efebd8e6049f82591a
2019-10-08 07:20:03 -07:00
Ariel Mashraki
82f91dfcd2
examples/start: add license
...
Reviewed By: idoshveki
Differential Revision: D17788435
fbshipit-source-id: ae8ba70bcf84cf5e325291c45b69e8721a130bf1
2019-10-07 07:48:30 -07:00
Ido Shveki
3d0d8724b0
ent/schema: adding sensitive fields support ( #75 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/75
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1539
Supporting "Sensitive" mode for string fields.
Reviewed By: a8m
Differential Revision: D17786543
fbshipit-source-id: a4d022c1436472cb525cdd50663dd0ce23d13699
2019-10-07 07:46:28 -07:00
Ariel Mashraki
7597f07912
entc: add option to use entc as package
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/72
Reviewed By: alexsn
Differential Revision: D17783580
fbshipit-source-id: 597f124a28415fef66b0b16811ad2acac8df631d
2019-10-07 07:06:32 -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
ac50ea81d4
ent: address several lint errors throughout the project ( #1534 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1534
Pull Request resolved: https://github.com/facebookincubator/ent/pull/73
lint errors detected by running `golangci-lint` tool.
Reviewed By: a8m
Differential Revision: D17784980
fbshipit-source-id: f7e8bd99fdf1e018d5672cea1e8d44b67f2a4201
2019-10-06 23:59:12 -07:00
Ariel Mashraki
b0e889a997
contributing: initial doc for contribution guidance ( #68 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/68
Closes #62
Reviewed By: alexsn
Differential Revision: D17782435
fbshipit-source-id: c2995dbf2c1cbdb032cf4c2865769ffa7a3214ad
2019-10-06 05:33:13 -07:00