Actions
Bug #27370
closedPulp3 - Make progress presenter extensible for all content types
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