Ticket #1319 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

actions reorganization

Reported by: tsoulcie Assigned to: div
Priority: P1 Milestone: CPS 3.4.0
Component: CPSPortlets Version: 3.3.8
Severity: normal Keywords: cps4dsg
Cc: tsoulcie

Description (Last modified by div)

in new design, actions are separated separated in two groups :
1 - object + workflow + folder
2 - user + global

It would be nice if we could organize those lists such as :

1

  • new
  • view (if currently avaliable)
  • manage contents (if currently avaliable)
  • accept
  • reject
  • publish
  • modify
  • add translation
  • delete translation
  • metadata
  • manage localroles
  • history
  • manage portlets

2

  • preferences
  • portal settings (if authorized.)
  • portal themes (if authorized.)
  • vocabularies (if authorized.)
  • directories
  • logout

+ The favorites thing should disappear from user-actions

+ The private space should be removed from user-actions

Change History

01/26/06 11:09:18 changed by tziade

  • keywords set to cps4dsg.

02/14/06 02:48:21 changed by ebarroca

  • milestone changed from CPS 3.4.0 to CPS 3.4.1.

02/16/06 15:59:19 changed by div

  • owner changed from mturcu to div.

02/21/06 10:31:45 changed by ebarroca

  • milestone changed from CPS 3.4.1 to CPS 3.4.0.

02/21/06 17:35:38 changed by div

  • description changed.

02/21/06 18:01:20 changed by div

If we want to mix actions from different categories, we could either keep only two categories (1) and (2) and sort the actions inside those categories or implement a sorting method just before the actions are received by the Action Portlet, that would sort the actions from all the categories for that portlet. I don't think the first method could be implemented right now, because there is a need for different categories, so we have available only the second method. Or is another way of doing this?

02/27/06 13:03:40 changed by div

We have to make a decision regarding the actions sorting procedure. Are we going to implement the actions sorting and if yes, where will it be implemented? See also the comments above.

02/27/06 14:01:38 changed by ogrisel

  • component changed from CPS (global) to CPSPortlets.

Here is Florent's proposal:

Implement the ordering in the action portlet by adding an optional 'actions_order' String List Field (empty by default) that stores actions' ids in the requested order.

The display algorithm should be something like:

ordered_actionitems = []
actions_by_id = dict((action[id], action) for action in actionitems)
for id in actions_order:
    if id in actions_by_id:
        ordered_actionitems.append(actions_by_id[id])
        del actions_by_id[id]
# append the remaining actions in any order
ordered_actionitems.extend(action for _, action in actions_by_id.iteritems())

This way we can have different orders with the same actions in different portlets and the categories do not affect the ordering.

02/27/06 14:11:43 changed by fguillaume

Note that it's important to keep the original ordering for actions not specified in the actions_order list. So the above algorithm is not directly suitable.

02/27/06 18:10:14 changed by lregebro

"The private space should be removed from user-actions"

Ok, so how are you ment to go there? In the current trunk you have to type it in manually, which doesn't seem very user-friendly.

02/27/06 18:13:28 changed by tsoulcie

  • cc deleted.

see #1391. Private space will be the third portal tab.

02/27/06 20:10:37 changed by div

  • cc set to tsoulcie.
  • status changed from new to closed.
  • resolution set to fixed.

The actions order for any Action Portlet can now be customized in the portlet XML definition. The user actions is a Custom Portlet, that has been updated also to allow order customization. The changes for actions ordering are in: [33540], [33541], [33542]