Adaxa's User Favorite which allow user to organize their menu, create folders

Description

Adaxa has created user favorite which allow to group menus using drag and drop features per user. I think this is good feature to add in iDempiere.

Environment

None

Activity

Show:
Deepak Pansheriya
January 5, 2021, 4:24 AM

PR created

Deepak Pansheriya
January 5, 2021, 3:28 AM

As working on this ticket, opening it

Deepak Pansheriya
January 5, 2021, 3:27 AM

/ I follow instruction from Carlos and tried to create fresh PR. Before committing, I was testing and found issue due to cross tenant implementation. Now implementing following requirement is challenging

3. Use login user’s AD_Client_ID to load or create tree for user. For example if SuperUser then his tree is always created in system tenant as SuperUser is created in system tenant.

So if I am in Garden world tenant and when login as SuperUser or any service user, when I try to write to system tenant, it fails.

Deepak Pansheriya
November 24, 2020, 9:51 AM

PR created

Deepak Pansheriya
November 4, 2020, 2:02 PM

As per discussion in chat, decided to

  1. We drop AD_Role from User favorite tree able and create one tree per user

  2. Tree is rendered as per role permissions

  3. Use login user’s AD_Client_ID to load or create tree for user. For example if SuperUser then his tree is always created in system tenant as SuperUser is created in system tenant.

  4. If Folder is empty, don’t show it. if user try to create Folder with same name under same parents, then instead of creating new one, show existing one.

Fixed

Assignee

Deepak Pansheriya

Reporter

Deepak Pansheriya

Labels

Tested By

None

Components

Fix versions

Priority

Major