Skip to content

#186 #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 9, 2025
Merged

#186 #188

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions autogole-api/src/python/RTMonLibs/Template.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def _getNextRowID(self):
def addRowPanel(self, row, panels, recordAnnotations=False):
"""Add Panel to the Row (Depending on collapsed or not)"""
# https://github.com/grafana/grafana/issues/50855
print("Breaks")
out = []
if not row['collapsed']:
out.append(row)
Expand All @@ -335,6 +336,7 @@ def addRowPanel(self, row, panels, recordAnnotations=False):
out.append(pan)
if row['collapsed']:
out.append(row)
print("Breaks2")
return out

def _t_getDataSourceUid(self, *_args):
Expand Down Expand Up @@ -377,6 +379,7 @@ def t_addRow(self, *_args, **kwargs):
out = self._t_loadTemplate("row.json")
out["title"] = kwargs.get('title', "Row Title Not Present")
out["id"] = self._getNextRowID()
out["collapsed"] = True
if 'collapsed' in kwargs:
out["collapsed"] = kwargs['collapsed']
return out
Expand Down