From f774ac0fd5587b57f82195b87376d947a9deb340 Mon Sep 17 00:00:00 2001
From: Mirco Nasuti <mirco.nasuti@chuv.ch>
Date: Wed, 3 Feb 2016 09:49:41 +0100
Subject: [PATCH] update README -> add bugs list

---
 README.md                                     | 27 +++++++++++++++----
 .../org/hbp/mip/controllers/ModelsApi.java    | 26 ------------------
 2 files changed, 22 insertions(+), 31 deletions(-)

diff --git a/README.md b/README.md
index e15c7981a..b2a40b34b 100644
--- a/README.md
+++ b/README.md
@@ -12,13 +12,30 @@ The API documentation is available at `<BASE URL>/swagger-ui.html`. A JSON versi
 
 ## TODO
 
+* Fix bugs;
 * Externalize configuration (DB parameters, security enabled/disabled, ...);
-* Sync backend with hand written Swagger specs (see Maintenance section below);
+* Decide if an update on a model should affect the articles including it;
+* Add author's view if needed;
+* Implement delete methods if  needed;
 * Implement logout;
-* Add some details to the group and variable models like descriptions;
-* Update frontend (add introduction page, hide header/footer when not logged in, remove mock authors, real stats like users count);
-* Fix bugs;
-* Add SoapUI tests.
+* Add introduction page;
+* Update front-end behavior when not logged in;
+* Clean code (both back-end front-end);
+* Sync with original Swagger description;
+* Implement SoapUI tests;
+* Make user tests with multiple users.
+
+## BUGS
+
+* Copy a model;
+* When updating an article from the 'recent articles' list, bug with 'publish' state;
+* When updating a model the SVG is not updated (SVG updates when opening article editor);
+* Dynamic stats (users, articles, ...);
+* In the profile view, we shouldn't see the '+' between firstname and lastname;
+* In the profile view links to own articles and so on, are not implemented;
+* Export PDF;
+
+
 
 ### Maintenance
 
diff --git a/src/main/java/org/hbp/mip/controllers/ModelsApi.java b/src/main/java/org/hbp/mip/controllers/ModelsApi.java
index 371173644..38c6cf100 100644
--- a/src/main/java/org/hbp/mip/controllers/ModelsApi.java
+++ b/src/main/java/org/hbp/mip/controllers/ModelsApi.java
@@ -144,32 +144,6 @@ public class ModelsApi {
         Model model = (Model) query.uniqueResult();
         session.getTransaction().commit();
 
-        // Inject mock data
-        /*List<Object> values = new LinkedList<>();
-        values.add(18422);
-        values.add(16972);
-        values.add(17330);
-        values.add(16398);
-        values.add(21614);
-        values.add(21386);
-        values.add(20474);
-        values.add(19867);
-        values.add(20398);
-        values.add(19741);
-        values.add(18595);
-        values.add(18018);
-        model.getDataset().getData().put("MidTemp", values);
-        model.getDataset().getHeader().add("MidTemp");*/
-
-        /*session = HibernateUtil.getSessionFactory().getCurrentSession();
-        session.beginTransaction();
-        query = session.createQuery("from Dataset where code= :code");
-        query.setString("code", model.getDataset().getCode());
-        Dataset dataset = (Dataset) query.uniqueResult();
-        session.getTransaction().commit();
-
-        System.out.println("keyset : "+dataset.getData().keySet());*/
-
         session = HibernateUtil.getSessionFactory().getCurrentSession();
         session.beginTransaction();
         query = session.createQuery("from Query where id= :id");
-- 
GitLab