Skip to content

support for --recursive for add componentversion #666

@fabianburth

Description

@fabianburth

Description
ocm add componentversion --recursive:

  • adds already existing components that are referenced by components specified in the constructor
    to the target repository (we only support ctf repositories here).

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

  • components in the component constructor
  • resolver config

In this issue, the component references have to be fetched from a repository received from an ExternalComponentVersionRepositoryProvider and stored in the graph.

A starting point for this is extending the discoverExternalComponent function in bindings/go/constructor/construct.go with neighbor discovery.

Tip

Hint: You do not need to call something recursive there. That part is handled by the graph processing logic using that code.

Done Criteria

  • Externally (= not in the constructor) referenced components are added to the target repository
  • 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