Skip to content

Require storage-api-php-client-branch-wrapper ^7.0 across platform libs - #548

Merged
pepamartinec merged 7 commits into
mainfrom
pepa/branch-wrapper-7
Jul 23, 2026
Merged

Require storage-api-php-client-branch-wrapper ^7.0 across platform libs#548
pepamartinec merged 7 commits into
mainfrom
pepa/branch-wrapper-7

Conversation

@pepamartinec

@pepamartinec pepamartinec commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Release Notes

Driver: https://linear.app/keboola/issue/PAT-1960/runner-sync-api-migrate-custom-runid-generator-to-api-bundle-60-config

Note

Bump client wrapper lib dependency na movou major verzi

Moves the platform libraries that depend on keboola/storage-api-php-client-branch-wrapper to require ^7.0, so downstream services (starting with runner-sync-api, PAT-1960) can adopt branch-wrapper 7.0 + api-bundle 6.1. branch-wrapper 7.0's only breaking changes are: ClientOptions::getClientConstructOptions() now throws when a token is set without an authType, StorageApiToken's 3rd constructor arg (AuthType) is now required, and the removal of Factory\StorageClientRequestFactory / ClientOptions::runIdGenerator (unused by these libs).

Every library's production src/ was already compatible — the only production change is php-test-utils' StorageApiAwareTrait, which now sets AuthType::STORAGE_TOKEN on its ClientOptions. Everything else is test fixtures that construct a token-bearing ClientOptions (or a base StorageApiToken) now explicitly passing AuthType::STORAGE_TOKEN — accepted by both 6.x and 7.0, so the change is not runtime-behaviour-affecting.

Libraries bumped (one commit each): staging-provider, input-mapping, output-mapping, configuration-variables-resolver, permission-checker, php-test-utils.

Verified locally against branch-wrapper 7.0: composer phpstan (covers src + tests) and phpcs green for all six; permission-checker unit tests green (193). The credential-backed functional suites (input/output-mapping, staging-provider, configuration-variables-resolver) run in CI.

Plans for customer communication

None.

Impact analysis

Consumers of these libraries move to branch-wrapper ^7.0 when they pick up the new minor releases; runId/auth behaviour is unchanged. The constraint is strict ^7.0 (drops ^6.0), so a consumer still pinning branch-wrapper 6.x must upgrade — this is the intended platform-wide move to 7.0. No end-user (runtime) impact.

Change type

Maintenance

Justification

Roll storage-api-php-client-branch-wrapper 7.0 through the platform libraries so downstream services can migrate (unblocks PAT-1960 / runner-sync-api).

Deployment

Merge & automatic deploy.

Rollback plan

Revert of this PR.

Post release support plan

None.

… ^7.0

7.0 requires an authType whenever a Storage client is built from a token; the functional test now passes AuthType::STORAGE_TOKEN (accepted by 6.x and 7.0).
Test helpers now set AuthType::STORAGE_TOKEN on token-bearing ClientOptions (required by 7.0, accepted by 6.x). No src changes.
Test helpers now set AuthType::STORAGE_TOKEN on token-bearing ClientOptions (required by 7.0, accepted by 6.x). No src changes.
…t-branch-wrapper ^7.0

Tests set AuthType::STORAGE_TOKEN on token-bearing ClientOptions and pass the now-required AuthType to StorageApiToken. No src changes.
…er ^7.0

StorageApiToken's 3rd ctor arg (AuthType) is required in 7.0; test doubles extending the base token now pass AuthType::STORAGE_TOKEN. No src changes.
StorageApiAwareTrait now sets AuthType::STORAGE_TOKEN on its ClientOptions (7.0 requires an authType when a token is set).
@pepamartinec
pepamartinec requested a review from janvanicek July 23, 2026 13:09

@janvanicek janvanicek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, jen to BQ mrkni na CI

… changedSince message)

Two functional assertions were stale on main, surfaced here because the branch-wrapper bump runs input-mapping's functional suite:

- testTablesBigQueryBackend expected loadType VIEW, but AJDA-2841 (already on main) delegates the workspace load-type decision to the endpoint, which now returns CLONE for BigQuery.

- testDownloadTablesInvalidDate asserted the old Storage API validation message; the server now returns 'Invalid request: ...' so the assertion matches the stable core text.
@pepamartinec
pepamartinec merged commit 2ea9eca into main Jul 23, 2026
85 of 86 checks passed
@pepamartinec
pepamartinec deleted the pepa/branch-wrapper-7 branch July 23, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants