Feature #4151
closed
Add STI to reports and allow for registering new report types
Added by Marek Hulán almost 11 years ago.
Updated over 6 years ago.
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)
This is becoming a blocker for foreman_abrt plugin soon.
- Target version set to 1.9.0
- Target version deleted (
1.9.0)
- 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
- Related to Feature #8488: Make ReportImporters a registerable service like FactImporters added
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2530 added
- Pull request deleted (
)
- Pull request https://github.com/theforeman/foreman/pull/2750 added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/2530)
- Assignee changed from Tomáš Strachota to Shlomi Zadok
Switching the owner to Shlomi since he has actually been implementing it.
- Blocks Refactor #12261: host_id references host(id) constraint on reports STI table is too restrictive for ForemanOpenscap added
- Blocks deleted (Refactor #12261: host_id references host(id) constraint on reports STI table is too restrictive for ForemanOpenscap)
- Translation missing: en.field_release set to 71
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Related to Bug #13920: Unable to view config reports in forman 1.11 rc1 as non admin user added
- Related to Bug #14478: compliance report searches fails added
Also available in: Atom
PDF