Skip to content

Add Location column to AIP search and selection lists (#3656)#3657

Open
luis100 wants to merge 2 commits intodevelopmentfrom
feature/aip-parent-location-column
Open

Add Location column to AIP search and selection lists (#3656)#3657
luis100 wants to merge 2 commits intodevelopmentfrom
feature/aip-parent-location-column

Conversation

@luis100
Copy link
Copy Markdown
Member

@luis100 luis100 commented Apr 27, 2026

Closes #3656

Summary

  • Adds a Location column (default_IndexedAIP_parent) to five AIP lists: Search_AIPs, SelectAipDialog_AIPs, CreateActionJob_AIP, CreateDefaultJob_AIP, IngestAppraisal_searchAIPs
  • Cell displays the direct parent's level icon + title; hovering shows the full Root / ... / Parent breadcrumb via the HTML title attribute
  • Column uses nowrap = true so it picks up the cellTableFadeOut CSS styling from the table framework
  • New AipTitleBatchFetcher singleton batches UUID lookups (50 ms debounce), caches results for 10 s (configurable via setCacheTtlMs), and redraws affected CellTable instances once the batch resolves

Test plan

  • Open the AIP search page — verify the Location column appears with the parent's level icon and title
  • Hover a cell — verify the tooltip shows the full ancestor path separated by /
  • AIPs at root level (no parent) — verify the cell is blank
  • Scroll through a large result set — verify only one batch request fires per 50 ms window (check network tab)
  • Wait ~10 s without scrolling, then scroll again — verify a fresh request is fired (cache expired)
  • Open Select Parent and Move dialogs — verify Location column appears in both

🤖 Generated with Claude Code

Adds a new `default_IndexedAIP_parent` column to the five main AIP
search/selection lists showing the direct parent's level icon and title.
Hovering displays the full ancestor breadcrumb (root / ... / parent).

Rendering uses `AipTitleBatchFetcher`, a GWT singleton that coalesces
UUID lookups into a single batched API request (50 ms debounce), caches
results for 10 s (configurable), and redraws affected tables on resolution.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement labels Apr 27, 2026
@luis100 luis100 requested a review from hmiguim April 27, 2026 15:07
Removes the TTL-based expiry that caused stale titles to persist after
a parent AIP was edited. The fetcher now always queues a background
re-fetch on every getValue() call (batched at 50 ms), and only triggers
a table redraw when a fetched value actually changed. This ensures the
Location column self-corrects after any Solr update without flickering
on unchanged data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant