Repository navigation
Task/FOUR-34428: Move created vue components to plugin project #9183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| use DateTimeInterface; | ||
| use Illuminate\Contracts\Auth\Authenticatable; | ||
| use Illuminate\Database\Eloquent\Builder; | ||
| use Illuminate\Database\QueryException; | ||
| use Illuminate\Support\Facades\DB; | ||
| use Illuminate\Validation\Rule; | ||
| use Illuminate\Validation\ValidationException; | ||
|
|
@@ -285,8 +286,15 @@ private function summary(Collection $collection): array | |
| { | ||
| $count = 0; | ||
| $table = 'collection_' . $collection->id; | ||
| if (DB::getSchemaBuilder()->hasTable($table)) { | ||
| $count = (int) DB::table($table)->count(); | ||
| try { | ||
| if (DB::getSchemaBuilder()->hasTable($table)) { | ||
| $count = (int) DB::table($table)->count(); | ||
| } | ||
| } catch (QueryException $e) { | ||
| // MySQL 1412: DDL that created collection_* inside an open txn invalidates the table cache. | ||
| if (!str_contains($e->getMessage(), '1412')) { | ||
| throw $e; | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exception matcher swallows unrelated errorsLow Severity The Reviewed by Cursor Bugbot for commit 454eea0. Configure here. |
||
| } | ||
|
|
||
| return [ | ||
|
|
||
This file was deleted.


Uh oh!
There was an error while loading. Please reload this page.