From 5eb3b215a525fbd93ae6998960448979984cf923 Mon Sep 17 00:00:00 2001 From: Angelina Uno-Antonison Date: Wed, 27 Sep 2023 13:09:39 -0500 Subject: [PATCH] Created a discussions property in each of the analyses with several posts within them. Removed the temp fixture used in the frontend (#141) --- backend/src/models/analysis.py | 1 + frontend/src/models/analyses.js | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/backend/src/models/analysis.py b/backend/src/models/analysis.py index afb38f8e..3994338f 100644 --- a/backend/src/models/analysis.py +++ b/backend/src/models/analysis.py @@ -80,6 +80,7 @@ class Analysis(BaseAnalysis): genomic_units: List[GenomicUnit] = [] sections: List[Section] = [] + discussions: List = [] supporting_evidence_files: List = [] def units_to_annotate(self): diff --git a/frontend/src/models/analyses.js b/frontend/src/models/analyses.js index 0a6f5490..ccf46ccc 100644 --- a/frontend/src/models/analyses.js +++ b/frontend/src/models/analyses.js @@ -22,21 +22,6 @@ export default { const baseUrl = '/rosalution/api/'; const urlQuery = 'analysis/' + analysisName; const body = await Requests.get(baseUrl + urlQuery); - - body['discussions'] = [{ - 'postId': '', - 'client_id': '', - 'datetimestamp': '', - 'content': [], - 'attachments': [], - 'replies': [{ - 'client_id': '', - 'datetimestamp': '', - 'content': '', - 'attachments': [], - }], - }]; - return body; },