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

Bug Fix - Qprof - Main Page #298

Merged
merged 1 commit into from
Nov 7, 2024
Merged
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
14 changes: 7 additions & 7 deletions project/ui/qprof_main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,9 @@
"key_2 = widgets.Text(description = \"Key (Optional)\", placeholder = \"Enter a unique Key\", layout=widgets.Layout(width='350px'))\n",
"key_2.style.description_width = '150px'\n",
"key_2_combo = widgets.HBox([key_2, create_tooltip(\"Enter a unique key that will be used to save your profile tables. If your key is already in use then a random key will be generated to store the data. Note that you will need the combination of schema and the key to load your saved data. If you do not provide this, you may not be able to export your profile tables to a tar file.\")])\n",
"target_schema_2 = widgets.Text(description = \"Target Schema (Optional)\", placeholder = \"Enter Schema\",layout=widgets.Layout(width='350px'))\n",
"target_schema_2.style.description_width = '150px'\n",
"target_schema_2_combo = widgets.HBox([target_schema_2, create_tooltip(\"Enter the schema in which you would like to store the profile data. Note that you will need the combination of schema and the key to load your saved data. If you do not provide this, you may not be able to export your profile tables to a tar file.\")])"
"target_schema__2 = widgets.Text(description = \"Target Schema (Optional)\", placeholder = \"Enter Schema\",layout=widgets.Layout(width='350px'))\n",
"target_schema__2.style.description_width = '150px'\n",
"target_schema_2_combo = widgets.HBox([target_schema__2, create_tooltip(\"Enter the schema in which you would like to store the profile data. Note that you will need the combination of schema and the key to load your saved data. If you do not provide this, you may not be able to export your profile tables to a tar file.\")])"
]
},
{
Expand All @@ -629,7 +629,7 @@
" output_1.clear_output(wait=True)\n",
" global target_schema_val_2, key_val_2, statement_val, transaction_val\n",
" with output_1:\n",
" target_schema_val_2 = target_schema_2.value\n",
" target_schema_val_2 = target_schema__2.value\n",
" if not target_schema_val_2 == \"\" and not schema_exists(target_schema_val_2):\n",
" print(\"\\033[91m\\033[1m Error! The schema does not exist. \\033[0m\\033[0m\")\n",
" else:\n",
Expand Down Expand Up @@ -698,7 +698,7 @@
" output_0.clear_output(wait=True)\n",
" global query_val, target_schema_val_2, key_val_2, control_query_val\n",
" with output_0:\n",
" target_schema_val_2 = target_schema_2.value\n",
" target_schema_val_2 = target_schema__2.value\n",
" query_val = query_list(query.value)\n",
" control_query_val = query_list(session_control_sql_textarea.value)\n",
" if not target_schema_val_2 == \"\" and not schema_exists(target_schema_val_2):\n",
Expand Down Expand Up @@ -745,7 +745,7 @@
" if not is_input_valid(transaction_statement_list.value):\n",
" print(\"\\033[91m\\033[1m Error \\033[0m: Please check the input syntax. List of tuples is expected.\")\n",
" else:\n",
" target_schema_val_2 = target_schema_2.value\n",
" target_schema_val_2 = target_schema__2.value\n",
" if not target_schema_val_2 == \"\" and not schema_exists(target_schema_val_2):\n",
" print(\"\\033[91m\\033[1m Error! The schema does not exist. \\033[0m\\033[0m\")\n",
" else:\n",
Expand Down Expand Up @@ -851,7 +851,7 @@
"\n",
"# Function to observe the value of key_dropdown_comp2 and schema_dropdown_comp2, disabling both if user values are present\n",
"def observe_value_change_comp2(change):\n",
" if key_2.value or target_schema_2.value:\n",
" if key_2.value or target_schema__2.value:\n",
" schema_dropdown_comp2.disabled = True\n",
" key_dropdown_comp2.disabled = True\n",
" else:\n",
Expand Down
Loading