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
Add default order by id to one_to_many and many_to_many associations
Ensures deterministic ordering for all association queries by adding
a default `order: :id` to the vcap_relations plugin. This fixes
sporadic test failures in parallel test runs where database query
order was non-deterministic.
Explicit order options still override this default, and callers can
use `.order(:field)` on the dataset to override as needed.
Associations with a block (custom dataset transformation) do not get
the default order, as the transformation may not be compatible with
ordering by id.
Also removes now-redundant explicit `order: :id` from two models and
fixes orgs_visibility to order by service_plan_id (the only column
in its select list).
0 commit comments