Project

General

Profile

Actions

Bug #27370

closed

Pulp3 - Make progress presenter extensible for all content types

Added by Samir Jha over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Pulp3 task progress report is in the format below:

[
  {
    "Ansible": {
      "_href": "/pulp/api/v3/tasks/1a5242eb-1a50-4024-bf23-9aa4babaef63/",
      "_created": "2019-07-11T17:16:22.135859Z",
      "state": "completed",
      "name": "pulp_ansible.app.tasks.collections.sync",
      "started_at": "2019-07-11T17:16:22.646600Z",
      "finished_at": "2019-07-11T17:16:24.813053Z",
      "non_fatal_errors": [],
      "error": null,
      "worker": "/pulp/api/v3/workers/6181dd2b-8dd6-4110-8b45-f809a148f8d6/",
      "parent": null,
      "spawned_tasks": [],
      "progress_reports": [
        {
          "message": "Importing Collections",
          "state": "completed",
          "total": 1,
          "done": 1,
          "suffix": null
        },
        {
          "message": "Downloading Collections",
          "state": "completed",
          "total": 1,
          "done": 1,
          "suffix": null
        }
      ],
      "created_resources": [
        "/pulp/api/v3/repositories/96658291-4b2d-4bb5-9b98-f8c04052dcdd/versions/5/" 
      ]
    }
  },
  {
    "File": {
      "_href": "/pulp/api/v3/tasks/247ef5ac-e0cf-4180-861b-2855f1d76045/",
      "_created": "2019-07-11T16:45:08.459860Z",
      "state": "completed",
      "name": "pulp_file.app.tasks.synchronizing.synchronize",
      "started_at": "2019-07-11T16:45:08.720729Z",
      "finished_at": "2019-07-11T16:45:09.294850Z",
      "non_fatal_errors": [],
      "error": null,
      "worker": "/pulp/api/v3/workers/6181dd2b-8dd6-4110-8b45-f809a148f8d6/",
      "parent": null,
      "spawned_tasks": [],
      "progress_reports": [
        {
          "message": "Downloading Metadata",
          "state": "completed",
          "total": 1,
          "done": 1,
          "suffix": null
        },
        {
          "message": "Downloading Artifacts",
          "state": "completed",
          "total": null,
          "done": 0,
          "suffix": null
        },
        {
          "message": "Associating Content",
          "state": "completed",
          "total": 1,
          "done": 1,
          "suffix": null
        },
        {
          "message": "Parsing Metadata Lines",
          "state": "completed",
          "total": 3,
          "done": 3,
          "suffix": null
        }
      ],
      "created_resources": [
        "/pulp/api/v3/repositories/6003054e-3c15-40b8-9752-8d93359c1d85/versions/6/" 
      ]
    }
  }
]

We need to update the current progress presenter logic to work for all content types.

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8223 added
Actions #2

Updated by John Mitsch over 5 years ago

  • Target version set to Katello 3.13.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot over 5 years ago

  • Fixed in Releases Katello 3.14.0 added
Actions #4

Updated by Samir Jha over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF