Skip to content

Commit

Permalink
improve upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Nov 11, 2023
1 parent 306bae6 commit c2de2df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ The newly implemented dynamic casting of filter values could impact your code:
filter value must be convertible into a string via `to_string/1`. If
`ecto_type` is set to a custom Ecto type that casts values into a struct, the
`String.Chars` protocol must be implemented for that struct.
- If you use the result of `Flop.Phoenix.to_query/2` in a `~p` sigil for
verified routes or in a route helper function, Phoenix converts filter values
into a string using the `Phoenix.Param` protocol. If you use `Date`,
`DateTime`, `NaiveDateTime`, `Time` filters, or filters using custom structs,
you need to implement that protocol for these structs in your application.

Please review the newly added "Ecto type option" section in the `Flop.Schema`
module documentation.
Expand Down

0 comments on commit c2de2df

Please sign in to comment.