{"record":{"id":"9e47c5a37e2bef90","repo":"theforeman/foreman","slug":"unsupported-report-status-format","errorCode":null,"errorMessage":"Unsupported report status format","messagePattern":"Unsupported report status format","errorType":"validation","errorClass":"Foreman::Exception","httpStatus":null,"severity":"error","filePath":"app/models/config_report.rb","lineNumber":64,"sourceCode":"  def self.import(report, proxy_id = nil)\n    ConfigReportImporter.import(report, proxy_id)\n  end\n\n  # puppet report status table column name\n  def self.report_status_column\n    \"status\"\n  end\n\n  # a method that save the report values (e.g. values from METRIC)\n  # it is not supported to edit status values after it has been written once.\n  def status=(st)\n    s = case st\n          when Integer\n            st\n          when Hash\n            ConfigReportStatusCalculator.new(:counters => st).calculate\n          else\n            raise Foreman::Exception(N_('Unsupported report status format'))\n        end\n    self[:status] = s\n  end\n\n  def config_retrieval\n    metrics[:time][:config_retrieval].round(2) rescue 0\n  end\n\n  def runtime\n    (metrics[:time][:total] || metrics[:time].values.sum).round(2) rescue 0\n  end\n\n  # returns a hash of hosts and their recent reports metric counts which have values\n  # e.g. non zero metrics.\n  # first argument is time range, everything afterwards is a host list.\n  # TODO: improve SQL query (so its not N+1 queries)\n  def self.summarise(time = 1.day.ago, *hosts)\n    list = {}","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/models/config_report.rb#L46-L82","documentation":"Error \"Unsupported report status format\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/models/config_report.rb:64 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}