new option GroupAndHideAgent

Issue #15 closed
KS created an issue

awffull has a nice option "GroupAndHideAgent" which combines the GroupAgent and HideAgent options in one. It makes a lot of sense to do this. I have configured almost all UserAgents this way in my original file now. Might be a worthwhile addition?

Comments (11)

  1. StoneSteps repo owner

    That would mean that all other group/hide options need to be combined as well and this does not seem like a good option. If anything, I would think rather to have an option to hide all group items. I will give it a thought.

    You also might want to try BundleGroups, which combines groups at the top of the report instead of intermixing them with the rest of the data. GroupShading is another useful option for groups.

  2. KS reporter

    Well, awffull uses only this one directive. It comes in pretty handy, because most of the time one will use it. It's only a "luxury" option, though, yes. Close that suggestion! As background: when I found it in the awffull sample config file I converted to that and now I have to convert back ;-) "BundleGroups" yes seems to be the format that awffull uses, anyway, although it doesn't have this option. They list all the grouped agents, make an empty row and then list all agents that have not been hidden. And the config parsing goes from top to bottom, e.g. I have to be careful about the order of Group* options. I suppose ssw is doing the same?

  3. StoneSteps repo owner

    I can see the benefit of not having to repeat the same value between group and hide options, but just don't find combined options too appealing. Need to think about this one.

    I have to be careful about the order of Group* options. I suppose ssw is doing the same?

    Yes, configuration is processed is top to bottom and those lists functionally are close to the original, so it should behave the same.

  4. StoneSteps repo owner

    I gave this some thought and I will add a configuration value along the lines of hiding all grouped items. This way it will be consistently applied to all items across all reports.

  5. KS reporter

    Do you literally mean "all grouped items" or "all grouped items of a certain type", e.g. GroupAgent? If the latter, this is not what I was asking for, but it may be a good addition, anyway. I do want to see some types grouped and see individual values nevertheless and for other types I want to see only groups. So, for me it would be important to be able to set this per "type".

  6. StoneSteps repo owner

    I meant a global setting. I went back and forth a couple of times on this and in the end the global option will work out for individual item types as well. Here's how.

    Each Configuration file is processed sequentially and values are set as they are encountered. This allows people turn things on and off throughout configuration and should work well for grouping and hiding. I added a new option HideGroupedItems for this.

    For example, if you wanted to report FireFox and Chrome as groups and individually, but IE only as a group, and then the rest of the items as groups and individually, you could have use configuration:

    GroupAgent          FireFox
    GroupAgent          Chrome
    
    HideGroupedItems    yes
    
    GroupAgent          MSIE        Internet Explorer
    
    HideGroupedItems    no
    
    GroupAgent          Opera
    ...
    

    This would allow people to go as fine-grain as they want, but without having to specify individual hide patterns.

  7. Log in to comment