Commit 3ed1a9c
authored
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.1 parent 5c3b17e commit 3ed1a9c
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1825 | 1825 | | |
1826 | 1826 | | |
1827 | 1827 | | |
1828 | | - | |
1829 | | - | |
| 1828 | + | |
| 1829 | + | |
1830 | 1830 | | |
1831 | 1831 | | |
1832 | | - | |
1833 | | - | |
1834 | 1832 | | |
1835 | 1833 | | |
1836 | 1834 | | |
| |||
0 commit comments