Skip to content

Commit

Permalink
[BUG] Fix missing property in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Numkil committed Oct 17, 2024
1 parent 9f286b8 commit 31a73e5
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 57 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 5.1.1 - 2024-03-26
### Fixed
- Fix missing property exluded exceptions

## 5.1.0 - 2024-03-26
### Added
- Add excluded exceptions

## 5.0.0 - 2024-03-26
### Added
- Craft 5 support 🚀
Expand All @@ -26,7 +34,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## 1.1.0 - 2022-03-14
### Added
- Add the ability to pass custom options to the Sentry SDK by listening to the
- Add the ability to pass custom options to the Sentry SDK by listening to the
`SentryService::EVENT_DEFINE_SENTRY_SDK_CONFIGURATION` event
- Honor the Craft [`httpProxy` general setting](https://craftcms.com/docs/3.x/config/config-settings.html#httpproxy)
- Added console function to send a test exception
Expand Down
112 changes: 56 additions & 56 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
{
"name": "statikbe/craft-sentry",
"description": "Sentry.io integration for Craft CMS",
"type": "craft-plugin",
"version": "5.1.0",
"keywords": [
"craft",
"sentry",
"cms",
"craftcms",
"craft-plugin",
"craft sentry"
],
"support": {
"docs": "https://github.com/statikbe/craft-sentry/blob/master/README.md",
"issues": "https://github.com/statikbe/craft-sentry/issues"
},
"license": "MIT",
"authors": [
{
"name": "Statik.be",
"homepage": "https://www.statik.be"
}
],
"require": {
"craftcms/cms": "^5.0.0-beta.1",
"sentry/sdk": "^4.0.0"
},
"require-dev": {
"craftcms/ecs": "dev-main",
"craftcms/phpstan": "dev-main"
},
"scripts": {
"check-cs": "ecs check --ansi",
"fix-cs": "ecs check --ansi --fix",
"phpstan": "phpstan --memory-limit=1G",
"ci": "ecs check --ansi --fix && phpstan --memory-limit=1G"
},
"autoload": {
"psr-4": {
"statikbe\\sentry\\": "src/"
}
},
"extra": {
"name": "Sentry",
"handle": "craft-sentry",
"developer": "Statik.be",
"developerUrl": "https://www.statik.be",
"documentationUrl": "https://github.com/statikbe/craft-sentry/blob/master/README.md",
"changelogUrl": "https://raw.githubusercontent.com/statikbe/craft-sentry/master/CHANGELOG.md",
"class": "statikbe\\sentry\\Sentry"
},
"config": {
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
"name": "statikbe/craft-sentry",
"description": "Sentry.io integration for Craft CMS",
"type": "craft-plugin",
"version": "5.1.1",
"keywords": [
"craft",
"sentry",
"cms",
"craftcms",
"craft-plugin",
"craft sentry"
],
"support": {
"docs": "https://github.com/statikbe/craft-sentry/blob/master/README.md",
"issues": "https://github.com/statikbe/craft-sentry/issues"
},
"license": "MIT",
"authors": [
{
"name": "Statik.be",
"homepage": "https://www.statik.be"
}
],
"require": {
"craftcms/cms": "^5.0.0-beta.1",
"sentry/sdk": "^4.0.0"
},
"require-dev": {
"craftcms/ecs": "dev-main",
"craftcms/phpstan": "dev-main"
},
"scripts": {
"check-cs": "ecs check --ansi",
"fix-cs": "ecs check --ansi --fix",
"phpstan": "phpstan --memory-limit=1G",
"ci": "ecs check --ansi --fix && phpstan --memory-limit=1G"
},
"autoload": {
"psr-4": {
"statikbe\\sentry\\": "src/"
}
},
"extra": {
"name": "Sentry",
"handle": "craft-sentry",
"developer": "Statik.be",
"developerUrl": "https://www.statik.be",
"documentationUrl": "https://github.com/statikbe/craft-sentry/blob/master/README.md",
"changelogUrl": "https://raw.githubusercontent.com/statikbe/craft-sentry/master/CHANGELOG.md",
"class": "statikbe\\sentry\\Sentry"
},
"config": {
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
}
}
2 changes: 2 additions & 0 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ class Settings extends Model
public $anonymous = true;
public $clientDsn;
public $excludedCodes = ['400', '404'];
public $excludedExceptions = [];
public $release;

public function rules(): array
{
return [
[['enabled', 'anonymous'], 'boolean'],
[['clientDsn', 'excludedCodes', 'release'], 'string'],
[['excludedExceptions'], 'array'],
[['clientDsn'], 'required'],
];
}
Expand Down

0 comments on commit 31a73e5

Please sign in to comment.