From f38bc85a39a6e67bcd339c1c5a12a8a46971d6d3 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Fri, 5 Apr 2024 06:32:59 -0400 Subject: [PATCH] docs: add FilterCheck changes to upgrade guide closes #981 --- documentation/how_to/upgrade.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/how_to/upgrade.md b/documentation/how_to/upgrade.md index d4cf1612..66534d14 100644 --- a/documentation/how_to/upgrade.md +++ b/documentation/how_to/upgrade.md @@ -67,6 +67,10 @@ If you do not have any expression calculations that accept arguments, you likely ### Module/function changes +#### Ash.Policy.FilterCheck and Ash.Policy.FilterCheckWithContext are combined + +`Ash.Policy.FilterCheck` and `Ash.Policy.FilterCheckWithContext` have been combined into `Ash.Policy.FilterCheck`. If you have any usages of `FilterCheckWithContext`, you'll need to change that to `FilterCheck`. If you have usages of `FilterCheck`, you will need to add the `context` arguments to the callbacks. Compiler warnings will show you what callbacks mismatch. + #### Ash.Filter `Ash.Filter.parse/5` is now `Ash.Filter.parse/3`. `Ash.Filter.parse_input/5` is now `Ash.Filter.parse_input/2` The third and fourth optional arguments are unnecessary and were previously ignored, and the fifth argument is not necessary for `parse_input`.