•  
      request #24154 Grouping a bar chart on a field with "None" values throws an error
    Infos
    #24154
    Thomas Gerbet (tgerbet)
    2021-11-18 15:10
    2021-11-18 11:36
    25703
    Details
    Grouping a bar chart on a field with "None" values throws an error

    Reproduction steps:

    1. Create a bar chart
    2. Select some source data
    3. Group the chart on a field with "None" values

    Trace:

    Caught exception: Try to access to an unknown key :
    #0 /usr/share/tuleap/plugins/graphontrackersv5/include/graphic-library/BarChartDataBuilder.php(100): Tuleap\GraphOnTrackersV5\GraphicLibrary\BarChartDataBuilder->getXaxisKeyFromLabel()
    #1 /usr/share/tuleap/plugins/graphontrackersv5/include/graphic-library/BarChartDataBuilder.php(33): Tuleap\GraphOnTrackersV5\GraphicLibrary\BarChartDataBuilder->buildGroupByFieldValues()
    #2 /usr/share/tuleap/plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine_Bar.class.php(175): Tuleap\GraphOnTrackersV5\GraphicLibrary\BarChartDataBuilder->buildGroupedBarChartData()
    #3 /usr/share/tuleap/plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine_Bar.class.php(163): GraphOnTrackersV5_Engine_Bar->getGroupedBarChartData()
    #4 /usr/share/tuleap/plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine_Bar.class.php(154): GraphOnTrackersV5_Engine_Bar->getChartData()
    #5 /usr/share/tuleap/plugins/graphontrackersv5/include/data-access/GraphOnTrackersV5_Chart.class.php(370): GraphOnTrackersV5_Engine_Bar->toArray()
    #6 /usr/share/tuleap/plugins/graphontrackersv5/include/Async/ChartDataController.php(99): GraphOnTrackersV5_Chart->fetchAsArray()
    #7 /usr/share/tuleap/src/common/Http/Server/RequestHandlerAsMiddleware.php(44): Tuleap\GraphOnTrackersV5\Async\ChartDataController->handle()
    #8 /usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php(52): Tuleap\Http\Server\RequestHandlerAsMiddleware->process()
    #9 /usr/share/tuleap/src/common/Http/Server/SessionWriteCloseMiddleware.php(36): Tuleap\Http\Server\MiddlewareDispatcher->handle()
    #10 /usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php(52): Tuleap\Http\Server\SessionWriteCloseMiddleware->process()
    #11 /usr/share/tuleap/src/common/Request/DispatchablePSR15Compatible.php(62): Tuleap\Http\Server\MiddlewareDispatcher->handle()
    #12 /usr/share/tuleap/src/common/Request/FrontRouter.php(248): Tuleap\Request\DispatchablePSR15Compatible->process()
    #13 /usr/share/tuleap/src/common/Request/FrontRouter.php(108): Tuleap\Request\FrontRouter->routeHandler()
    #14 /usr/share/tuleap/src/www/index.php(49): Tuleap\Request\FrontRouter->route()
    #15 {main}
    
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-11-18
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    integrated to Tuleap 13.2.99.41


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-11-18