File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ import json
12import os
23import requests
34import re
45
56from playwright .sync_api import sync_playwright
67from typing import Optional
78
8- from .config import SNOW_BROWSER_TIMEOUT
9+ from .config import SNOW_BROWSER_TIMEOUT , REPORT_FILTER_PROPERTY
910
1011
1112class SNowInstance :
@@ -124,3 +125,25 @@ def release_version(self) -> str:
124125 browser .close ()
125126
126127 return release_info
128+
129+ @property
130+ def report_filter_config (self ) -> dict :
131+ """
132+ Get the report filter configuration from the ServiceNow instance.
133+
134+ Returns:
135+ --------
136+ dict
137+ The report filter configuration, or an empty dictionary if not found.
138+
139+ """
140+ from .api .system_properties import (
141+ get_sys_property ,
142+ ) # Import here to avoid circular import issues
143+
144+ try :
145+ config = get_sys_property (self , REPORT_FILTER_PROPERTY )
146+ config = json .loads (config )
147+ return config
148+ except Exception :
149+ return None
You can’t perform that action at this time.
0 commit comments