Ignore:
Timestamp:
Jun 24, 2020, 8:46:34 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1257: Remove the one-time-fix implemented for inserting lysate items between specimen and RNA

Location:
extensions/net.sf.basedb.relax/trunk/src/net/sf/basedb/relax
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.relax/trunk/src/net/sf/basedb/relax/servlet/InstallServlet.java

    r5874 r5977  
    4343import net.sf.basedb.core.SessionControl;
    4444import net.sf.basedb.core.SharedItem;
    45 import net.sf.basedb.core.SimpleProgressReporter;
    4645import net.sf.basedb.core.SystemItems;
    4746import net.sf.basedb.core.Type;
     
    5655import net.sf.basedb.relax.dao.Rawdatatype;
    5756import net.sf.basedb.relax.dao.Subtype;
    58 import net.sf.basedb.relax.fixit.AddLysateFix;
    5957import net.sf.basedb.util.error.ThrowableUtil;
    6058import net.sf.basedb.util.uri.ConnectionManager;
     
    126124        jsonChecks.add(checkSubtype(dc, Subtype.BLOOD, createIfMissing));
    127125        jsonChecks.add(checkSubtype(dc, Subtype.BLOOD_DNA, createIfMissing));
    128         JSONObject jsonLysate = checkSubtype(dc, Subtype.LYSATE, createIfMissing);
    129         jsonChecks.add(jsonLysate);
     126        jsonChecks.add(checkSubtype(dc, Subtype.LYSATE, createIfMissing));
    130127        jsonChecks.add(checkSubtype(dc, Subtype.RNA, createIfMissing));
    131128        jsonChecks.add(checkSubtype(dc, Subtype.DNA, createIfMissing));
     
    186183        json.put("checks", jsonChecks);
    187184       
    188         if (jsonLysate.get("id") != null)
    189         {
    190           json.put("rnaToSpecimenCount", AddLysateFix.countRNAWithLinkToSpecimen(dc));
    191         }
    192        
    193185        if (createIfMissing)
    194186        {
    195187          dc.commit();
    196188        }
    197       }
    198       else if ("FixRNALinkToLysate".equals(cmd))
    199       {
    200         Relax.checkIsAdmin(sc, "'" + cmd + "' wizard");
    201         JSONArray jsonMessages = new JSONArray();
    202        
    203         SimpleProgressReporter progress = new SimpleProgressReporter(null);
    204         progressId = "relink-rna-progress";
    205         sc.setSessionSetting(progressId, progress);
    206 
    207         progress.display(5, "Loading items...");
    208 
    209         dc = sc.newDbControl();
    210        
    211         AddLysateFix fix = new AddLysateFix(jsonMessages);
    212         fix.checkAndFixLysateAnnotationTypeCategory(dc);
    213         fix.createLysateItems(dc, progress);
    214 
    215         json.put("messages", jsonMessages);
    216         progress.display(95, "Saving all changes to the database...");
    217         dc.commit();
    218189      }
    219190    }
Note: See TracChangeset for help on using the changeset viewer.