You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/upgrading/v0.15.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,31 @@ use Backpex.LiveResource,
55
55
layout:&MyAppWeb.admin/1
56
56
```
57
57
58
-
## Resource.update/6 has been changed
58
+
## Resource and adapter functions have been updated
59
59
60
-
We no longer pass the `fields` to `Resource.update/6`. Therefore, the arity of this functions has changed to `Backpex.Resource.update/5`. This aligns the function `insert` and `update` of the Resource module.
60
+
We've updated some functions in `Backpex.Resource` and the adapter modules (`Backpex.Adapters.Ecto` and `Backpex.Adapters.Ash`) to include the fields as an additional parameter.
61
+
62
+
The following functions are affected:
63
+
64
+
`Backpex.Resource`:
65
+
-`list/3` -> `Backpex.Resource.list/4`
66
+
-`count/3` -> `Backpex.Resource.count/4`
67
+
-`get/3` -> `Backpex.Resource.get/4`
68
+
-`get!/3` -> `Backpex.Resource.get!/4`
69
+
70
+
`Backpex.Adapter` (including `Backpex.Adapters.Ecto` and `Backpex.Adapters.Ash`):
0 commit comments