[PUBLISHING-50] Column labels and content are slightly off in the PublishingLogSection Created: 20/Jul/18  Updated: 29/Mar/22  Resolved: 16/Mar/21

Status: Closed
Project: Publishing
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2018-07-20-07-40-38-017.png     PNG File image-2021-03-16-13-05-27-604.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Team: Nucleus

 Description   

Spotted by ebguilbert, the column headers and the content are slightly off in the Monitor subapp, despite the fact that in code all seems aligned correctly:
 

table.addContainerProperty(StringUtils.EMPTY, Label.class, null);
table.addContainerProperty(i18n.translate("publishingMonitor.publishingLog.date.label"), String.class, null);
table.addContainerProperty(i18n.translate("publishingMonitor.publishingLog.user.label"), String.class, null);
table.addContainerProperty(i18n.translate("publishingMonitor.publishingLog.workspace.label"), String.class, null);
table.addContainerProperty(i18n.translate("publishingMonitor.publishingLog.path.label"), String.class, null);
table.addContainerProperty(i18n.translate("publishingMonitor.publishingLog.subscriber.label"), String.class, null);
table.addItem(new Object[]{label, formatDate(entry.getDate()) , entry.getUser(), entry.getWorkspace(), entry.getPath(), entry.getSubscriber()}, i++);
publishingMonitor.errorLog.date.label = Date
publishingMonitor.errorLog.user.label = User
publishingMonitor.errorLog.workspace.label = Workspace
publishingMonitor.errorLog.path.label = Path
publishingMonitor.errorLog.subscriber.label = Subscriber



 Comments   
Comment by Martin Drápela [ 20/Jul/18 ]

More, thx rkovarik for finding where, there's also an additional swap between 

unpublishing and success in 

PublishingLogEntry entry = new PublishingLogEntry(unpublishing, success, path, subscriber, user, workspaceName, Calendar.getInstance().getTime(), null);

always resulting in rendering an ERROR triangle even if internally a publishing action was correct:

 

Generated at Mon Feb 12 10:34:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.