-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/core#542 dev/core#1947 - Show inactive active case role for closed cases #19737
dev/core#542 dev/core#1947 - Show inactive active case role for closed cases #19737
Conversation
(Standard links)
|
@ray-wright @jitendrapurohit you were involved in the original PR any thoughts. Also pinging @demeritcowboy & @kainuk |
I had started looking at it and it seems like a reasonable approach - just also wanted to see how it reconciles with https://lab.civicrm.org/dev/core/-/issues/1401 and https://lab.civicrm.org/dev/core/-/issues/1947#note_43363. Ping also @lcdservices . |
Nice job overall. There are a couple issues below.
|
+1 for this. I like the idea, and agree with @demeritcowboy's assessment. I can do some testing after you work through the first round of feedback. |
Hi @sunilpawar, I created a core hack for a customer that has exactly this problem. I will test and ask him of it works in his situation. |
I will revise PR as suggested by @demeritcowboy |
Hi @sunilpawar thanks for the updates. Wondering if you're still working on it? The default for open cases seems to have changed now - it should only be current role assignments for open cases since this is where case managers spend 99% of their time. Also for the pager for example on the second page it says "Showing 11 to 4 of 4 entries" and only shows 1 page available, and now sorting by name seems to crash. The pager isn't a bad idea but it could be a different PR too. |
Two things I'm now having trouble getting working
|
@sunilpawar are you still working on this? |
|
@demeritcowboy i have fixed issue sorting on name column. by default it shows all roles , disabled/inactive roles gray out. on clicking on checkbox 'Show active relationships' , it show only active roles (hide disabled/inactive roles rows). |
Thanks will take a look! |
One thing I notice right away is now I get the below when just opening the roles section on a case, and it causes the role name column to no longer be a hyperlink to the contact:
Also for OPEN cases, 99% of the time the case manager doesn't want/need to see the previous roles and it's clutter when it's mixed all together. On an OPEN case the default should be only current roles if the method being used is a checkbox (as opposed to e.g. separate sections like on a contact's relationships tab which keeps the clutter separate). You almost had it in the original version of the PR. And I think I agree with @ray-wright that the wording would be better reversed, i.e. "Show inactive relationships", which on an OPEN case would be unchecked by default, and when viewing a CLOSED case would be checked by default. |
@demeritcowboy i did corrected linking on name (php notices). I will check and revert the logic as @ray-wright have it. reason for changing logic was to show all roles for closed case when (e.g) case of have more than 10 roles. in that case pagination will show 'Showing 1 to 10 of 15 entries, but it actually showing 1 or 2 active records. then when click on 'Show inactive relationships' then it will show all rows. To just avoid confusion on these case, i reverted the logic. But i am ok to go with original PR. |
Thanks for your work on this @sunilpawar |
@demeritcowboy i have updated PR |
When a case is closed the roles are ended automatically and after the Disable expired relationships scheduled job runs they are disabled - so most closed cases should only have inactive roles. Is it possible if the case is closed to have 'show inactive relationships' checked already? |
working on it. |
Thanks, I should be able to take another look over the next few days. |
Ok one minor thing that's easy and then what to do with the pager:
|
8f93242
to
27d7688
Compare
@demeritcowboy i have squashed commits. |
Ok thanks, just checking are there more changes coming? e.g. I still see the other issues - Error on the dashboard/find cases when no manager has ever been assigned to a case: |
@demeritcowboy i fixed PHP Notice, i did one correction on pagination total result count. |
Ok thanks - I still get a problem with the pager-related additions though. Here's a specific example: BEFORE:
AFTER:
Could we move the pager additions to a separate PR and work on it separately? |
@demeritcowboy ok, i will create separate PR for pagination and will remove pagination changes from this PR. |
@demeritcowboy i have reverted the pagination functionality |
Thanks will take a look! |
Thanks for sticking with it. Yay! I think if you can just squash the commits and then we're good. I have a small touchup but I can submit after. |
…case Fix php notice for case not having manager Fix pagination count issue Revert pagination code revert additional pagination changes
b6e39e7
to
f537dc0
Compare
@demeritcowboy i have squashed commits. |
Great, thanks! Have marked merge-ready. |
Ok let's merge this. It's still not clear to me if one of the other approaches is better long-term but this is a good improvement on the form that should help a lot of people. |
Thanks @demeritcowboy as the loose originator of the improvement (we contracted @sunilpawar and Skvare to make it usable for core) I'm excited for this to be in core and am totally open to other approaches should they come! |
Overview
Currently when any case is closed , the all the roles on case contact marked to inactive but putting current date on their relationship record. there is no other way to find out who were these inactive role at-least through case manage screen.
Before
For closed case there was no way to find out Inactive role on case with different role type.
After
Closed case will show all roles (active and inactive) by default. if case manager want to see only active roles then checkbox will be available to see only
If any open case does not contain any inactive relationship then checkbox is invisible
Comments
I have reworked on #13510