From 06be02579743b80b1f6d3600435af13f80f27af5 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Fri, 10 Nov 2023 09:40:31 +0100 Subject: [PATCH] fix: various updates and bug fixes --- app/Jobs/ArchiveProject.php | 3 ++- app/Jobs/ArchiveStudy.php | 3 ++- .../migrations/2022_09_16_115525_create_nmrium_table.php | 8 ++++---- resources/js/Pages/Public/Project/Files.vue | 2 +- resources/js/Shared/Children.vue | 6 +++--- resources/js/Shared/FileSystemBrowser.vue | 4 ++-- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/Jobs/ArchiveProject.php b/app/Jobs/ArchiveProject.php index e21a744d..1d248758 100644 --- a/app/Jobs/ArchiveProject.php +++ b/app/Jobs/ArchiveProject.php @@ -6,6 +6,7 @@ use App\Models\Project; use Aws\S3\S3Client; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; @@ -13,7 +14,7 @@ use Illuminate\Support\Facades\Storage; use ZipStream; -class ArchiveProject implements ShouldQueue +class ArchiveProject implements ShouldQueue, ShouldBeUnique { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; diff --git a/app/Jobs/ArchiveStudy.php b/app/Jobs/ArchiveStudy.php index 5a649f72..f6111300 100644 --- a/app/Jobs/ArchiveStudy.php +++ b/app/Jobs/ArchiveStudy.php @@ -5,6 +5,7 @@ use App\Models\Project; use Aws\S3\S3Client; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; @@ -13,7 +14,7 @@ use Illuminate\Support\Facades\Storage; use ZipStream; -class ArchiveStudy implements ShouldQueue +class ArchiveStudy implements ShouldQueue, ShouldBeUnique { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; diff --git a/database/migrations/2022_09_16_115525_create_nmrium_table.php b/database/migrations/2022_09_16_115525_create_nmrium_table.php index 31a0f539..5f54e12f 100644 --- a/database/migrations/2022_09_16_115525_create_nmrium_table.php +++ b/database/migrations/2022_09_16_115525_create_nmrium_table.php @@ -20,10 +20,10 @@ public function up() $table->timestamps(); }); - // Schema::table('datasets', function (Blueprint $table) { - // $table->dropColumn('nmrium_info'); - // $table->boolean('has_nmrium')->nullable()->default(0); - // }); + Schema::table('datasets', function (Blueprint $table) { + $table->dropColumn('nmrium_info'); + $table->boolean('has_nmrium')->nullable()->default(0); + }); } /** diff --git a/resources/js/Pages/Public/Project/Files.vue b/resources/js/Pages/Public/Project/Files.vue index 459306dc..8d248053 100644 --- a/resources/js/Pages/Public/Project/Files.vue +++ b/resources/js/Pages/Public/Project/Files.vue @@ -1,7 +1,7 @@