Simon

Results 215 comments of Simon

Displaying the tag names under each items: ![image](https://user-images.githubusercontent.com/6057298/192784691-8b94f1b9-2f67-4a6e-bb05-81d59ec95ec7.png) The filter are clickable and filter the list of items matching the tag name I need now to finish to update the...

The custom field `Encrypted` is defined in the following file: https://github.com/dwyl/fields/blob/master/lib/encrypted.ex When a token is saved the the `dump` function is called: ```elixir def dump(value) do ciphertext = value |>...

Yes I'm looking at the [Ecto.Type](https://hexdocs.pm/ecto/Ecto.Type.html) documentation to see if there is a way to pass the `key_id` from our application to the Ecto logic (`dump` and `load`) functions. Hopefully...

I've testing in `iex` getting back the tokens saved, it works but because the load function assume the key is the latest one agian: ```elixir # as above but *asumes*...

My first idea to be able to save the token and the index of the key is for our custom type `Encrypted` to save a tupe or a map, eg:...

I was also wondering if a custom ecto type could save data in two different fields (ie token, key_id) however it doesn't seem possible: https://elixirforum.com/t/ecto-type-for-two-fields-in-database/4914/4 Another solution mentioned on the...

Reading again the phoenix-ecto-encryption-example: https://github.com/dwyl/phoenix-ecto-encryption-example#5-use-encryptedfield-ecto-type-in-user-schema ![image](https://user-images.githubusercontent.com/6057298/69809820-71ef2300-11e2-11ea-9e68-ac3889861e89.png) ![image](https://user-images.githubusercontent.com/6057298/69809839-7c112180-11e2-11ea-86a7-ed88fdf63a99.png) We can see that the `dump` function is called inside in the changeset. I assumed that the `dump` and `load` functions were called...

So we could use `dump\2` in the `changeset` function to encrypt the token with a specific key (```dump(token, key_id)```), this means that the required callback `dump/1` define by the behaviour...

This timer feature sounds good to me. I have a few questions link to the timer which might help us later on to scope the feature of the application: -...

# Add new Elm project to Phoenix - Make sure you have Elm installed: https://guide.elm-lang.org/install/ - Create a new elm project in the assert folder `cd assets & elm init`...