This package allows you to get an overview of the latest 20 issues or get the issues from a specific project.
This tile can be used on the Laravel Dashboard.
You can install the package via composer:
composer require wotta/sentry-dashboard-tile
To publish the migration stubs you need to run the following command
php artisan vendor:publish --tag=dashboard-sentry-migrations
In your dashboard view you use the livewire:sentry-tile
component.
<x-dashboard>
<livewire:sentry-tile position="a1:a2" title="Issues" :showMeta="true" :refresh-interval-in-seconds="30" />
<livewire:sentry-tile position="b1:b2" title="Issues" projectName="your-project" :showMeta="false" :refresh-interval-in-seconds="30" />
</x-dashboard>
You need to add the following config to your dashboard.php
config file.
'tiles' => [
'sentry' => [
'organization' => 'exampleorg',
'token' => env('SENTRY_TILE_TOKEN'),
'production_only' => env('SENTRY_TILE_PRODUCTION', false),
]
]
And to periodically sync the issues from sentry you need to add the following to your Console/Kernel.php
:
$schedule->command(ListenForSentryIssuesCommand::class)->everyThirtyMinutes();
Add the following code to your Console/Kernel.php
to import the teams (and projects).
$schedule->command(SyncOrganizationTeams::class, [
'--with-projects'
])->hourly();
Import the teams that belong to this organization
Arguments:
- organization - The organization name
Optional
Options:
- with-projects - Import the projects that belong to the organization
Optional
php artisan sentry:sync:organization:teams [<organization>] [--with-projects]
Import the projects and issues for the imported projects
php artisan dashboard:fetch-data-from-sentry-api
The current coverage for the package can be found here.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.