From 730632e2eb9dc1b04cfecf057b95abc98cdf3f87 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 11 May 2020 22:57:55 -0700 Subject: [PATCH] Apply PR #8043 to develop Signed-off-by: snipe --- app/Http/Controllers/Api/ImportController.php | 9 ++++++++- public/js/build/app.js | Bin 445491 -> 446430 bytes public/js/dist/all.js | Bin 814248 -> 815187 bytes public/mix-manifest.json | 4 ++-- .../js/components/importer/importer-file.vue | 19 ++++++++++++++---- .../passport/PersonalAccessTokens.vue | 8 ++++---- 6 files changed, 29 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/Api/ImportController.php b/app/Http/Controllers/Api/ImportController.php index 5b9bcf6b75..2f88e3f474 100644 --- a/app/Http/Controllers/Api/ImportController.php +++ b/app/Http/Controllers/Api/ImportController.php @@ -118,8 +118,15 @@ class ImportController extends Controller public function process(ItemImportRequest $request, $import_id) { $this->authorize('import'); + // Run a backup immediately before processing - Artisan::call('backup:run'); + if ($request->has('run-backup')) { + \Log::debug('Backup manually requested via importer'); + Artisan::call('backup:run'); + } else { + \Log::debug('NO BACKUP requested via importer'); + } + $errors = $request->import(Import::find($import_id)); $redirectTo = "hardware.index"; switch ($request->get('import-type')) { diff --git a/public/js/build/app.js b/public/js/build/app.js index e26879cb067d3a1a385a5eaac806daa75fa2deee..f62c6449c118d18fb1ffaed8ad2aff997eff6e1d 100644 GIT binary patch delta 2675 zcmZ`*eNa@_6`yzSrqqhqjWFBu%8nQDld+Dy`!rnW|%Oj9$awu!b?W9+$Ti!)9C*|X=| z^E>CfbAIpK*WEt)M#t!`a8h@6@`gA`4WF?ak`W%Cc^>}%CG)VPc5lsU9R(t3W?igg zbhj*;k^|b=_2Y(s$IUla!SBm$*??(mYlid3Z8zqE=?^z$Fip>o?;dq4O@hC!+e-nq z>-Nw=p#1!9D=0Z%#YO_6@V*a&IQh?^GbELr%a<(3(AgmaC-MjRl7b|a=T4RGp%I2| zo3GntZI$-=qJZWLHuwXk%ivQAC4&rCb!S7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P-+CN_vP({$W#XT!<-K%Qz=hh_C_KLzGu zWpKTLKMT(@1vfRZ8Z$5^K3=MYnvi@lg+3! zSX=A@-TrtX&cDNeJRtcc1Nd1x%@W~E7yrydhiRRFJe(%5*hl9{0e;X=2c*b%qG{|6 zRsrvNnF-GIP#M;RXeNAqj4qK9NE&5({-2tK@(wCv_yp}G`1=JmlFL0A`ik8Z;O5sX z2~Xc*-yh*rN3CoSaiC6)aRg;qG!gfIzRTLvt=Vbins(PO@(3YZY#qG<204GLEWR(9^S}vn;R; iV#|h2IQpJpK){6e4as`R<|5+_A+j`MMrEhbvGZRlxo2?z diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 80ab5fc8ee..4444c19b40 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,5 +1,5 @@ { - "/js/build/app.js": "/js/build/app.js?id=a7bc4e83c6d3ae912094", + "/js/build/app.js": "/js/build/app.js?id=f1cc6a7ff104c9cbd2e4", "/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=59413334823616b81341", "/css/build/app.css": "/css/build/app.css?id=3911a887c2bdc7d0b528", "/css/build/overrides.css": "/css/build/overrides.css?id=688f59cd273484405f9b", @@ -34,5 +34,5 @@ "/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=a534edb9f7179f6dcf62", "/js/build/vendor.js": "/js/build/vendor.js?id=ac70ab5fd89efc2aa7d0", "/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=9407782198cbc29f23d1", - "/js/dist/all.js": "/js/dist/all.js?id=f930032e5ca0a4bb587a" + "/js/dist/all.js": "/js/dist/all.js?id=43e4e9e0ddff773e54b2" } diff --git a/resources/assets/js/components/importer/importer-file.vue b/resources/assets/js/components/importer/importer-file.vue index b44ce0b3e7..f876e1aee5 100644 --- a/resources/assets/js/components/importer/importer-file.vue +++ b/resources/assets/js/components/importer/importer-file.vue @@ -22,21 +22,31 @@ tr {
- +
- +
+
- -
+
+ +
+
+ +
+
+ +
+
+
@@ -238,6 +248,7 @@ tr { 'import-update': this.options.update, 'send-welcome': this.options.send_welcome, 'import-type': this.options.importType, + 'run-backup': this.options.run_backup, 'column-mappings': this.columnMappings }).then( ({body}) => { // Success diff --git a/resources/assets/js/components/passport/PersonalAccessTokens.vue b/resources/assets/js/components/passport/PersonalAccessTokens.vue index 6dec30240b..3b96dee17f 100644 --- a/resources/assets/js/components/passport/PersonalAccessTokens.vue +++ b/resources/assets/js/components/passport/PersonalAccessTokens.vue @@ -66,9 +66,9 @@