about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-16 12:09:16 -0600
committerFrederick Muriuki Muriithi2025-12-16 12:09:16 -0600
commit57b7970d14bebe3458da66558a58eaf6d6b10266 (patch)
tree4353ac39a781d0abd7e2725adf188074e333e304
parentb3fe0f2dc1dc1a11158df5163d714321fc24f448 (diff)
downloadgn-uploader-57b7970d14bebe3458da66558a58eaf6d6b10266.tar.gz
Redirect to "View Populations" page
While the streamlined UI is under construction, redirect the request
back to the "View Population" page for the time being, until the UI
requirements have been figured out.
-rw-r--r--uploader/phenotypes/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 2afd8a3..5b6f965 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -183,6 +183,12 @@ def with_dataset(
 def view_dataset(# pylint: disable=[unused-argument]
         species: dict, population: dict, dataset: dict, **kwargs):
     """View a specific dataset"""
+    if bool(request.args.get("streamlined_ui")):
+        # Redirect back to the "View Population" page for the time being.
+        return redirect(url_for("species.populations.view_population",
+                                species_id=species["SpeciesId"],
+                                population_id=population["Id"]))
+
     with database_connection(app.config["SQL_URI"]) as conn:
         dataset = dataset_by_id(
             conn, species["SpeciesId"], population["Id"], dataset["Id"])