-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use foreign_key on the base model's name if ems_events association do…
…esn't exist EmsCluster#ems_event_filter_column was correctly ems_cluster_id, subclasses had cluster_id as the column. Fix PhysicalSwitch to correctly implement ems_events association. Previously, it assumed event_streams association was the same as ems_events just because all event_streams for that model have always been ems events. Instead, we implement event_streams association so we can correctly detect the foreign key in ems_event_filter_column. Fix tests to test descendant classes so we can recreate and verify the fix for EmsCluster base class and subclasses. Add HostAggregate and hysicalServerProfile to pending list as they include the mixin but don't implement the interface (event_where_clause, _id column, no ems_events association).
- Loading branch information
Showing
6 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters