Skip to content

feat(verification): update resolver handling for component verification#872

Merged
jakobmoellerdev merged 3 commits into
open-component-model:mainfrom
jakobmoellerdev:controller-session-resolver
Sep 15, 2025
Merged

feat(verification): update resolver handling for component verification#872
jakobmoellerdev merged 3 commits into
open-component-model:mainfrom
jakobmoellerdev:controller-session-resolver

Conversation

@jakobmoellerdev

@jakobmoellerdev jakobmoellerdev commented Sep 11, 2025

Copy link
Copy Markdown
Member

What this commit does

  • Refactored VerifyComponentVersion to directly accept resolver as a parameter instead of constructing it internally.
  • Simplified resolver initialization across various controllers by introducing NewSessionResolver abstraction.
  • Updated tests to accommodate the modified VerifyComponentVersion signature and resolver management.

Why this is needed

  • Speeds up resolution of CVs across all controllers
  • Enhances flexibility by allowing external control over resolver initialization.
  • Reduces redundancy in resolver creation, improving code maintainability.
  • Aligns with the overall goal of modular and testable component verification logic.

#### What this commit does
- Refactored `VerifyComponentVersion` to directly accept `resolver` as a parameter instead of constructing it internally.
- Simplified resolver initialization across various controllers by introducing `NewSessionResolver` abstraction.
- Updated tests to accommodate the modified `VerifyComponentVersion` signature and resolver management.

#### Why this is needed
- Enhances flexibility by allowing external control over resolver initialization.
- Reduces redundancy in resolver creation, improving code maintainability.
- Aligns with the overall goal of modular and testable component verification logic.

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner September 11, 2025 15:42
@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/m Medium labels Sep 11, 2025
…lex paths

#### What this commit does
- Introduced `ResolveResourceReference` function to resolve resource references within component versions.
- Added `ResolveReferencePath` to support navigating complex reference paths between components.
- Updated `GetResourceAccessForComponentVersion` to leverage the new resolution logic instead of the previously direct approach.

#### Why this is needed
- Provides robust handling for cases where resource references involve multiple levels of indirection.
- Enhances flexibility in managing complex dependency chains across component versions.
- Aligns with the goal of modular and maintainable resource access logic.

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev force-pushed the controller-session-resolver branch from d82b6ed to 433966d Compare September 12, 2025 14:27
@jakobmoellerdev jakobmoellerdev enabled auto-merge (squash) September 15, 2025 14:18
@jakobmoellerdev jakobmoellerdev merged commit 03036fd into open-component-model:main Sep 15, 2025
17 checks passed
jakobmoellerdev added a commit to jakobmoellerdev/open-component-model that referenced this pull request Sep 17, 2025
…on (open-component-model#872)

#### What this commit does

- Refactored `VerifyComponentVersion` to directly accept `resolver` as a
parameter instead of constructing it internally.
- Simplified resolver initialization across various controllers by
introducing `NewSessionResolver` abstraction.
- Updated tests to accommodate the modified `VerifyComponentVersion`
signature and resolver management.

#### Why this is needed

- Speeds up resolution of CVs across all controllers
- Enhances flexibility by allowing external control over resolver
initialization.
- Reduces redundancy in resolver creation, improving code
maintainability.
- Aligns with the overall goal of modular and testable component
verification logic.

---------

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
matthiasbruns pushed a commit to matthiasbruns/open-component-model that referenced this pull request Sep 18, 2025
…on (open-component-model#872)

#### What this commit does

- Refactored `VerifyComponentVersion` to directly accept `resolver` as a
parameter instead of constructing it internally.
- Simplified resolver initialization across various controllers by
introducing `NewSessionResolver` abstraction.
- Updated tests to accommodate the modified `VerifyComponentVersion`
signature and resolver management.

#### Why this is needed

- Speeds up resolution of CVs across all controllers
- Enhances flexibility by allowing external control over resolver
initialization.
- Reduces redundancy in resolver creation, improving code
maintainability.
- Aligns with the overall goal of modular and testable component
verification logic.

---------

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature new feature, enhancement, improvement, extension size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants