From b781e34590b028dfc656b787f17a20e0fe1c0638 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 2 Jul 2025 15:42:18 +0300 Subject: Delete view_diff end-point. Signed-off-by: Munyoki Kilyungi --- gn3/api/case_attributes.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'gn3/api/case_attributes.py') 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("//diff//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 -- cgit 1.4.1