-
Notifications
You must be signed in to change notification settings - Fork 5
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
Deleted user appears as "Failed to execute the [useravatar] macro" #48
Comments
IMO the user shouldn't be counted or displayed, as long as he was deleted with a purpose. Considering also the fact that those votes are not deleted, just not displayed (the object is not erased). There are several general use cases for a poll, like choosing a place to go, or some benefits inside a company, where it would be hard to follow the votes if they contain deleted users. |
This ticket was raised as it was an issue for a client. The expectation he had was that once the user was deleted, as in the past, the name was grayed out but the votes would still appear there, as counted. |
What about the Polls with the "Finished" status? Should the same behaviour be applied?
|
If the polls class has no date to set, as you don't always vote for something that will take place in a specific time, then maybe is a valid idea to only consider 2 cases, "Active" with just active users at that moment and "Finished", containing those users that were deleted after the vote was closed. |
IMO it makes sense that for the “Finished” state the users are grayed out and the votes still appear and are counted (as Gabi mentioned). Even if the action that was decided on didn’t take place, we would still display the deleted users in gray and count their votes. We don’t have visibility on why the voted action didn’t take place anymore. For the “Active” state, inactive users shouldn’t be displayed and counted IMO, since the Poll doesn’t concern them anymore. Since the result won’t impact them, they shouldn’t be impacting the result either. |
…ikisas#48 * Added indentation
…ikisas#48 * Improved code readability.
…ikisas#48 * Improved code readability, added indentation.
Deleted user appears as "Failed to execute the [useravatar] macro" #48
This issue is a little tough to understand, as the description of the issue is talking about a macro error, while the actual implementation seems to have evolved into some hiding of the deleted users and their votes but it's not clear what behaviour was implemented in the end, from all the variations proposed in the comments. It would be great to have a confirmation about which of the discussed behaviours was implemented. |
Steps to reproduce:
Expected results: The name of the user still appears grayed out.
Actual results: "Failed to execute the [useravatar] macro. Cause: [User [XWiki.user02] is not registered in this wiki]. Click on this message for details"
11.7:
10.11.9:
Environment: Windows 10, XWiki 10.11.9 Standard and 11.7 with MySQL 5.7 and Edge 18
The text was updated successfully, but these errors were encountered: