• Resolved lawlerfa

    (@lawlerfa)


    When bugs are listed with visibility set to “private”, the filter controls no longer work in bug list view (/wp-admin/edit.php?post_type=bug-library-bugs). Instead of listing the various dropdown menus with status, type, priority, etc…, all the dropdown menus for filtering are blank with the exception of filter by month. For some reason that still works.

    We set bugs to “private” because it seemed to be the only way to prevent bugs from showing up to regular users when they did a site-wide search. Now, unfortunately, that fix makes management of the bug list by the editing and development team really awkward, since we can’t filter by what’s open, high priority, etc….

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter lawlerfa

    (@lawlerfa)

    Update – I discovered that it only fails on bugs which are set to “private”. If only one bug is set to public visibility, then the filters work for displaying the criteria available for ONLY that bug.

    For example, if you have 100 active bugs, of which 99 have private visibility, and the one which does have public visibility is status “Open” with type set to “Bug”, then the only drop-down options available are “Open” for status “Bug” for type. All other drop-down items are empty.

    Note that the bugs themselves are all listed; you just can’t filter the ones which are private.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry for the late reply. I think I see what is happening. I made a slight correction to the plugin code, which you can find here:

    https://gist.github.com/ylefebvre/4e4e43d8a13b07c9f8211f711196a1bc

    Can you replace the contents of bug-library.php on your site with this code to see if it resolves the issue you were seeing? If so, I will release an official fix for this. Thanks for letting me know and please consider donating to support this plugin’s development.

    Thread Starter lawlerfa

    (@lawlerfa)

    Thanks, Yannick! It works!

    Avec un nom comme Lefebvre, je me demandais si tu vivais au Quebec, et je vois
    qu’en effet, c’est le cas! I grew up in Hawkesbury, right across the Ottawa river from Lachute, though I live in Seattle now.

    I will definitely donate. Merci!
    -Frank

    Thread Starter lawlerfa

    (@lawlerfa)

    A couple of additional suggestions for features for the plug-in:

    Regarding Quickediting Status/Products/Types/Priorities – it would be really helpful to have those options available as a drop-down (rather than an open-ended text entry box) when doing a quickedit from the bug list, because if a user is not familiar with the options, they get stuck and either cannot fill in anything or fill in something inconsistent with the pre-created options. Furthmore, it would be great to have an assignee drop-down as well, for the same reasons.

    Regarding the Visibility of a bug: When a bug is published and Public, it is visible in the site search results as well as in public view. Can there be a Visibility default settings added under General Options > User Submission Settings for the option to mark bug items Private by default?

    Thanks!
    -Frank

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I am going to add an option to make bugs part of site search or not, which should make it easier on you than making items private. For the drop-down in quick edits, I agree and should be able to implement a fix for that in next few days.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    As a quick update, I just got the drop-down working for one of the items in Quick Edit mode. So from here it’s just going to be scaling this code to work for all of the fields that need drop-downs. Stay tuned. The only thing that might hamper the progress on this is I might need to travel for work for a week, leaving Saturday. I will try to wrap this up beforehand, but will see how things turn out.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I have implemented an option to control whether or not bugs should be excluded of the site search, and have also added five drop-down lists to the quick edit.

    Can you test this out and see if it works correctly with your production data?

    https://gist.github.com/ylefebvre/a054f929ff2869c0f721897d41b7a164

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry, I never replied to your comment about where I live. Yes, I am in Quebec. Laval to be more specific. My father in law lived in Hawkesbury for about 10 years so I know the area quite well.

    Thread Starter lawlerfa

    (@lawlerfa)

    Hi Yannick,
    I’ll check out the new code by tomorrow and let you know.
    Thanks!
    Frank

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Besides the warning that you reported, is the rest of the code update working corectly?

    Thread Starter lawlerfa

    (@lawlerfa)

    Hi Yannick,
    Yes, I think so! I’ll keep you posted.
    Merci,
    Frank

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Just released all changes in this thread as new official release.

    Thread Starter lawlerfa

    (@lawlerfa)

    Great. Thanks. I’ll update and see how it goes!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Bug filter options go away when bug posts are Private’ is closed to new replies.