From dd677b6deabd6e4cfd973e09675ed51d2044dc50 Mon Sep 17 00:00:00 2001 From: Juan Fuentes <juanf@bs-mbpr28.d.ethz.ch> Date: Tue, 3 Sep 2019 10:43:11 +0200 Subject: [PATCH] SSDM-8592 : Using the new feature --- .../eln-lims/1/as/initialize-master-data.py | 10 ---------- .../eln-lims/1/as/master-data/data-model.xls | Bin 73728 -> 74752 bytes 2 files changed, 10 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/initialize-master-data.py b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/initialize-master-data.py index 078f2ae70ba..7bb0dbf5593 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/initialize-master-data.py +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/initialize-master-data.py @@ -16,7 +16,6 @@ # MasterDataRegistrationTransaction Class from ch.ethz.sis.openbis.generic.server.asapi.v3 import ApplicationServerApi from ch.systemsx.cisd.openbis.generic.server import CommonServiceProvider -from ch.systemsx.cisd.openbis.generic.server import ComponentNames from ch.ethz.sis.openbis.generic.asapi.v3.dto.service.id import CustomASServiceCode from ch.ethz.sis.openbis.generic.asapi.v3.dto.service import CustomASServiceExecutionOptions from ch.systemsx.cisd.openbis.generic.server.jython.api.v1.impl import MasterDataRegistrationHelper @@ -29,15 +28,6 @@ props = CustomASServiceExecutionOptions().withParameter('xls', helper.listXlsByt .withParameter('xls_name', 'ELN-LIMS').withParameter('update_mode', 'IGNORE_EXISTING')\ .withParameter('scripts', helper.getAllScripts()) result = api.executeCustomASService(sessionToken, CustomASServiceCode("xls-import-api"), props); -# Updating MULTILINE_VARCHAR to use "Word Processor" for all Properties -daoFactory = CommonServiceProvider.getApplicationContext().getBean(ComponentNames.DAO_FACTORY); -currentSession = daoFactory.getSessionFactory().getCurrentSession(); -SQL = "UPDATE property_types SET meta_data = cast(:meta_data AS jsonb) WHERE id IN (SELECT id FROM property_types WHERE daty_id = (SELECT id FROM data_types WHERE code = 'MULTILINE_VARCHAR'))"; -meta_data = "{ \"custom_widget\" : \"Word Processor\" }"; -sqlQuery = currentSession.createSQLQuery(SQL); -sqlQuery.setParameter("meta_data", meta_data); -sqlQuery.executeUpdate(); -# print("======================== master-data xls ingestion result ========================") print(result) print("======================== master-data xls ingestion result ========================") diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/master-data/data-model.xls b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/master-data/data-model.xls index c061f53d70d87bbbb9cf15446655855d2d1bf0ce..16332eb71f3a9ddbf34d818a04319e5fb81200c1 100644 GIT binary patch delta 6608 zcmaKx4O~_A8ONV<xV&D`D`31ju1wLa&2nT@)Goef$iRHrYGDQ_nFd{O7J>)0p`;>q zY!nrhxqWmQjUBB9sm)x=+VTZSz&GY(pPJip7D_6z=l?%1_q;rxT|W0d=YH?+|Ni^G zoI~Y@uF6kbwb?>NQ_e?%ut^yrwhErr08ozaTmAk0efXApgH{IbJ23aI$7H{&N}TwW za^2PF3V~Ou5h;z~<Ai~gli$SaHsSKDW+uB5;Wtp%Fpm80b;25@$NjZv`$f4j&~MK` z@q6;cun&s=BJ@jppH$98WxC|-=oDpiY<qZc7sP;9{@ObtBnNscj-@II!wyHwzLcn_ zY^<~hk@&laSNQ5zj;GCz65f@QW-bf8obXUEK%uf_=6eZJ7{Hu@(#83UOBbgCtoEkl ztt=@mTCr%=<M~SqN>jWOyeSKd{Q2H&e^FjRNlB4E#aq!2%Y-nvaSy-%%=`6m08JR( z_W~pdm<Ptq82^Q_52N&BfLg3a{CI%TK>*h<hPeRRCjfjU;l<PG0M%Hd%NT_afZT}y zMHp{k92AN*odoa<#xF5`hcRz5Kq=OH?0o=J!vPLpJc=>a2QVrE3&;2>#!(pn<K0*R zjI|gKVQj_dodR$-*1Q3u^bTHpix<I>0Kb?DumNMmG=Q3c0Jl#Em@o)n{tSR69)Ob= zyD=`B2~a#3TQLh;6@{(3A0Ry%pbg_cF#c&az!xz9FFydVX9&QIOn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