From 57b7970d14bebe3458da66558a58eaf6d6b10266 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 16 Dec 2025 12:09:16 -0600 Subject: 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. --- uploader/phenotypes/views.py | 6 ++++++ 1 file changed, 6 insertions(+) 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"]) -- cgit 1.4.1