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
Visits for contacts cannot be saved if users don't have access to the converted case #7434
Comments
@kwa20 @bernardsilenou @Chinedar |
|
@bernardsilenou That would be extremely unintuitive because the user does not intend to update the case, they try to add a visit to the contact. The message "You can't edit the case" does not make sense for them in this scenario. I agree with Barna here, same for @JaquM - @bernardsilenou, could you please explain why anyone would continue to manage a contact if that contact has been converted to a case? Wouldn't, under any circumstances, the case be the entity that is managed afterwards? |
@MateStrysewske @BarnaBartha @bernardsilenou I agree that further editing might not be intended, the only scenario I can imagine where someone might want to add a visit is when adding data in hindsight. The error message displayed here is definitely a hurdle though. I think either having an intuitive error message or disabling the button would work. However, when showing an error message, we should show it upon pressing "New visit" directly so users don't have to go through entering the form before getting disappointed upon saving. |
@kwa20 Not sure what's the most user-friendly approach here. I'd probably go with disabling the button (so that it's still displayed, but visibly disabled) and adding an info icon next to it that, when hovered, displays the text "This contact has already been converted to a case. Please add new visits to the case instead." |
This last suggestion is for me the best approach please. Disable and put a
message to say clearly that the contact has been converted to a case.
Simply there is no need to further add visits to a case (except ofcourse in
retrospect), and the message solves the problem.
…On Fri, 10 Dec 2021, 09:11 Maté Strysewske, ***@***.***> wrote:
@kwa20 <https://github.com/kwa20> Not sure what's the most user-friendly
approach here. I'd probably go with disabling the button (so that it's
still displayed, but visibly disabled) and adding an info icon next to it
that, when hovered, displays the text "This contact has already been
converted to a case. Please add new visits to the case instead."
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7434 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIPKP5E763JSLCDMAYAL3U3UQGY2XANCNFSM5JLPPTSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Replying to #7434 (comment)
|
@bernardsilenou Why would a user that has access to the contact, but not to the case still be required to add visits to the contact though? The contact, at this point - at least from my understanding - is not relevant anymore because it's already been converted to a case. Any further management should be done on the case by whoever has access to it. If a user has access to the contact, but not to the case, they're apparently not the user who's responsible for managing the case, so why should they still need to create visits for it? And if they are responsible, the case will probably be in their responsible jurisdiction anyway, so they can just go to the case and create the visits there. |
…on to create a new visit + add info icon explaining that the user should add the visits to the resulting case
…on to create a new visit + add info icon explaining that the user should add the visits to the resulting case (#7506) Co-authored-by: Maté Strysewske <mate.strysewske@vitagroup.ag>
Currently the 'follow-up visits' entities are shown in both views 'contacts' & 'cases' (for the specific contact entity that has been converted to a case). If a user has access to both views then the user is able to edit the follow-up visits in both views. Expected / Intended behaviour? (in the contacts-view the user is not able to add a new visit, but can edit existing visits) |
@mario-kuehne Yes, that's expected behaviour, but editing the visit might actually lead to the same problem than creating a new one. Did you test that by chance? |
Found an UI issue and clarified with @MateStrysewske and @BarnaBartha to reopen the ticket. Reproduction:
Tested on https://test.sormas.netzlink.com/ |
@MateStrysewske Yes, it is also possible to change and save an existing visit for a contact (although an error message is shown), that has been converted to a case in another jurisdiction for which the current logged in user has no access to. |
@BarnaBartha That means that we probably have to implement what I'd suggested earlier, i.e. a differentiation in the case saving process whether the saving is done manually or automatically by the system (in which case we have to skip the check whether the current user is allowed to save). I don't think that we can or should prevent users from editing visits when they have access to them (which would be the other option). |
Bug Description
When a restricted user tries to enter visits in hindsight for contacts that have already been converted to cases, an error message prevents them from doing so when they don't have access to the converted case.
Steps to Reproduce
Expected Behavior
The user should be able to create visits for contacts that they have access to.
Screenshots
System Details
Additional Information
Development Specifications
The text was updated successfully, but these errors were encountered: