Does attribute and action order matter? and Upsert fields?
Given Declaration
The above gives me the warning:
warning: the Inspect protocol has already been consolidated, an implementation for Btwb.Koohbew.Event has no effect. If you want to implement protocols after compilation or during tests, check the "Consolidation" section in the Protocol module documentationBut if I move identities and actions to above the attributes, then no warning... Given: The above gives a SQL query with
DO UPDATE SET
on all fields
Am I doing something wrong? Do actions have to be above attributes?4 Replies
🤔 the order of DSL sections should never matter
That protocol consolidation warning can generally be ignored
but, for the actual issue, you are not doing anything wrong
that is a bug that I fixed yesterday in main
I'm pushing a release now
great! I'll confirm bug fix after the release. thanks!
1.3.52
of ash_postgres
is out w/ the fixWorks!
1. Unlisted fields no longer show up in the SQL's "update set"
2.
upsert_identity
required at least 1 element in the list, so only used the id
(identity) to effectively no-op the operation.
thanks!