Skip to content

Get an overview of the latest issues or get the issues from a specific project.

License

Notifications You must be signed in to change notification settings

wotta/laravel-dashboard-sentry-tile

Repository files navigation

A tile to display the issues from sentry

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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 [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Get an overview of the latest issues or get the issues from a specific project.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published