Feature #4151
closedAdd STI to reports and allow for registering new report types
Description
We need to support different report types for OpenScap, ABRT and other future reporting tools.
This means there must be a way to register new report types and importers from plugin (exactly the same we have for facts now). Reports will probably only differ in metrics and their own statuses, therefore we should make metrics optional and mapping to global status should be different per specific status.
There should be a generic API for uploading reports. Common things for all types are:
- message (text, status, level)
- reported_at
- status (custom hash of format "status": n, each type different statuses)
User stories:
- As a plugin developer I want to register new report type.
- As a plugin developer I want to register new report importer for a given type.
- As a user I want to search hosts based on report type and its specific status.
- As a user I want to have be able to set different report permissions per report types. (implies report STI)
Updated by Marek Hulán almost 11 years ago
This is becoming a blocker for foreman_abrt plugin soon.
Updated by Tomáš Strachota over 9 years ago
- Subject changed from Add STI to reports to Add STI to reports and allow for registering new report types
- Description updated (diff)
- Assignee set to Tomáš Strachota
Updated by Tomáš Strachota over 9 years ago
- Related to Feature #8488: Make ReportImporters a registerable service like FactImporters added
Updated by Tomáš Strachota over 9 years ago
- Related to Feature #10782: Add global status for hosts added
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2530 added
- Pull request deleted (
)
Updated by Marek Hulán about 9 years ago
- Pull request https://github.com/theforeman/foreman/pull/2750 added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/2530)
Updated by Tomáš Strachota about 9 years ago
- Assignee changed from Tomáš Strachota to Shlomi Zadok
Switching the owner to Shlomi since he has actually been implementing it.
Updated by Ondřej Pražák about 9 years ago
- Blocks Refactor #12261: host_id references host(id) constraint on reports STI table is too restrictive for ForemanOpenscap added
Updated by Dominic Cleal about 9 years ago
- Blocks deleted (Refactor #12261: host_id references host(id) constraint on reports STI table is too restrictive for ForemanOpenscap)
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
Updated by Shlomi Zadok about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset e8d6d2d6a1994dbaaaf813beeeb4e9693a16ee0b.
Updated by Dominic Cleal about 9 years ago
- Related to Refactor #12344: Use Rails 4 update_all syntax migrations added
Updated by Dominic Cleal almost 9 years ago
- Related to Bug #13920: Unable to view config reports in forman 1.11 rc1 as non admin user added
Updated by Marek Hulán over 8 years ago
- Related to Bug #14478: compliance report searches fails added
Updated by Tomer Brisker almost 5 years ago
- Related to Refactor #28594: drop reports api endpoint added