Skip to content

fix(perc-content-explorer): PSFolderActionManager rawtypes residual (#2369) - #2381

Merged
natechadwick merged 1 commit into
mainfrom
fix/issue-2369-psfolder-ui-rawtypes
Aug 8, 2026
Merged

natechadwick merged 1 commit into
mainfrom
fix/issue-2369-psfolder-ui-rawtypes

Conversation

@natechadwick-intsof

Copy link
Copy Markdown
Collaborator

Summary

Residual javac -Xlint batch for perc-content-explorer under #2045 / #2369: clear the PSFolderActionManager rawtypes/unchecked cluster (~79 → 0 on that file).

  • Typed node-list APIs: add/copy/delete/move/purgeAllContent take Iterator<? extends PSNode>; loadChildren returns Iterator<PSNode>
  • Generics on search listeners, CM1 site filter (List<PSNode>), nodesToFolders / foldersToNodes, display-format / site iterators
  • Fixed latent move site-definition error aggregation (errorText += err instead of iter.hasNext() boolean)
  • Behavioral tests: PSFolderActionManagerTest (filter, conversions, null rejection)
  • Erlang pre-commit review: docs/ai-generated/code-reviews/issue-2369-psfolder-ui-rawtypes-erlang.md

Partial for #2369. Parent trackers: #2045, #2200.

Residual filed

Inventory (-Xmaxwarns 5000)

Metric Before After
Module total ~1068 ~989
PSFolderActionManager ~79 0

Test plan

  • modules/DesktopContentExplorer: mvnw clean install green (23 tests, 0 failures)
  • Full javac inventory: PSFolderActionManager clean

Gates

  • Erlang self-review: pass (no bugs; portable paths N/A; tests present)
  • Per-module clean install: perc-content-explorer
  • No product behavior change intended (except move error-text aggregation fix)

Operator: Grok: night-issue-prs (model grok-4.5)

Fixes #2369 (partial — ActionManager slice; residual #2380)
Refs #2045 #2200

Co-Authored by Grok Build using grok-4.5 with agent main.

…2369)

Parameterize PSFolderActionManager iterators/lists for folder
add/copy/delete/move/purge and loadChildren; type node/folder converters
and CM1 site filter. Fix move() site-error aggregation (append error
text, not hasNext boolean). Tests: PSFolderActionManagerTest.

Partial for #2369 (ActionManager clean; UI panels residual #2380).
Refs #2045 #2200.

> Co-Authored by Grok Build using grok-4.5 with agent main.
@natechadwick-intsof

Copy link
Copy Markdown
Collaborator Author

Rebase complete: Rebased onto origin/main (resolved DIRTY/CONFLICTING).

Conflict in PSFolderActionManager: kept main's typed List<PSNode> itemNodes = searchEx.executeSearch(...) from #2378 (PSExecutableSearch already returns List<PSNode>) instead of the branch's unchecked cast. modules/DesktopContentExplorer unit tests green (PSFolderActionManagerTest 7/0).

Head: ebd32ddd53eee9281afe030c5edd788fb04ac2e0

Co-Authored by Grok CLI using grok with agent overnight-pr-followup.

@natechadwick-intsof
natechadwick-intsof force-pushed the fix/issue-2369-psfolder-ui-rawtypes branch from dae88f1 to ebd32dd Compare August 8, 2026 01:55
@kilo-code-bot

kilo-code-bot Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 1
WARNING 1
Issue Details (click to expand)

CRITICAL

File Line Issue
modules/DesktopContentExplorer/src/main/java/com/percussion/cx/PSFolderActionManager.java 914 Latent bug fixed: old code appended iter.hasNext() (boolean) instead of the error string in move, silently producing garbled error text for multi-node site moves. This PR correctly iterates errors and appends each String.

WARNING

File Line Issue
modules/DesktopContentExplorer/src/main/java/com/percussion/cx/PSFolderActionManager.java 1248 Unchecked cast (PSSite) siteObj is unavoidable — upstream PSSiteCataloger.getSites() returns raw Collection. Enhanced for-loop + explicit cast is the cleanest option without changing the cataloger API. Worth tracking to parameterize getSites() at the source.
Files Reviewed (3 files)
  • modules/DesktopContentExplorer/src/main/java/com/percussion/cx/PSFolderActionManager.java — 2 issues (1 CRITICAL latent bug fix confirmed, 1 WARNING unchecked cast)
  • modules/DesktopContentExplorer/src/test/java/com/percussion/cx/PSFolderActionManagerTest.java — clean (null/empty/filter/round-trip tests)
  • docs/ai-generated/code-reviews/issue-2369-psfolder-ui-rawtypes-erlang.md — new documentation

Fix these issues in Kilo Cloud


Reviewed by step-3.7-flash · Input: 74.3K · Output: 9.3K · Cached: 672.4K

Review guidance: REVIEW.md from base branch main

@natechadwick
natechadwick merged commit 5d67b9c into main Aug 8, 2026
6 checks passed
@natechadwick
natechadwick deleted the fix/issue-2369-psfolder-ui-rawtypes branch August 8, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model:grok-4.5 Grok 4.5 model operator:grok Changes authored by Grok operator:night-issue-prs night-issue-prs workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[8.2] perc-content-explorer: PSFolder* UI rawtypes residual (#2045)

2 participants