Project

Profile

Help

Story #5184

closed

Provide identifier within sync task progress_reports

Added by jsherril@redhat.com over 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Katello
Sprint:
Sprint 60
Quarter:

Description

Problem

Currently the progress reports on a sync task look like this:

      progress_reports:
      - message: Downloading Metadata
        state: running
        total: 10
        done: 5
        suffix:
      - message: Downloading Artifacts
        state: running
        total: 10
        done: 5
        suffix:
      - message: Associating Content
        state: running
        total: 10
        done: 5
        suffix:

when trying to parse these, we have to use the 'message' field which is english text. This text is internationalized and could be different system, to system, or if a user changes their language settings post installation.

It would be better if there was some 'key' that we could use such as 'associate.content' that we could be assured would never change or be affected by internationalization.

Solution

Add a required field to ProgressReport named code that stores a 36 character long string. The intent of this string is that it identifies that type of progress report. It's different than the pk of the progress report which is different between two runs of the same task. This ID would be the same for all runs of that task code. It would not be internationalized.

36 is chosen in case the user wants to store UUIDs in this field.

Actions #1

Updated by bmbouter over 5 years ago

  • Tracker changed from Issue to Story
  • Subject changed from provide identifier within sync task progress_reports to Provide identifier within sync task progress_reports
  • Description updated (diff)
  • % Done set to 0
Actions #2

Updated by bmbouter over 5 years ago

  • Description updated (diff)

Updating to code after some IRC discussion w/ @daviddavis

Actions #3

Updated by daviddavis over 5 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
Actions #4

Updated by rchan over 5 years ago

  • Sprint set to Sprint 57
Actions #5

Updated by rchan over 5 years ago

  • Sprint changed from Sprint 57 to Sprint 58
Actions #6

Updated by fao89 over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #8

Updated by rchan over 5 years ago

  • Sprint changed from Sprint 58 to Sprint 59
Actions #9

Updated by Anonymous over 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #10

Updated by daviddavis over 5 years ago

  • Status changed from MODIFIED to POST
Actions #11

Updated by rchan about 5 years ago

  • Sprint changed from Sprint 59 to Sprint 60
Actions #12

Updated by fao89 about 5 years ago

  • Status changed from POST to MODIFIED
Actions #13

Updated by bmbouter about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #14

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #15

Updated by ggainey over 4 years ago

  • Tags Katello added
  • Tags deleted (Katello-P3)
Actions #16

Updated by bmbouter over 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF