10 Vote

As a user I want to be able to show/hide even if the show-if/hide-if macro contains an invalid user or group

If a show-if/hide-if macro is created and a user/users are applied in the User parameter and then at some point one one of the users loses their Confluence account then the show-if/hide-if will display a "Error rendering macro 'show-if' : Failed to render Visibility macro due to: test is not a valid user". While it is good to know that the user is no longer valid and needs to be remove/replaced, none of the contents in the macro are displayed. That means that any of the other "valid" users can no longer see what needs to be seen (or the data is no longer hidden when it should be). Please updated Visibility so that when an invalid user is found then error is displayed so that specific information can be discovered, but also make it so that it will continue to show/hide the information in the macro for all other users/groups.

  • Sayed Bares
  • Feb 28 2020
  • Shipped
Hosting platform Server
  • Attach files
  • James Roberts commented
    22 Oct, 2020 08:01pm

    You guys almost got this right with Visibility 5.0.12.

    While the show-if and hide-if macros are now displaying if an invalid user/group is in one of the parameters (and that is good) the error is no longer displayed so nobody knows that the macro probably needs to be updated.

    It would be nice if the idea was implemented as stated "Please updated Visibility so that when an invalid user is found then the error is displayed so that specific information can be discovered, but also make it so that it will continue to show/hide the information in the macro for all other users/group."

    It's better than it was but still not the most optimal.

  • Rick Carini commented
    8 Oct, 2020 02:54am

    Hi All,

    I have not yet confirmed this, but according to the release notes this was fixed with version 5.0.12:

    https://marketplace.atlassian.com/apps/202/visibility-for-confluence/version-history

    Thanks!

  • Rick Carini commented
    16 Sep, 2020 02:05am

    I do have to reiterate that I feel that this is a bug as the functionality has changed from previous versions and your error handling should not break the entire macro for everyone just because one user or group is no longer valid.

  • Wolfgang LUTZ commented
    8 Sep, 2020 11:25am

    I agree with Rich!

    This is a macro error!

    What is the target of the ShowIf and HideIf user macro. To show or hide content not to check if all groups or users are correct entered.

  • Rick Carini commented
    1 Sep, 2020 09:15pm

    +1

    As this was the functionality in previous versions (even if that functionality was a bug), it would be nice to have this "feature" ;) brought back.

  • +5