Commit Graph

1572 Commits

Author SHA1 Message Date
allcontributors[bot]
c88cddaf81 docs: add naormatania as a contributor for code (#2177)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-28 07:58:37 +02:00
Naor Matania
8847a1ac55 dialect/sql/schema: fix migrating Postgres fields with max character varchar custom type (#2162)
* Support migration of varying length varchar postgres

* update type

* fix type

* improve type

* remove not needed change

* fix failing test

* add inspect test

* add more tests

* go fmt

* fix pr comment
2021-11-28 07:57:57 +02:00
Ariel Mashraki
6372263b99 entc/gen: add support for subtracting values from unsgined fields (#2169) 2021-11-25 12:37:43 +02:00
Ariel Mashraki
b99ce66f40 dialect/sql: calling Update.Add after Update.Set should append expression (#2168) 2021-11-25 12:03:12 +02:00
dependabot[bot]
b3ab990952 build(deps): bump actions/cache from 2.1.6 to 2.1.7 (#2158)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-25 10:30:22 +02:00
Aleksandr Razumov
990684c6c8 doc: use go get -d for installation (#2165)
Installing executables with 'go get' in module
mode is deprecated.
2021-11-25 09:47:39 +02:00
Andy Day
b1e76d1a05 entc/gen: fix entql generation for ID types of Bytes, etc. (#2157)
* Fix entql generation for ID types of Bytes, etc.

I was running into an issue trying to use a Bytes fieldas the ID field in a Schema, and it appears there is an currently an issue with using a Bytes field as the ID field in the entql codegen (it was outputing a function . I belive this should fix it (I tested this by adding the entql flag to the custom id integration test). I wasn't sure if the other cases I added (e.g. an ID field that is json type / time type / etc.) are actually sane ID field types, but if those don't make any sense I can remove some of those from the added conditionals.

* remove redundant line
2021-11-24 13:53:45 +02:00
dependabot[bot]
1ef79a2d78 build(deps): bump aws-actions/configure-aws-credentials (#2160)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1.5.11 to 1.6.0.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1.5.11...v1.6.0)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-24 13:50:25 +02:00
Yoni Davidson
3cb4bc324a doc/hooks: add example for post mutation action (#2161)
* update hooks documentation to a post hook example

* Update doc/md/hooks.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-11-24 13:46:04 +02:00
mattn
2000e1970b website/blog: update 2021-09-10-openapi-generator.md (#2154)
* Update 2021-09-10-openapi-generator.md

* Update doc/website/blog/2021-09-10-openapi-generator.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
2021-11-22 09:29:39 +02:00
Amit Shani
39a3e17e30 doc/website: remove deprecated script (#2152) 2021-11-21 17:07:22 +02:00
Amit Shani
21389f00ef ent/doc: load github buttons from cdnjs (#2151) 2021-11-21 16:10:50 +02:00
Ariel Mashraki
9e74510c09 entc/integration: minor changes for test cases (#2148) 2021-11-19 15:38:49 +02:00
Jeremy Maxey-Vesperman
7a97025ae6 doc/md: fix highlighting in tutorial-grpc-service-generation-options.md (#2146) 2021-11-18 14:53:17 +02:00
Rotem Tamir
2e3aca1b1d doc/md: fmt grpc methods (#2144) 2021-11-17 11:21:46 +02:00
Hila Kashai
6954eb3a18 doc/md: add json string predicates (#2142) 2021-11-16 14:08:27 +02:00
Ariel Mashraki
9e1e8472e9 doc/md: fix predicate examples (#2140) 2021-11-16 13:22:23 +02:00
Rotem Tamir
99ad873ae0 doc/website/blog: adding code screenshot to entoas blogpost (#2139) 2021-11-16 11:52:34 +02:00
allcontributors[bot]
3cbf4d40cd docs: add grevych as a contributor for code (#2138)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-16 10:26:30 +02:00
Ariel Mashraki
6402fc7fe2 Merge pull request #2137 from ent/getoutreach-grevych/sqljson-pattern-matching-predicates
Getoutreach grevych/sqljson pattern matching predicates
2021-11-16 10:21:08 +02:00
Ariel Mashraki
77701d4db6 dialect/sql/sqljson: use the builtin string predciates in sqljson and improve tests 2021-11-16 10:07:34 +02:00
Jeremy Maxey-Vesperman
5645812c73 doc/md: add tutorial for configuring gRPC service method generation 2021-11-16 00:30:33 +02:00
allcontributors[bot]
0a6ca7ee5a docs: add JeremyV2014 as a contributor for doc, code (#2135)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-15 22:59:53 +02:00
MasseElch
ef90b24e23 doc/website/blog: entoas blog post (#2124)
* doc/website/blog: entoas blog post

* doc/website/blog: minor change to footer

* doc/website/blo: apply suggestions from code review

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* doc/website/blog: apply code-review

* doc/website/blog: apply code-review, add image stubs, last minute preparations

* doc/website/blog: correct image sources

* doc/website/blog: last minute changes

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-11-15 21:40:15 +02:00
Amit Shani
c0878f8b62 doc/extension: fix example code (#2132) 2021-11-14 14:19:46 +02:00
Ariel Mashraki
a5fea077a9 dialect/sql: use identifier qualifiers for WHERE clause on upsert
Fixed https://github.com/ent/ent/issues/2126
2021-11-12 23:46:46 +02:00
Ariel Mashraki
12feb4301d doc/predicates: fix json example doc 2021-11-11 20:26:01 +02:00
Ariel Mashraki
7456e95235 doc/predicates: fix json example doc 2021-11-11 20:15:58 +02:00
Ariel Mashraki
0dd7b0d7c3 dialect/sql/sqljson: fix sqlite haskey and add docs 2021-11-11 18:58:28 +02:00
Ariel Mashraki
3ba2b4e173 entc/integration/json: add tests for null literals 2021-11-10 17:24:51 +02:00
Ariel Mashraki
0c5398a11d dialect/sql/sqljson: support comparing values with null literal 2021-11-10 17:24:51 +02:00
Alexander Melentyev
f6c9428978 ci: bump golangci-lint version (#2106) 2021-11-09 20:53:30 +02:00
dependabot[bot]
39eb637a42 build(deps): bump github.com/lib/pq from 1.10.3 to 1.10.4 (#2121)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.3...v1.10.4)

---
updated-dependencies:
- dependency-name: github.com/lib/pq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 19:04:48 +02:00
Ariel Mashraki
ab207c499a entc/gen: minor codegen improvements 2021-11-08 15:56:15 +02:00
Ariel Mashraki
e915765f3b entc/gen: allow scanning nil valuescanner types directly from database
Fixed https://github.com/ent/ent/issues/2116
2021-11-07 23:09:02 +02:00
Ariel Mashraki
dd6c034c2a dialect/sql/schema: support mediumtext field in migration
Fixed https://github.com/ent/ent/issues/2113
2021-11-07 15:37:06 +02:00
Ariel Mashraki
8f88f58713 dialect/sql/sqlgraph: minor refactor changes 2021-11-07 14:01:54 +02:00
allcontributors[bot]
4720063afd docs: add tankbusta as a contributor for doc (#2111) 2021-11-05 13:19:47 +02:00
Christopher Schmitt
657c5c7bad chore: address #2102 by adding mention of Unwrap (#2110) 2021-11-05 10:08:39 +02:00
dependabot[bot]
dffc12d44a build(deps): bump actions/checkout from 2.3.5 to 2.4.0 (#2103)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-04 12:33:46 +02:00
Ariel Mashraki
caa673826a entc/gen/mutation: add IDs method for mutations 2021-11-03 23:16:56 +02:00
Ariel Mashraki
e8e4401d27 dialect/sqltest: use postgres dialect in predicate tests 2021-11-03 13:39:39 +02:00
Ariel Mashraki
02203c3f91 dialect/sqltest: ensure predicates can be reused 2021-11-02 23:01:11 +02:00
Ariel Mashraki
924de2d341 website/blog: minor typo change 2021-11-02 14:35:57 +02:00
Ariel Mashraki
d0118b2da2 website/blog: sync objects in external databases 2021-11-02 14:04:02 +02:00
Alexander Melentyev
147b1f59ae all: small typo fixes (#2095) 2021-11-01 17:47:06 +02:00
Alexander Melentyev
681d03e896 entc/gen: fix DependencyName godoc (#2094) 2021-10-30 22:51:15 +03:00
Ariel Mashraki
51b63c17c0 entc/gen: fix module version extraction when running entc as a package 2021-10-29 09:13:16 +03:00
allcontributors[bot]
59069b7449 docs: add JeremyV2014 as a contributor for code (#2087)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-10-28 21:35:57 +03:00
dependabot[bot]
b308091ed6 build(deps): bump ws from 6.2.1 to 6.2.2 in /doc/website (#2079)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/6.2.1...6.2.2)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:10:48 +03:00