xmera-circle / redmine_workload

[Fork] Calculate user workload over time
6 stars 3 forks source link

Workload view user/group-wise #32

Open akshay2910-git opened 8 months ago

akshay2910-git commented 8 months ago

We have multiple groups, each group having a few users. A user can belong to more than one group. Also, we have a few users who have the privilege to view all workloads of every group. In the existing setup:

  1. while selecting the group we can see issues assigned to the groups only but it does not include the issues assigned to the individual who belongs to the group. Here, I would like to add that users belong to different Redmine groups but still "Main group" is blank for all the users. How as an admin I can add user to specific "Main Group"

  2. As few users (belonging to PMO ) are part of all the project groups, their workload select user(s) contains all the users by default. But even after selecting the individual group from the select group pane, users belonging to the selected group is not being filtered.

Please suggest, how to achieve this

Environment: Redmine version 5.0.5.stable Ruby version 3.1.4-p223 (2023-03-30) [x86_64-linux] Rails version 6.1.7.2 Environment production Database adapter PostgreSQL

redmine_workload 3.0.2

liaham commented 8 months ago

Thank you @akshay2910-git for your report!

This issue needs feedback from @mboremski since he is an active user of the plugin.

Please be patient until @mboremski could have taken time to review your report.

Best Regards

@liaham

akshay2910-git commented 8 months ago

Thanks @liaham

mboremski commented 8 months ago

Hey @akshay2910-git, I tried to address your questions as good as I can. Come back if you need more help. šŸ˜Š

A user can belong to more than one group.

This is correct for redmine-core. To reflect this in our plugin we would have to configure how much of a users workload should be assigned to each of the users groups. To avoid such configuration-hassle we introduced the main-group. Right now each user can only plan its workload for one main-group Therefore, your use case unfortunately cannot be met by our plugin. I'm sorry for that. _

How as an admin I can add user to specific "Main Group"

main-group can only be configured by the user. Yes, that is a bit uncomfortable. The reason is the way the original creator implemented the user's own configuration. After taking over the repository, we didn't want to rebuild this. But you can work around this pretty easy: As admin use a plugin to impersonate (like this one) to act like the user. _

users belonging to the selected group is not being filtered.

Sorry, but The main group needs to be set. as mentioned in README -> Configuration point 3. šŸ˜‰ Please test this again after you have done this.

akshay2910-git commented 8 months ago

Hey @mboremski , thanks for the update, below are my point wise submission: Hey @akshay2910-git, I tried to address your questions as good as I can. Come back if you need more help. šŸ˜Š

A user can belong to more than one group.

This is correct for redmine-core. To reflect this in our plugin we would have to configure how much of a users workload should be assigned to each of the users groups. To avoid such configuration-hassle we introduced the main-group. Right now each user can only plan its workload for one main-group Therefore, your use case unfortunately cannot be met by our plugin I'm sorry for that. _

I understand that, but for this plugin to be more practical, can you think of providing an option wherein instead of one Main group, we can have an option of multiple groups keeping aside the % allocation for each group? This will at least give the project manager some sort of understanding on who are working on what and for how long.

How as an admin I can add user to specific "Main Group"

main-group can only be configured by the user. Yes, that is a bit uncomfortable. The reason is the way the original creator implemented the user's own configuration. After taking over the repository, we didn't want to rebuild this. But you can work around this pretty easy: As admin use a plugin to impersonate (like this one) to act like the user. _

No worry for this, I can handle this in backend. But I have one suggestion if you think its doable Rather than asking the user to select their main group, we can at least set the default group for users who are part of only one group.

users belonging to the selected group is not being filtered.

Sorry, but The main group needs to be set. as mentioned in README -> Configuration point 3. šŸ˜‰ Please test this again after you have done this.

One more issue that I would like to highlight is, if no issue is being assigned to any user then no row is getting populated against . him/herThis is manageable if the group is small but if the group consists of 20-25 resources its difficult to handle. Any way-out you can suggest for this?

mboremski commented 8 months ago

Regarding:

an option wherein instead of one Main group, we can have an option of multiple groups keeping aside the % allocation for each group

and

at least set the default group for users who are part of only one group

The latest changes since 2.0.x have been an investment from my employer ( see Features 2.0.x) as we needed this plugin internaly. The changes have been realized from @liaham / Xmera As described at the time we went the way with one main-group. Unfortunately right now there is no plan do invest in major changes.

Regarding:

if no issue is being assigned to any user then no row is getting populated

Unfortunately I am right now not able to rebuild this case. Maybe @liaham can say more here.