Project

General

Profile

Actions

Feature #4151

closed

Add STI to reports and allow for registering new report types

Added by Marek Hulán over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Reporting
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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)


Related issues 6 (1 open5 closed)

Related to Foreman - Feature #8488: Make ReportImporters a registerable service like FactImportersNew11/24/2014Actions
Related to Foreman - Feature #10782: Add global status for hostsClosedMarek Hulán06/11/2015Actions
Related to Foreman - Refactor #12344: Use Rails 4 update_all syntax migrationsClosedDaniel Lobato Garcia10/29/2015Actions
Related to Foreman - Bug #13920: Unable to view config reports in forman 1.11 rc1 as non admin userClosedDominic Cleal02/26/2016Actions
Related to OpenSCAP - Bug #14478: compliance report searches failsClosedShlomi Zadok04/05/2016Actions
Related to Foreman - Refactor #28594: drop reports api endpointClosedTomer BriskerActions
Actions

Also available in: Atom PDF