#1435 changes for writeInheritanceData should not contain duplicated parent_id
Closed: Fixed 3 years ago by mikem. Opened 4 years ago by julian8628.

duplicated parent_ids will cause inconsistency like:

$ koji call getInheritanceData 48
[]
$ koji call setInheritanceData 48 --kwargs "{'data':[{'parent_id': 350, 'delete link': True, 'priority': 10, 'maxdepth': None, 'intransitive': False, 'noconfig': False, 'pkg_filter': ''},{'parent_id': 350, 'priority': 10, 'maxdepth': None, 'intransitive': False, 'noconfig': False, 'pkg_filter': ''}]}"
None
$ koji call getInheritanceData 48
[{'child_id': 48,
  'intransitive': False,
  'maxdepth': None,
  'name': 'test-parent-tag',
  'noconfig': False,
  'parent_id': 350,
  'pkg_filter': '',
  'priority': 10}]
$ koji call setInheritanceData 48 --kwargs "{'data':[{'parent_id': 350, 'delete link': True, 'priority': 10, 'maxdepth': None, 'intransitive': False, 'noconfig': False, 'pkg_filter': ''},{'parent_id': 350, 'priority': 10, 'maxdepth': None, 'intransitive': False, 'noconfig': False, 'pkg_filter': ''}]}"
None
$ koji call getInheritanceData 48
[]

Metadata Update from @julian8628:
- Issue set to the milestone: 1.18

3 years ago

Commit 5c40091 relates to this ticket

Commit 8845b9e relates to this ticket

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #2782 Merged 2 years ago