Commit Graph

1166 Commits

Author SHA1 Message Date
Ariel Mashraki
2bfb34fe82 doc/md: add example on how to group-by an edge 2021-04-19 14:28:40 +03:00
Ariel Mashraki
a51c50f6a3 entc/gen: allow group-by by relations 2021-04-19 14:28:40 +03:00
Giau. Tran Minh
26b8f3b6b2 doc/md: update tutorial-todo-gql-mutation-input.md (#1477) 2021-04-19 14:02:24 +03:00
Ariel Mashraki
1ea5d64607 doc/md: add tutorial on how to generate mutation input types (#1476)
* doc/md: add tutorial on how to generate mutation input types

* address codereview comments
2021-04-19 12:29:16 +03:00
Ariel Mashraki
9829ffb385 entc/integ: add example for custom id type 2021-04-17 13:45:51 +03:00
Ariel Mashraki
2480b5c0ef entc/gen: wrap nillable fields with custom go-type with sql.nullscanner 2021-04-17 13:13:40 +03:00
Ariel Mashraki
762e6aeff9 doc/website: add latest release to the announcement bar 2021-04-15 21:19:33 +03:00
dependabot[bot]
e57f9932fe build(deps): bump github.com/mattn/go-sqlite3 from 1.14.6 to 1.14.7
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.6...v1.14.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-15 11:03:25 +03:00
Ariel Mashraki
712b6a5f08 dialect/sql/sqlgraph: allow update single node without select v0.8.0 2021-04-14 21:54:27 +03:00
dependabot[bot]
82277ac804 build(deps): bump actions/cache from v2.1.4 to v2.1.5 (#1452)
Bumps [actions/cache](https://github.com/actions/cache) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-14 18:25:01 +03:00
Ariel Mashraki
5bcee6b51c dialect/sql/schema: add postgres tests for array type 2021-04-14 14:25:28 +03:00
Ariel Mashraki
fd1f2df150 dialect/sql/schema: add support for pg arrays in migration 2021-04-14 14:25:28 +03:00
Ciaran Liedeman
eff6552989 entc/gen: allow users to alter Query initialization using templates (#1453)
* Templating: Allow user to alter Query struct init

* Update entc/gen/template/dialect/sql/query.tmpl

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* pr feedback

* renamed template

* changed sql to *

* to tabs

* removed old template

* update bin-data

* Update entc/integration/template/ent/template/query.tmpl

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* restore newline

* update bindata

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-04-14 14:04:29 +03:00
Ariel Mashraki
f59e25d228 doc/md: add global annotation example 2021-04-11 14:47:48 +03:00
Ariel Mashraki
30c947546f entc: add global annotations option 2021-04-11 13:58:10 +03:00
Ariel Mashraki
8d7bb7fad6 entc/gen: check edge-field on mutation-cleared calls for edges
Fixed #1445
2021-04-10 14:56:34 +03:00
Ariel Mashraki
106dd53d23 doc: add goland type annotation to examples and doc 2021-04-09 17:53:04 +03:00
Ariel Mashraki
34aabc0eb1 entc/gen/template: add goland-annotation for template data-types 2021-04-09 17:53:04 +03:00
bshihr
d7b683c0d3 dialect/sql/schema: correct wrong error message ("mysql" hard coded in Inspector method) (#1442) 2021-04-09 07:40:31 +03:00
Ariel Mashraki
9090c103be entc/gen: add edge method for getting mutation-remove in templates 2021-04-08 15:56:11 +03:00
Ariel Mashraki
bd246f28dc doc/md: quote html tags (fix latest change) #1435 2021-04-07 18:17:11 +03:00
mori yuta
a8b0820a33 Add important guidelines for translation (#1434)
doc/md/translation: adding guidance on common pitfalls
2021-04-07 17:53:00 +03:00
Rotem Tamir
be1b8fd8a3 doc/md/faq: document how to store protobuf objects in a blob column. Fixes #1422 2021-04-07 14:10:01 +03:00
Ariel Mashraki
2cc76e2470 .github/cd: daily pushes for entgo.io website (#1430)
* .github/cd: daily pushes for entgo.io website

Every day at 9:00 AM UTC (12PM in Jerusalem).

* ignore deployments on weekend
2021-04-07 12:20:27 +03:00
Ariel Mashraki
2cc1c628dc schema/field: use actual go type in generated interfaces (#1428) 2021-04-07 09:53:44 +03:00
dependabot[bot]
3fe9d1081e build(deps): bump golangci/golangci-lint-action from v2.5.1 to v2.5.2 (#1425)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from v2.5.1 to v2.5.2.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2.5.1...5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 12:09:06 +03:00
Ariel Mashraki
f3f03e1edd schema/edge: add support for configuring foreign-key symbols
Fixed #1423
2021-04-04 15:27:57 +03:00
Ariel Mashraki
745afde770 dialect/entsql: add support for column default using annotation
Fixed #1033
2021-04-03 21:53:56 +03:00
Ariel Mashraki
3db3f5fd1a doc/website: add locale dropdown menu to navbar 2021-03-31 12:54:15 +03:00
Ariel Mashraki
e4b7a28ceb ci: delete circleci config 2021-03-31 09:36:57 +03:00
Ariel Mashraki
a1ad70c685 dialect/sql/schema: json column migration for mariadb10.3.13
See https://github.com/ent/ent/issues/1395\#issuecomment-809420881
Fixed #1395
2021-03-29 22:34:58 +03:00
Rotem Tamir
4dbe434ce6 doc/md - contributing translations guide 2021-03-29 17:01:03 +03:00
Ariel Mashraki
c9f66cd3b4 doc/md: custom ordering example 2021-03-29 15:29:45 +03:00
Ariel Mashraki
21989f4aa4 entc/gen: chagne column-check error format 2021-03-29 15:29:45 +03:00
Ariel Mashraki
f12ef91829 entc/gen: privatize table columns check 2021-03-29 14:35:38 +03:00
Rotem Tamir
07570c5e3f Merge pull request #1398 from rotemtam/feat/cta-grpc-post
doc/website/blog - add a call to action on the bottom of the gRPC post
2021-03-27 13:40:07 +03:00
Rotem Tamir
beb97cbd01 doc/website/blog - add a call to action on the bottom of the gRPC post 2021-03-27 13:32:32 +03:00
chris guo
1be783632f chore: update predicates docs about how to use predicates in subquery 2021-03-25 20:51:22 +02:00
Ariel Mashraki
2ba7d8e7a2 doc/website: small css changes to navbar 2021-03-25 16:37:40 +02:00
Ariel Mashraki
0c05e2abb5 doc/website: change crowdin file 2021-03-25 16:20:42 +02:00
Ariel Mashraki
4e7e975603 github/cd: pass crowdin token 2021-03-25 16:19:49 +02:00
Rotem Tamir
5abe74d752 Merge pull request #1391 from rotemtam/feat/enable-crowdin-translation
doc/website - add i18n support + crowdin sync
2021-03-25 16:13:15 +02:00
Rotem Tamir
eb77948ca2 enable crowdin translation 2021-03-25 14:01:27 +02:00
Ariel Mashraki
2d09c8f846 entc/gen/features/multischema: pass schema to count query (#1390)
Fixed #1385
2021-03-25 13:48:32 +02:00
Ariel Mashraki
d62b810096 doc/website: add link to slack channel (#1389) 2021-03-25 12:24:44 +02:00
Ariel Mashraki
e0117c7b40 doc/website/blog: fix image url (#1388) 2021-03-25 11:14:13 +02:00
Ariel Mashraki
0b53a83ca2 doc/website: navbar responsive alignment 2021-03-25 08:48:13 +02:00
Ariel Mashraki
d9f6c3ed9c doc/website: fix mobile/responsive formatting (#1387) 2021-03-25 08:43:29 +02:00
Ariel Mashraki
f83bb981ea doc/website: minor css changes to homepage (#1386)
* WIP - migrating entgo.io to docosaurus v2

* organizing pages a bit to be better suited for v2 site structure

* doc/website: finish migration to docusaurus v2

* doc/website: minor css changes to homepage

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-03-24 22:02:25 +02:00
Ariel Mashraki
d9faf21e05 doc/website: migration to docosaurus v2 (#1384)
* WIP - migrating entgo.io to docosaurus v2

* organizing pages a bit to be better suited for v2 site structure

* doc/website: finish migration to docusaurus v2

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-03-24 21:48:30 +02:00