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 almost 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 #1

Updated by Marek Hulán about 10 years ago

This is becoming a blocker for foreman_abrt plugin soon.

Actions #2

Updated by Anonymous about 10 years ago

  • Target version set to 1.9.0
Actions #3

Updated by Anonymous about 10 years ago

  • Target version deleted (1.9.0)
Actions #4

Updated by Tomáš Strachota almost 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
Actions #5

Updated by Tomáš Strachota almost 9 years ago

  • Related to Feature #8488: Make ReportImporters a registerable service like FactImporters added
Actions #6

Updated by Tomáš Strachota almost 9 years ago

Actions #7

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2530 added
  • Pull request deleted ()
Actions #8

Updated by Marek Hulán over 8 years ago

  • Pull request https://github.com/theforeman/foreman/pull/2750 added
  • Pull request deleted (https://github.com/theforeman/foreman/pull/2530)
Actions #9

Updated by Tomáš Strachota over 8 years ago

  • Assignee changed from Tomáš Strachota to Shlomi Zadok

Switching the owner to Shlomi since he has actually been implementing it.

Actions #10

Updated by Ondřej Pražák over 8 years ago

  • Blocks Refactor #12261: host_id references host(id) constraint on reports STI table is too restrictive for ForemanOpenscap added
Actions #11

Updated by Dominic Cleal over 8 years ago

  • Blocks deleted (Refactor #12261: host_id references host(id) constraint on reports STI table is too restrictive for ForemanOpenscap)
Actions #12

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 71
Actions #13

Updated by Shlomi Zadok over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #14

Updated by Dominic Cleal over 8 years ago

  • Related to Refactor #12344: Use Rails 4 update_all syntax migrations added
Actions #15

Updated by Dominic Cleal about 8 years ago

  • Related to Bug #13920: Unable to view config reports in forman 1.11 rc1 as non admin user added
Actions #16

Updated by Marek Hulán about 8 years ago

  • Related to Bug #14478: compliance report searches fails added
Actions #17

Updated by Tomer Brisker over 4 years ago

Actions

Also available in: Atom PDF