about summary refs log tree commit diff
path: root/gn3/api/case_attributes.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-02 15:42:18 +0300
committerBonfaceKilz2025-07-07 07:58:31 +0300
commitb781e34590b028dfc656b787f17a20e0fe1c0638 (patch)
tree7f9c3e0696cdfec3b4bf4eb16e38382c66aa94ca /gn3/api/case_attributes.py
parentc122a98cf79c208998e59bb5498e542a0af65640 (diff)
downloadgenenetwork3-b781e34590b028dfc656b787f17a20e0fe1c0638.tar.gz
Delete view_diff end-point.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api/case_attributes.py')
-rw-r--r--gn3/api/case_attributes.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/gn3/api/case_attributes.py b/gn3/api/case_attributes.py
index 2714ad8..95a2d98 100644
--- a/gn3/api/case_attributes.py
+++ b/gn3/api/case_attributes.py
@@ -317,21 +317,3 @@ def reject_case_attributes_diff(
         return jsonify({
             "message": ("You don't have the right privileges to edit this resource.")
         }), 401
-
-
-@caseattr.route("/<int:inbredset_id>/diff/<int:change_id>/view", methods=["GET"])
-@require_token
-def view_diff(inbredset_id: int, change_id: int, auth_token=None) -> tuple[Response, int]:
-    """View a diff."""
-    try:
-        required_access(
-            auth_token, inbredset_id, ("system:inbredset:view-case-attribute",))
-        with (database_connection(current_app.config["SQL_URI"]) as conn,
-              conn.cursor(cursorclass=DictCursor) as cursor):
-            return jsonify(
-                view_change(cursor, change_id)
-            ), 200
-    except AuthorisationError as __auth_err:
-        return jsonify({
-            "message": ("You don't have the right privileges to view the diffs.")
-        }), 401