profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jbcaprell/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jonathan Caprell jbcaprell Lancaster, Pennsylvania https://diacritical.net/

jbcaprell/absinthe_tutorial 0

Absinthe v1.4 Tutorial Code

issue closedelixir-ecto/ecto

Update `Ecto.Changeset.traverse_errors/2` example.

https://github.com/elixir-ecto/ecto/blob/e9dead98b1fe2f20358faee48b7fe00f17a71bc2/lib/ecto/changeset.ex#L2923-L2924

The DataCase.errors_on/1 function provided to a newly generated phoenix_ecto project used something similar to the existing example, but some changeset errors (maybe most commonly unsafe_validate_unique/4) would cause (ArgumentError) cannot convert the given list to a string. The relevant discussion is under: phoenixframework/phoenix#3204.

These lines should maybe instead be something like:

       ...>   Regex.replace(~r"%{(\w+)}", msg, fn _, key ->
       ...>     opts |> Keyword.get(String.to_existing_atom(key), key) |> to_string()

closed time in a month

jbcaprell

issue commentelixir-ecto/ecto

Update `Ecto.Changeset.traverse_errors/2` example.

Addressed by #3683.

jbcaprell

comment created time in a month

PR opened elixir-ecto/ecto

Update `Ecto.Changeset.traverse_errors/2` documentation.

Addresses #3682.

+2 -2

0 comment

1 changed file

pr created time in a month

push eventjbcaprell/ecto

Jonathan Caprell

commit sha edc7b8702f25ad5703311481ba3e5dd569b32b8a

Update `Ecto.Changeset.traverse_errors/2` documentation.

view details

push time in a month

fork jbcaprell/ecto

A toolkit for data mapping and language integrated query.

https://hexdocs.pm/ecto

fork in a month

push eventjbcaprell/ecto

Jonathan Caprell

commit sha 86363af8a77c3706ca2e048716fce30b58c62eae

Update `Ecto.Changeset.traverse_errors/2` example

view details

Jonathan Caprell

commit sha 2c6319fae248a404ca2346af96437fbf7e74cc2e

Merge pull request #1 from jbcaprell/traverse_errors Update `Ecto.Changeset.traverse_errors/2` documentation

view details

push time in a month

PR merged jbcaprell/ecto

Update `Ecto.Changeset.traverse_errors/2` documentation

This updates the function example similarly to the update that addressed phoenixframework/phoenix#3204.

+2 -2

0 comment

1 changed file

jbcaprell

pr closed time in a month

PR opened jbcaprell/ecto

Update `Ecto.Changeset.traverse_errors/2` documentation

This updates the function example similarly to the update that addressed phoenixframework/phoenix#3204.

+2 -2

0 comment

1 changed file

pr created time in a month

create barnchjbcaprell/ecto

branch : traverse_errors

created branch time in a month

fork jbcaprell/ecto

A toolkit for data mapping and language integrated query.

https://hexdocs.pm/ecto

fork in a month

create barnchjbcaprell/ecto

branch : main

created branch time in a month

created repositoryjbcaprell/ecto

created time in a month

issue openedelixir-ecto/ecto

Update `Ecto.Changeset.traverse_errors/2` example.

https://github.com/elixir-ecto/ecto/blob/e9dead98b1fe2f20358faee48b7fe00f17a71bc2/lib/ecto/changeset.ex#L2923-L2924

The DataCase.errors_on/1 function provided to a newly generated phoenix_ecto project used something similar to the existing example, but some changeset errors (maybe most commonly unsafe_validate_unique/4) would cause (ArgumentError) cannot convert the given list to a string. The relevant discussion is under: phoenixframework/phoenix#3204.

These lines should maybe instead be something like:

    Regex.replace(~r"%{(\w+)}", msg, fn _, key ->
      opts |> Keyword.get(String.to_existing_atom(key), key) |> to_string()

created time in a month

create barnchdiacritical/diacritical

branch : main

created branch time in a month

created repositorydiacritical/diacritical

created time in a month

pull request commentabsinthe-graphql/absinthe_tutorial

Update `MixProject` dependencies list [:absinthe]

If this is helpful, I’m happy to make the associated changes in the absinthe tutorial. They’d be almost entirely formatting changes, and very simple to make.

jbcaprell

comment created time in 2 months

PR opened absinthe-graphql/absinthe_tutorial

Update `MixProject` dependencies list [:absinthe]

In practice, this builds the tutorial as an absinthe 1.6 project upon a fresh Phoenix 1.5.9 project generation, and formats the project with mix format. All the queries listed in the absinthe tutorial resolve as they ever did.

+397 -509

0 comment

40 changed files

pr created time in 2 months

push eventjbcaprell/absinthe_tutorial

Jonathan Caprell

commit sha 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a

Update `MixProject` dependencies list [:absinthe]

view details

push time in 2 months