Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using non-row panels in dashboard's panels (#684)
As discussed in grafana/grafana#50855 (comment), panels of rows with collapsed=False should be added to the list of panels that contains that row. Adding non-row panels makes auto_panel_ids() fail with ``` File ".../grafanalib/core.py", line 1751, in auto_panel_ids ids = set([panel.id for panel in self._iter_panels() if panel.id]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File ".../grafanalib/core.py", line 1731, in _iter_panels for row_panel in panel._iter_panels(): ^^^^^^^^^^^^^^^^^^ AttributeError: 'TimeSeries' object has no attribute '_iter_panels' ``` This change fixes this exception.
- Loading branch information