Skip to content

support for references within a constructor for add componentversion command #564

@fabianburth

Description

@fabianburth

Description
ocm add componentversion --recursive:

  • adds not yet existing components that are specified in the constructor
  • adds already existing components that are referenced by components specified in the constructor
    to the target repository (we only support ctf repositories here).
    (factored out into support for --recursive for add componentversion #666)

The component references have to be resolved in the following order:

  • components in the component constructor
  • resolver config

constructor package

  • Currently, the constructor package does not respect ordering yet. So, as part of this task, the constructor package will have to be adjusted to respect ordering (create child components before creating parent components).
  • To be able to do this efficiently, one will have to build up a dag and essentially implement the logic "poc'ed" for transfer in https://github.com/open-component-model/pocm (please pair program here!)

Done Criteria

  • Code has been reviewed by other team members
  • Analysis of existing tests (Unit and Integration)
  • Unit Tests created for new code or existing Unit Tests updated
  • Integration Test Suite updated (includes deletion of existing unnecessary Integration Test and/or creation of new ones if required)
  • Enduser Documentation updated (if applicable)
  • Internal technical Documentation created/updated (if applicable)
  • Successful demonstration in Review

Metadata

Metadata

Labels

area/ipceiImportant Project of Common European Interestkind/tasksmall task, normally part of feature or epic

Type

No fields configured for Task.

Projects

Status
🍺 Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions