wotta / sentry-dashboard-tile
Get an overview of the latest issues or get the issues from a specific project.
Fund package maintenance!
wotta
Requires
- php: ^7.4|^8.0
- ext-json: *
- laravel/framework: ^8.0
- spatie/laravel-dashboard: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- guzzlehttp/guzzle: ^7.5
- orchestra/testbench: ^6.0|^7.0
- php-parallel-lint/php-console-highlighter: ^0.5.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-10-30 01:32:00 UTC
README
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.
Installation
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
Usage
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();
Commands
# sentry:sync:organization:teams
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]
# dashboard:fetch-data-from-sentry-api
Import the projects and issues for the imported projects
php artisan dashboard:fetch-data-from-sentry-api
Testing
The current coverage for the package can be found here.
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email wouter.van.marrum@protonmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.