This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feature/seat notifications/2.0.0 (#93) * Introduce SeatGroupSyncNotification for SeatNotification 2.0 * Remove unneeded blade resources * create abstract class * add group class * remove php storm creation comment * Missing Refresh Token for seat-notification 2.0 * SeAT Group Application Notification for SeAT-Notifications 2.0 * SeAT Group Error Notification * Added permissions to permission check * remove unneeded routes * Changelog and version bump * Apply fixes from StyleCI * Stopping the propagation of an event in case no one subscribed for event reference: https://laravel.com/docs/5.5/events#defining-listeners * Do not send the same MissingRefreshTokenNotification twice between 4hrs * use qu1ckkk feedback and use sha1 instead of md5 * Apply fixes from StyleCI (#94) (#95) * Release/1.7.0 (#96) * Apply fixes from StyleCI (#94) * correctly assert recipients group instead of the applicant ones. * Implement `dontSend()` for Sync, Error * Apply fixes from StyleCI (#97) * prevent seat-group spamming and resolves: #91 * Add fix changelog note * use get method to * Refreshtoken test * wip * attempt to fix travis * use fullpath * with app? * Refactor class Name * attempt to rename model * try with redis services * local redis working * attempt for localhost redis * spaces * travis + code_climate * travis+code_climate * try with coverage tag * follow code instructions * include services * add alliance and corporation_infos table * logging for code.clover * try to build the coverage-clover * add whitelist * Testing added for change in CatchMissingRefreshToken * Tweaking CatchMissingRefreshToken a little more. * Write changelog * Update Readme * Apply fixes from StyleCI (#105)
- Loading branch information
1 parent
8b16527
commit 311e3a8
Showing
55 changed files
with
1,734 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=5eb31309405cc7b8e6fd74b40e52f2bc072a25dd66900e96ed6bca168c0a720d | ||
|
||
language: php | ||
|
||
php: | ||
- 7.2.1 | ||
|
||
services: | ||
- redis-server | ||
|
||
addons: | ||
hosts: | ||
- redis | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --no-interaction | ||
- composer dump-autoload | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
|
||
script: | ||
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml | ||
|
||
after_script: | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Herpaderpaldent\Seat\SeatGroups\Actions\Seat; | ||
|
||
use Herpaderpaldent\Seat\SeatGroups\Exceptions\MissingMainCharacterException; | ||
use Seat\Web\Models\Group; | ||
|
||
class GetMainCharacterAction | ||
{ | ||
public function execute(Group $group) | ||
{ | ||
$main_character = $group->main_character; | ||
|
||
if (is_null($main_character)) { | ||
logger()->warning('Group has no main character set. Attempt to make assignation based on first attached character.', [ | ||
'group_id' => $group->id, | ||
]); | ||
$main_character = optional($group->users()->has('character')->first())->character; | ||
} | ||
|
||
if (is_null($main_character)) | ||
throw new MissingMainCharacterException($group); | ||
|
||
return $main_character; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.