[MGNLUI-6252] Select all check box (for notifications) is missing Created: 29/Sep/20  Updated: 02/Feb/24

Status: Reopened
Project: Magnolia UI
Component/s: pulse
Affects Version/s: 6.2.6
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Frank Sommer Assignee: Unassigned
Resolution: Unresolved Votes: 5
Labels: usability, ux-improvement
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-09-29-09-33-06-185.png    
Issue Links:
Problem/Incident
Relates
relates to MGNLUI-5669 Improve click target for tasks and no... Closed
relates to MAGNOLIA-9057 Repository hygiene Open
duplicate
relation
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)
Date of First Response:
Epic Link: UX improvements
Team: AuthorX

 Description   

In Magnolia 6 it isn't possible to select all notifications to delete them afterwards. There is no "Select all" checkbox.

Furthermore in tasks it is possible, but not really visible to use. Perhaps a checkbox icon in the table head?

Workaround
Clear notifications for a given user

import info.magnolia.ui.framework.message.MessagesManager;
import info.magnolia.ui.api.message.Message;
 
def clearNotificationsForUser(userName) {
    archived= 0
    messagesManager = info.magnolia.objectfactory.Components.getComponent(info.magnolia.ui.framework.message.MessagesManager);

    session = ctx.getJCRSession("messages")
    qm = session.getWorkspace().getQueryManager()
    query="select * from [mgnl:systemMessage] where ISDESCENDANTNODE('/superuser')";
 
    q = qm.createQuery(query, "JCR-SQL2")
    results = q.execute()
    messages = NodeUtil.asList(NodeUtil.asIterable(results.getNodes()))
 
    for (message in messages) {
       ++archived
       String id = message.getProperty("id").getValue().getString();
       messagesManager.clearMessage(userName, id);
 
    }
    println("archived "+archived+" notifications")
    session.save();
 
}
 
clearNotificationsForUser('superuser');


 Comments   
Comment by Auswin-Kumar Mohanasundaram [ 03/Sep/21 ]

Any update on this issue ?

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