Skip to content

Commit b3af8a6

Browse files
committed
Adapt the dashboard generation script
1 parent 6cf2e6f commit b3af8a6

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/browsergym/workarena/tasks/scripts/generate_dashboard_configs.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from browsergym.workarena.api.utils import table_api_call, table_column_info
1717
from browsergym.workarena.config import (
18-
REPORT_DATE_FILTER,
1918
REPORT_PATCH_FLAG,
2019
REPORT_RETRIEVAL_MINMAX_CONFIG_PATH,
2120
REPORT_RETRIEVAL_VALUE_CONFIG_PATH,
@@ -44,6 +43,10 @@ def all_configs(self):
4443

4544

4645
def get_report_urls(instance):
46+
# Get the instance report filter config
47+
REPORT_DATE_FILTER, REPORT_TIME_FILTER = instance._get_filter_config()
48+
raise NotImplementedError("TODO: Include the time filter as in dashboard.py")
49+
4750
# Generate a bunch of reports on the fly based on valid table fields
4851
ON_THE_FLY_REPORTS = []
4952
for table in [
@@ -226,7 +229,10 @@ def get_all_configs_by_url(url, is_report):
226229

227230

228231
if __name__ == "__main__":
229-
instance = SNowInstance()
232+
233+
# XXX: Make sure to specific the exact instance on which to generate configs (and not use a random one)
234+
instance = SNowInstance(snow_url=None, snow_credentials=None)
235+
230236
reports = get_report_urls(instance)
231237
gen_func = partial(get_all_configs_by_url, is_report=REPORT)
232238

0 commit comments

Comments
 (0)