From 32af38c830264c896c6dee6646a1f1dbce84cc05 Mon Sep 17 00:00:00 2001 From: Patrick Hochstenbach Date: Thu, 14 Sep 2017 12:23:56 +0000 Subject: [PATCH] Adding more test users linked to the publicaitons --- devel/researcher.yml | 56 ++++++++++++++++++++++---------------------- index.sh | 11 +-------- 2 files changed, 29 insertions(+), 38 deletions(-) diff --git a/devel/researcher.yml b/devel/researcher.yml index 8b36208dc..66a22281e 100644 --- a/devel/researcher.yml +++ b/devel/researcher.yml @@ -1,23 +1,23 @@ --- _id: '1' -_version: 2 +_version: 12 account_status: active -date_created: 2017-09-14T07:38:52Z -date_updated: 2017-09-14T07:38:52Z -first_name: Elvis -full_name: Presley, Elvis -last_name: Presley -login: elvis -password: $2a$08$DVI4GDbknih/JMt61b0PVuSbj.ll9yB.C2MITHqkSsz0NMnI0XiWW +date_created: 2017-09-14T07:39:22Z +date_updated: 2017-09-14T12:10:37Z +first_name: Test +full_name: User, Test +last_name: User +login: test +password: $2a$08$Li8NSoaLndvIc3eqO5Y07.eqeXwqYWvem/ekfZeL4vK5V7MqX/Z.u style: apa ... --- _id: '1234' -_version: 1 +_version: 10 account_status: active alias: genius date_created: 2017-09-14T07:38:07Z -date_updated: 2017-09-14T07:38:07Z +date_updated: 2017-09-14T12:00:04Z department: - _id: 9996 email: einstein@physics.com @@ -25,58 +25,58 @@ first_name: Albert full_name: Einstein, Albert last_name: Einstein login: einstein -password: $2a$08$UYr512xTCV9.FktQld.tBe84ptqqONtP3Wuo6deY//wblH1hXlZhm +password: $2a$08$YZGgVi6uHpdXuK0QaXxgX.qmt2abPMoNyDEjUlzDw12lc6jX0PtXC super_admin: 1 ... --- _id: '2' -_version: 1 +_version: 11 account_status: active -date_created: 2017-09-14T07:39:22Z -date_updated: 2017-09-14T07:39:22Z -first_name: Test -full_name: Test, Test -last_name: Test -login: test -password: $2a$08$x067F8z.WNYiLtJ4Mk0/wOliS5fnke7HK0LRpeYEo5bIAzSfobYHS +date_created: 2017-09-14T07:38:52Z +date_updated: 2017-09-14T12:00:04Z +first_name: Elvis +full_name: Presley, Elvis +last_name: Presley +login: elvis +password: $2a$08$xq/ss3QCezgrsjS3/KGiWeJpB8161TpYlqZUVi1r2mCPX9jDSj.92 style: apa ... --- _id: '3' -_version: 1 +_version: 10 account_status: active date_created: 2017-09-14T07:39:48Z -date_updated: 2017-09-14T07:39:48Z +date_updated: 2017-09-14T12:00:05Z first_name: James full_name: Dean, James last_name: Dean login: james -password: $2a$08$aLKiJuc1SbLHL7J3wA47u.iZ2Zry1OB3Pz/RdhB6pKgCI2ue2SsZ6 +password: $2a$08$C5t6tOGcCpEKVldRN3HstuV9t6fO8Um0onKj3qhxJWzTucTM1tRam style: apa ... --- _id: '4' -_version: 1 +_version: 10 account_status: active date_created: 2017-09-14T07:40:42Z -date_updated: 2017-09-14T07:40:42Z +date_updated: 2017-09-14T12:00:05Z first_name: Marilyn full_name: Monroe, Marilyn last_name: Monroe login: marilyn -password: $2a$08$TXyinAi6a8rrV7pmCytoH.DxizD5yMMH7cBiAHvbc8DsZ.6yP2rQq +password: $2a$08$mj7A1hBihzXlCivTGB12NuUxJhtV5/4hUKaWYQrRxAtn/cZHEz4q. style: apa ... --- _id: '5' -_version: 1 +_version: 10 account_status: active date_created: 2017-09-14T07:41:27Z -date_updated: 2017-09-14T07:41:27Z +date_updated: 2017-09-14T12:00:05Z first_name: Natalie full_name: Portman, Natalie last_name: Portman login: natalie -password: $2a$08$XivJnCdT66INAtvFXqZ2UOpu38Qmrl7M.dYg6jXtyHiywFovcXiCq +password: $2a$08$mUIBTKL0cU3cNEgozGLryuDhNdm5SdwqE6/HtTrT3VV/whWoD9wBi style: apa ... diff --git a/index.sh b/index.sh index 4ea384a10..52ef2d344 100755 --- a/index.sh +++ b/index.sh @@ -20,16 +20,7 @@ case "${CMD}" in ;; drop) echo "Dropping index.." - echo "researcher..." - carton exec "bin/librecat delete search --bag researcher" - echo "publication..." - carton exec "bin/librecat delete search --bag publication" - echo "department..." - carton exec "bin/librecat delete search --bag department" - echo "research_group..." - carton exec "bin/librecat delete search --bag research_group" - echo "project..." - carton exec "bin/librecat delete search --bag project" + carton exec "bin/librecat drop search" echo "Done" ;; drop_backup)