Skip to content

Issue #2136: Use valuePath instead of column header texts for ActionLog in ExcelPackager#2137

Open
jameswsullivan wants to merge 2 commits into
TexasDigitalLibrary:mainfrom
jameswsullivan:refactor-actionlog-excel-packager
Open

Issue #2136: Use valuePath instead of column header texts for ActionLog in ExcelPackager#2137
jameswsullivan wants to merge 2 commits into
TexasDigitalLibrary:mainfrom
jameswsullivan:refactor-actionlog-excel-packager

Conversation

@jameswsullivan
Copy link
Copy Markdown
Contributor

Resolves issues:

I tested with our instances and they showed up the same in Excel exports, but a bit more tests are always welcome.

Thanks.

@jameswsullivan jameswsullivan changed the title Refactor to use valuePath instead of col header text for ActionLog in… Issue 2136: Refactor to use valuePath instead of column header texts for ActionLog in ExcelPackager Mar 25, 2026
@jameswsullivan jameswsullivan changed the title Issue 2136: Refactor to use valuePath instead of column header texts for ActionLog in ExcelPackager Issue 2136: Use valuePath instead of column header texts for ActionLog in ExcelPackager Mar 25, 2026
@jameswsullivan jameswsullivan changed the title Issue 2136: Use valuePath instead of column header texts for ActionLog in ExcelPackager Issue #2136: Use valuePath instead of column header texts for ActionLog in ExcelPackager Mar 25, 2026
@cstarcher cstarcher requested a review from Copilot May 7, 2026 18:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Excel export logic for ActionLog-backed submission list columns to use the column valuePath (e.g., lastAction -> entry / lastAction -> actionDate) instead of comparing on the column header title text, improving reliability across title changes and addressing incorrect “Last Event/Last Action” exports.

Changes:

  • Refactored ExcelPackager ActionLog formatting to branch on column.getValuePath() segments rather than column.getTitle().
  • Mapped lastAction.actionDate to formatted date output and lastAction.entry to the log entry text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +117 to 120
String[] actionLogValuePath = column.getValuePath().toArray(new String[column.getValuePath().size()]);
switch (actionLogValuePath[1]){
case "actionDate":
Calendar actionDate = (Calendar) actionLog.getActionDate();
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.

3 participants