Project

Profile

Help

Story #4827

Add artifact sha details to the content API

Added by sajha 4 months ago. Updated 4 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Katello-P1
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Target Release - File:
Sprint:
Sprint 53

Description

It would be helpful to see artifact sha details on the content details/list results to avoid an additional call to artifacts API to fetch sha details.


Related issues

Related to File Support - Test #5274: Test - Read artifact sha details from the content API NEW Actions

History

#1 Updated by daviddavis 4 months ago

  • Tags Katello-P1 added

Talked to Katello and they said this is a P1.

#2 Updated by amacdona@redhat.com 4 months ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Sprint set to Sprint 53

#3 Updated by daviddavis 4 months ago

  • Tags Easy Fix added

#4 Updated by daviddavis 4 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#5 Updated by daviddavis 4 months ago

Should the checksums just be fields on the serializer or should I do something like a checksum dictionary mapping checksum type to its value:

"checksums":  {
   "sha256": "abcdef..." 
    ...
}

#6 Updated by bmbouter 4 months ago

+1 to the "checksum" key which contains keys of the algorithm name (as you gave an example of)

#7 Updated by daviddavis 4 months ago

After talking it over on IRC, we decided to just include the checksum fields on the file. For example:

        {
            "_artifact": "/pulp/api/v3/artifacts/f523664e-d291-427b-b260-198598c42ae0/",
            "_created": "2019-05-22T21:09:31.343339Z",
            "_href": "/pulp/api/v3/content/file/files/2b347487-c5f9-48bd-9a15-aaa79fae851a/",
            "_type": "file.file",
            "md5": "f4e4ee897387d9061e5d6a17d3991ff3",
            "relative_path": "test.iso",
            "sha1": "08e282883a0f20b24414e9e5e1f21aedba008ff2",
            "sha224": "f80f493561e579352ce24beeb9a2c71d1f1a8f7525782c9ba8e1f244",
            "sha256": "582f1729b0c15eacbb7d02a553c0a96a39f817135c15ac4190aef96e45c4b65d",
            "sha384": "ad3e4cb414ee360477c54d0db3369497fb2b8858f6328c792112f54327b394716c2e5a86caa3989960e4f27ec274a49f",
            "sha512": "4f3ca80d512fa86af762a1883a31b6a47da825368a42bfcadeb824e849f76202ebe9529e5be1a911ec4a92b5da3f4eecce95cd6a5d2b5cda3b5dd
ccf5aadf5c4" 
        }

#9 Updated by daviddavis 4 months ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#10 Updated by kersom about 1 month ago

  • Related to Test #5274: Test - Read artifact sha details from the content API added

Please register to edit this issue

Also available in: Atom PDF