Project

Profile

Help

Issue #3232

closed

As a user, I should be told what I have just uploaded

Added by mihai.ibanescu@gmail.com over 6 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
2.15.1
Target Release - Docker:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

It is helpful to know the unit_key data for the manifest that was uploaded
in order to facilitate further processing.

Typically, in an automated workflow, a docker image upload is immediately
followed by an image tag, and the digest is needed in that case.
The importer's upload_unit does not return any information about what got uploaded:

return {'success_flag': True, 'summary': '', 'details': {}}

The Debian and Windows plugins do this:

        unit = unit.save_and_associate(file_path, repo)
        return dict(success_flag=True, summary="",
                    details=dict(
                        unit=dict(unit_key=unit.unit_key,
                                  metadata=unit.all_properties)))

which seems more useful.

A somewhat similar pattern exists in the core's unit_association.py, where information about units that were successfully associated is present under the task's ["details"]["units_successful"]

Also available in: Atom PDF