Skip to content

fix!: unwrap standard transfer handler and fix spiff handler#1501

Merged
jakobmoellerdev merged 3 commits into
open-component-model:mainfrom
fabianburth:fix/omit-access-types
Sep 10, 2025
Merged

fix!: unwrap standard transfer handler and fix spiff handler#1501
jakobmoellerdev merged 3 commits into
open-component-model:mainfrom
fabianburth:fix/omit-access-types

Conversation

@fabianburth
Copy link
Copy Markdown
Contributor

@fabianburth fabianburth commented Jun 6, 2025

What this PR does / why we need it

  • Make ocm transfer {cv|ctf} respect --omit-access-types (as originally intended).
  • Unwrap the standard transfer handler so omit logic is applied consistently across handlers.
  • Fix spiff handler so it no longer reinstates access types when omit is requested.

Which issue(s) this PR fixes

Previously, users might have used the flag --omit-access-types with a transfer and would have changed behavior now (flag was ignored).

After this change, --omit-access-types takes effect for any transfer as originally intended.

Users expecting resources to be transferred even though they were mentioned with their access type in --omit-access-types must likely drop --omit-access-types for that access type if they used it before and expected the resources to still be present.

Fixes #1500

@fabianburth fabianburth requested a review from a team as a code owner June 6, 2025 16:45
@github-actions github-actions Bot added !BREAKING-CHANGE! Breaking change in API or ocm-cli or spec kind/bugfix Bug component/ocm-cli OCM Command Line Interface size/s Small labels Jun 6, 2025
@fabianburth fabianburth force-pushed the fix/omit-access-types branch from 436a7cd to 5f34226 Compare June 6, 2025 16:54
Comment thread cmds/ocm/commands/ocmcmds/components/transfer/cmd.go Outdated
@fabianburth fabianburth marked this pull request as draft June 7, 2025 14:19
@github-actions
Copy link
Copy Markdown
Contributor

This pull request was marked as stale because it has not had recent activity.

@github-actions github-actions Bot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Sep 10, 2025
@fabianburth fabianburth reopened this Sep 10, 2025
@github-actions github-actions Bot added the size/m Medium label Sep 10, 2025
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
@fabianburth fabianburth marked this pull request as ready for review September 10, 2025 12:27
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
@jakobmoellerdev jakobmoellerdev merged commit 479f138 into open-component-model:main Sep 10, 2025
53 checks passed
fabianburth added a commit to fabianburth/ocm that referenced this pull request Sep 10, 2025
…mponent-model#1501)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

- Make `ocm transfer {cv|ctf}` respect `--omit-access-types` (as
originally intended).
- Unwrap the standard transfer handler so omit logic is applied
consistently across handlers.
- Fix spiff handler so it no longer reinstates access types when omit is
requested.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Previously, users might have used the flag `--omit-access-types` with a
transfer and would have changed behavior now (flag was ignored).

After this change, `--omit-access-types` takes effect for any transfer
as originally intended.

**Users expecting resources to be transferred even though they were
mentioned with their access type in `--omit-access-types` must likely
drop `--omit-access-types` for that access type if they used it before
and expected the resources to still be present.**

Fixes open-component-model#1500

---------

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
(cherry picked from commit 479f138)
jakobmoellerdev pushed a commit that referenced this pull request Sep 10, 2025
…1617)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

- Make `ocm transfer {cv|ctf}` respect `--omit-access-types` (as
originally intended).
- Unwrap the standard transfer handler so omit logic is applied
consistently across handlers.
- Fix spiff handler so it no longer reinstates access types when omit is
requested.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->

Previously, users might have used the flag `--omit-access-types` with a
transfer and would have changed behavior now (flag was ignored).

After this change, `--omit-access-types` takes effect for any transfer
as originally intended.

**Users expecting resources to be transferred even though they were
mentioned with their access type in `--omit-access-types` must likely
drop `--omit-access-types` for that access type if they used it before
and expected the resources to still be present.**

Fixes #1500

---------


(cherry picked from commit 479f138)

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!BREAKING-CHANGE! Breaking change in API or ocm-cli or spec component/ocm-cli OCM Command Line Interface kind/bugfix Bug lifecycle/stale Nobody worked on this for 6 months (will further age) size/m Medium size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different transfer behaviour when using ocm transfer ctf/component/? (with options)

3 participants