Actions
Bug #21037
closed"Invalid single-table inheritance type: Host::Discovered is not a subclass of Host::Managed" caused by auditing host
Description
In the host auditing, we're setting the auditable_class
to Host
. And in the Host
, we're redirecting
all the methods to the Host::Managed
. This causes issues, when converting the host from discovered
to managed and creating an audit record of it.
Reproducer (having a discovered host).
host2 = host.become(Host::Managed) host2.type = "Host::Managed" host2.save
Updated by The Foreman Bot about 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4863 added
Updated by The Foreman Bot about 7 years ago
- Pull request https://github.com/theforeman/foreman/pull/4864 added
Updated by Anonymous about 7 years ago
- Pull request deleted (
https://github.com/theforeman/foreman/pull/4863)
Updated by Ivan Necas about 7 years ago
- Related to Bug #20972: STI issues with Host::Discovered on Rails 5 added
Updated by Ivan Necas about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset b1438ff067eebf955e1c938c12a23ba8609ba4f0.
Updated by Marek Hulán about 7 years ago
- Translation missing: en.field_release set to 296
Updated by Lukas Zapletal about 7 years ago
- Translation missing: en.field_release changed from 296 to 240
I actually need this in 1.16 if Rails5 is part of that branch, this is discovery blocker.
Updated by Lukas Zapletal about 7 years ago
- Translation missing: en.field_release changed from 240 to 296
Ok Rails5 is not part of 1.16.
Updated by Lukas Zapletal about 6 years ago
- Related to Bug #25207: Invalid single-table inheritance type: Host::Discovered is not a subclass of Host::Managed added
Updated by Lukas Zapletal about 6 years ago
- Triaged set to No
Hello, we have an initial version of a patch that solves this. It's one liner, please apply it, restart and get back to me with feedback:
Updated by Lukas Zapletal almost 6 years ago
- Related to Bug #25556: 'Discovery manager' role broken added
Actions