Skip to content

[Import Logs] Hide tab when application logger bundle is not installed or enabled (2.4 backport of #672) - #688

Merged
ValeriaMaltseva merged 4 commits into
2.4from
fix/145-backport-hide-import-logs-tab-2.4
Sep 2, 2026
Merged

[Import Logs] Hide tab when application logger bundle is not installed or enabled (2.4 backport of #672)#688
ValeriaMaltseva merged 4 commits into
2.4from
fix/145-backport-hide-import-logs-tab-2.4

Conversation

@ValeriaMaltseva

@ValeriaMaltseva ValeriaMaltseva commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Backport of #672 (cfb57b3) to the 2.4 LTS line

Fixes pimcore/platform-version#145 (together with pimcore/studio-ui-bundle#4074).

What

The Import Logs tab reads its data through the studio-backend-bundle application-logger endpoint — there is no data-importer-specific log controller. When PimcoreApplicationLoggerBundle is not installed or enabled, the tab rendered but could never load data. It is now only offered when the bundle is active, matching #672 on 2026.x.

LTS deviation from #672: runtime resolution instead of a hard dependency

On this line the isBundleActive SDK helper only exists once pimcore/studio-ui-bundle#4074 ships, so instead of the static import used on 2026.x, the helper is resolved from the federated modules/app at runtime (assets/studio/js/src/modules/data-importer/utils/is-bundle-active.ts):

  • studio-ui host without the helper → tab stays offered (exactly the previous behavior, no regression);
  • host with the helper (>= the release containing #4074) → tab hidden when the application logger bundle is inactive.

This keeps the branch buildable against the currently published @pimcore/studio-ui-bundle npm package and avoids coupling the two releases. Once a 2025.4 canary with the helper is published, the npm dependency can optionally be bumped and the static import restored to converge with 2026.x.

Verified

  • tsc --noEmit clean, eslint clean, rsbuild production build succeeds — all against the currently published ^1.0.0 canary (i.e. without #4074).

Notes

🤖 Generated with Claude Code

…d or enabled (2.4 backport of #672)

Backport of cfb57b3 to the 2.4 LTS line. The import-logs tab reads its
data through the studio-backend-bundle application-logger endpoint, so
it is only offered when PimcoreApplicationLoggerBundle is enabled and
installed; otherwise the tab rendered but could never load data.

Requires the isBundleActive helper from the studio-ui-bundle 2025.4
backport of pimcore/studio-ui-bundle#3980. The
@pimcore/studio-ui-bundle npm dependency in assets/studio/package.json
still needs to be bumped to the first 2025.4 canary that ships the
helper once it is published - until then the studio frontend build of
this branch cannot compile.

Fixes pimcore/platform-version#145

(cherry picked from commit cfb57b3)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
On the 2025.4 LTS line the isBundleActive SDK helper only exists once
pimcore/studio-ui-bundle#4074 ships, so the static import made this
branch depend on an unpublished package. Resolve the helper from the
federated app module at runtime instead: on an older studio-ui host the
tab stays offered (previous behavior), on a host with the helper it is
hidden when PimcoreApplicationLoggerBundle is inactive.

Verified against the currently published @pimcore/studio-ui-bundle
^1.0.0 canary: tsc --noEmit clean, eslint clean, rsbuild production
build succeeds.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ValeriaMaltseva
ValeriaMaltseva marked this pull request as ready for review September 2, 2026 14:21
Copilot AI balanced review requested due to automatic review settings September 2, 2026 14:21
@pimcore-deployments
pimcore-deployments marked this pull request as draft September 2, 2026 14:22

Copilot AI 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.

🟢 Approval recommended

The focused backport correctly handles both newer and legacy Studio UI hosts without unresolved issues.

Pull request overview

Conditionally exposes Import Logs based on Application Logger bundle availability while preserving compatibility with older Studio UI hosts.

Changes:

  • Adds runtime resolution with backward-compatible fallback.
  • Conditionally includes the Import Logs tab.
File summaries
File Description
utils/is-bundle-active.ts Resolves the optional SDK helper at runtime.
components/data-importer-detail-view.tsx Hides Import Logs when the logger bundle is inactive.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ValeriaMaltseva ValeriaMaltseva added this to the 2.4.7 milestone Sep 2, 2026
@ValeriaMaltseva
ValeriaMaltseva marked this pull request as ready for review September 2, 2026 14:37
@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2026

Copy link
Copy Markdown

@ValeriaMaltseva
ValeriaMaltseva merged commit daaafdd into 2.4 Sep 2, 2026
3 of 4 checks passed
@ValeriaMaltseva
ValeriaMaltseva deleted the fix/145-backport-hide-import-logs-tab-2.4 branch September 2, 2026 14:50
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants