Closed Bug 1809728 Opened 2 years ago Closed 2 years ago

redo processor notes so it only has notes from most recent processing

Categories

(Socorro :: Processor, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

Attachments

(1 file)

Currently, the processor_notes field is a string delimited by \n with processing passes denoted by a note like:

>>> Start processing: {start_time} ({self.host_id})

The processor notes are indexed in Elasticsearch.

This creates a couple of problems:

  1. finding crash reports with a certain item in the notes brings up all the crash reports that have that certain item in any of the processing passes the crash report has undergone; so if you have a bug indicated by a certain item, fix the bug, and reprocess the crash report, it'll continue to show up in searches
  2. the processor notes is a string blob of stuff and we're doing substring searches in it, but it'd be better if it had more structure to it like the collector notes do

I think I want to change it this way:

  1. at the beginning of processing, prepend the existing processor_notes (string) value to processor_history (list of strings)
  2. save notes generated during processing in processor_notes (string)

In this way, Elasticsearch only indexes the notes for the most recent processor pass, but we maintain notes for all passes in the processed crash.

Assignee: nobody → willkg
Status: NEW → ASSIGNED

This was pushed to prod just now in bug #1809927. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: