Summary:
Set the standard header ("Code generated by entc, DO NOT EDIT.") as default, and override it using option in graph.
No changes to graph except the `generate.go` file.
Reviewed By: idoshveki
Differential Revision: D16642348
fbshipit-source-id: d9fd1d2046e2fd96acbb100ef061fda75d99ce52
Summary: Learning from the remote troubleshoot session I had with Murtadha on Friday - this could save me and him a lot fo time.
Reviewed By: alexsn
Differential Revision: D16639856
fbshipit-source-id: dc2a6b693b617fcd8061757987a6db95af4be2b6
Summary:
Go plugin is not a good solution for both internal and external usage.
It's hard to manage and maintain matching versions (both Go and external libraries), and it does not support Windows.
Reviewed By: alexsn
Differential Revision: D16582217
fbshipit-source-id: 81876d2c6f30bbfc16ecf9e5000f0670f2e62484
Summary:
Some old versions of `goimports` don't import deps that are go modules.
Importing manually them right now.
Reviewed By: apbuteau
Differential Revision: D16472613
fbshipit-source-id: 6cc237f133f3058c2e7bd4ec723500b725cde0a1
Summary: We were releasing tx lock before consuming rows data which could place the connection in a bad state. Instead of changing lock placement we chose to remove it as mutations were changed to being serial which is expected when working with transactions.
Reviewed By: a8m
Differential Revision: D16449629
fbshipit-source-id: 9f2e7435036f35c407f0640e3dd1071a17b3c368
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
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/7
avoid conflicting with reserved words (e.g. "groups" became reserved word in MySQL 8.x)
Reviewed By: alexsn
Differential Revision: D15957279
fbshipit-source-id: b6944752c7e5f6ec37119b11cc0ab8a0d7d3a7ff
Summary:
This is pull request was created automatically because we noticed your project was missing a Contributing file.
CONTRIBUTING files explain how a developer can contribute to the project - which you should actively encourage.
This PR was crafted with love by Facebook's Open Source Team.
Pull Request resolved: https://github.com/facebookincubator/ent/pull/1
Differential Revision: D15854211
Pulled By: a8m
fbshipit-source-id: 74183c87f887dd858a21d8cde4a14117e611fddd
Summary:
This is pull request was created automatically because we noticed your project was missing a Code of Conduct file.
Code of Conduct files facilitate respectful and constructive communities by establishing expected behaviors for project contributors.
This PR was crafted with love by Facebook's Open Source Team.
Pull Request resolved: https://github.com/facebookincubator/ent/pull/2
Differential Revision: D15854207
Pulled By: a8m
fbshipit-source-id: d942a8fe42fe8556123248dcc8d386b0f429474e