Actions
Bug #32407
closedimport/export metadata.json needs to be trimmed
Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Description
The metadata.json file generated when exporting bunch of repositories that are part of the same product, the product details like name and gpg keys are repeated multiple times. We need to trim this information better
It looks like below at present.
{ "organization": "export-3439", "repository_mapping": { <.....other mappings .....> "misc-33384": { "name": "misc", "label": "misc", "description": null, "arch": "x86_64", "content_type": "yum", "unprotected": true, "checksum_type": "sha256", "os_versions": [ "rhel-7" ], "major": null, "minor": null, "product": { "name": "prod", "label": "prod", "description": null, "gpg_key": { } }, "gpg_key": { "name": "great", "content_type": "gpg_key", "content": "great gatsby" }, "redhat": false } }, "content_view": { "name": "Export-Library", "label": "Export-Library", "description": null }, "content_view_version": { "major": 9, "minor": 0 }, "incremental": false, "toc": "export-5e1ca0f7-1af7-49b2-97d5-f9417760d11a-20210421_0159-toc.json" }
It needs to look like
{ "organization": "export-3439", "products": { "prod" : { "name": "prod", "label": "prod", "description": null, "gpg_key": { } }, "gpg_keys": { "great" : : { "name": "great", "content_type": "gpg_key", "content": "great gatsby" }, } "repositories": { <.....other mappings .....> "misc-33384": { "name": "misc", "label": "misc", "description": null, "arch": "x86_64", "content_type": "yum", "unprotected": true, "checksum_type": "sha256", "os_versions": [ "rhel-7" ], "major": null, "minor": null, "product": { "label": "prod" } "gpg_key": { "name": "great" } }, "redhat": false } }, "content_view": { "name": "Export-Library", "label": "Export-Library", "description": null }, "content_view_version": { "major": 9, "minor": 0 }, "incremental": false, "toc": "export-5e1ca0f7-1af7-49b2-97d5-f9417760d11a-20210421_0159-toc.json" }
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Partha Aji
- Pull request https://github.com/Katello/katello/pull/9315 added
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases Katello 4.2.0 added
Updated by Partha Aji over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|0f3220e6c7ce4dd4aad3f95720bf3c94a9d38d9f.
Actions