-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choose who can see it and Task closed box timer display #35
Comments
Hi, So here are my suggestion:
Thanks |
Hi. First of all, sorry for overwhelming with so many ideas and PRs. Is that your project is so great and helpful it is our main plugin. People are new to Glpi, so ideas keep coming.
That means remove the setting "display only for task tech" and "display to all users" and make that distinction on the interface used, right? If interface is Central, only techs get to see the timers. But how can I determine who are the techs? Currently, the timers are only shown for the User that is that specific Task technician. This is the expected behavior in Central interface? I'll try to make it that way. About the overkill, I'll look int glpi rights to see if the implementation would be simple. I think only two would do it:
|
I know. At night I couldn't sleep, so I tried and I liked. 😃 |
No worries. There's no such thing as too many ideas. :) So back to work: If a profile is using Standard Interface (Central), we will consider this a tech. It might not be the case if you reduce their permissions, but it's the simplest way to draw a line. so:
Following the same reasoning, for see timers I would now choose this two options:
As for the Use timers in your task, it is OK to keep it, but why should you disable them? If you do it, then you do not need the plugin :) |
This seems to be the only way. GLPI user creates the task, and it is assigned to TICgal GLPI Support.
In the case you mention in #4, your hotliners are creating the tasks and of course GLPI is self assigning them, but they should change who is the tech, or tech group dealing with them. IMO, this has nothing to do with GLPI or this plugin but with how you manage your ticketing workflow. Please let me know if it is clear now. |
Yes, I can understand that very clearly and agree entirely. What I've pointed out as a bug was this very specific situation:
In that situation, Glpi permits that Then, here comes the Actualtime Plugin situation: if the TASK UPDATE right is not checked when opening the task form, we will always show the timer's Start/End buttons, even if the task user does not have rights to update the task (Glpi checks it and only provides the IMO, everything should remains exactly the same, but we should just check if the user has the task update right before showing him/her the buttons (of course, only the task user will have buttons, but being the task user would not be sufficient as he/she should also have task update right). That would also solve the situation where @boscorelly suggested of a user that CAN open task but CANNOT start timer (as he/she should never be assigned to the task). This would be just an additional AND clause in an existent IF (it is on issue #4 sent PR #36 on this commit:
Please let me know if this check should be kept. |
Back to this specific issue:
Maybe a even better tuning:
I think that would meet all our requirements. The third and fourth options are there only because they would be very simple to implement (all the checks are already done), but are obviously optional. |
Agreed
Agreed, options 3 and 4 don't add any interesting feature and could create a mess on an incorrect setup. Thanks. |
IMO, this is a ticket task creation bad practice. Maybe using a task template could help your organization. Said that, I understand you need to solve this particular problem, and your fix won't affect expected behavior of the plugin. Go ahead and make a PR. Thanks again for your great contributions |
I mine too. But this situation now is possible in Glpi, so I think we should comply with it. Anyway, this particular "feature" is already solved in PR #36 (that solves Issue #4). I will send a new PR for this issue. |
Made. #38 |
Obrigado de novo :) |
@OscarBeiro , @xacobofg , @boscorelly (and whoever wishes to colaborate), I'd like to hear from you about these two suggestions that seemed really neat:
I have it published at my branch dev_timer_for_others.
There are, actually two different commits with two different options (as there is config database table change, I include both at once, but can be separated, of course):
a. Only the task user (as is the original idea)
b. All users, so supervisors, customer could also see it (my suggestion, as my customers need to confirm work hours)
Action historical
list (Processing ticket
tab) when the boxes are closed. Next to the status checkboxes each task's timer is shown (to whomever is allowed to see the timers). For the task user, the running timer will be shown also, making it easier to find which task has its timer running (other than clicking on pop-up timer).The text was updated successfully, but these errors were encountered: