This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#8316) Ruby sorting for ResourceEvents.
While most of our sorting should go on in the database, there is a complex "natural" order for ResourceEvents: the 'ensure' property comes first, then everything else should be alphabetical. Since the set of events for a resource_status is usually handled distinctly, and is always small in that context, it can make sense to handle that at the Ruby level. It is also quite complex to push that logic down into the database, since SQL does not easily express the logic required. Reviewed-By: Pieter van de Bruggen <[email protected]>
- Loading branch information