Skip to content
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

QueryProfiler UI Update #241

Merged
merged 7 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions project/ui/conn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@
"from IPython.display import display, HTML\n",
"\n",
"# Define the URLs for the links\n",
"url1 = \"http://127.0.0.1:8889/lab/workspaces/auto-3\"\n",
"url2 = \"http://127.0.0.1:8889/voila/render/ui/qprof_main.ipynb\"\n",
"url1 = \"/lab/\"\n",
"url2 = \"/voila/render/ui/qprof_main.ipynb\"\n",
"\n",
"# Define the button labels\n",
"button_label1 = \"Go to Home Page\"\n",
Expand Down
24 changes: 19 additions & 5 deletions project/ui/qprof-ui.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
" %store -r transaction_val\n",
" %store -r statement_val\n",
" %store -r file_val\n",
" %store -r target_schema_val_2\n",
" %store -r key_val_2\n",
" %store -r transaction_statement_list_val\n",
"\n",
" if \"file_val\" in globals():\n",
" qprof = QueryProfiler.import_profile(target_schema=target_schema_val,\n",
Expand All @@ -31,7 +34,7 @@
" )\n",
" qprof = QueryProfilerInterface(\n",
" target_schema = target_schema_val,\n",
" key_id = key_val,\n",
" key_id = key_val if \"key_val\" in globals() else None,\n",
" )\n",
" elif \"target_schema_val\" in globals():\n",
" qprof = QueryProfilerInterface(\n",
Expand All @@ -40,12 +43,23 @@
" )\n",
" elif \"query_val\" in globals():\n",
" qprof = QueryProfilerInterface(\n",
" query_val\n",
" query_val,\n",
" target_schema = target_schema_val_2 if \"target_schema_val_2\" in globals() else None,\n",
" key_id = key_val_2 if \"key_val_2\" in globals() else None, \n",
" )\n",
" elif \"transaction_val\" in globals():\n",
" qprof = QueryProfilerInterface(\n",
" transactions = (transaction_val, statement_val)\n",
" )"
" transactions = (transaction_val, statement_val),\n",
" target_schema = target_schema_val_2 if \"target_schema_val_2\" in globals() else None,\n",
" key_id = key_val_2 if \"key_val_2\" in globals() else None,\n",
" )\n",
"\n",
" elif \"transaction_statement_list_val\" in globals():\n",
" qprof = QueryProfilerInterface(\n",
" transactions = transaction_statement_list_val,\n",
" target_schema = target_schema_val_2 if \"target_schema_val_2\" in globals() else None,\n",
" key_id = key_val_2 if \"key_val_2\" in globals() else None,\n",
" )\n"
]
},
{
Expand Down Expand Up @@ -121,7 +135,7 @@
"outputs": [],
"source": [
"# Define the URLs for the links\n",
"url1 = \"http://127.0.0.1:8889/voila/render/ui/qprof_main.ipynb\"\n",
"url1 = \"/voila/render/ui/qprof_main.ipynb\"\n",
"# Define the button labels\n",
"button_label1 = \"Go Back\"\n",
"# Define HTML links for button\n",
Expand Down
Loading
Loading