Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.x #659

Merged
merged 97 commits into from
Oct 2, 2024
Merged

5.0.x #659

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
277b9f7
refactor: declare web ui settings
Crypta-Eve Dec 8, 2022
609b193
refactor: prefix all routes
warlof Jan 1, 2022
491a4fd
refactor: make login command compliant with L7
warlof Jan 1, 2022
7c91937
refactor: convert factories to be L8 compliant
warlof Jan 1, 2022
12f674c
refactor: rename seeds to seeders directory to be L8 compliant
warlof Jan 1, 2022
01c061e
deps: init api port to be L8 compliant
Crypta-Eve Dec 8, 2022
0345e01
fix: use plugin provider to register api annotations
warlof Jan 3, 2022
298c166
refactor: call raw original to retrieve not mutated value
warlof Jan 3, 2022
1943156
fix: add missing primary key to login histories
warlof Jan 4, 2022
99043b7
refactor: remove field from counting expression
warlof Jan 5, 2022
17d20b8
refactor: replace date_add by computation syntax
warlof Jan 5, 2022
afbf762
refactor: remove table escape ` character
warlof Jan 5, 2022
8fdc990
refactor: replace month and year function by universal extract
warlof Jan 5, 2022
2d4b4a3
refactor: rename aggregated field in lowercase
warlof Jan 5, 2022
ff6842b
refactor: new socialite package is non longer sending socialite in ro…
warlof Jan 5, 2022
b20f762
fix: use proper favicons path
warlof Jan 5, 2022
6cabfeb
fix: remove old datatable script
warlof Jan 5, 2022
2b63941
feat: register seeder to seeders stack
warlof Jan 5, 2022
96fb288
refactor: make IntelController pgsql compliant
warlof Jan 7, 2022
298cea3
refactor: address a typo in favicon directory
warlof Jan 9, 2022
cf389db
deps: update dependencies to L9
warlof Feb 9, 2022
540f161
refactor: convert openapi docs to attributes
warlof Feb 12, 2022
a3d8f43
fix: s/online_layers/online_players/g
Crypta-Eve Dec 8, 2022
d5d1fda
Round Security Status in Character Overview
Crypta-Eve Feb 20, 2022
25ee6fa
fix: only show corp member limit if we have it
Crypta-Eve Feb 23, 2022
b2e6520
remove tracking ordering from alliance tracking datatable
Crypta-Eve Feb 23, 2022
f0a583f
feat: update logo (#607)
Crypta-Eve Dec 8, 2022
8460f3c
fix: adjust client_id config path
Crypta-Eve Jan 29, 2023
21e668c
revert: revert tom-select changeover
Crypta-Eve Feb 7, 2023
f0f35cb
fix: correct esi setting path
Crypta-Eve Feb 7, 2023
d73bf7d
chore: bump to laravel 10
Crypta-Eve Feb 15, 2023
6355b97
chore: bump datatables version
Crypta-Eve Feb 15, 2023
0a9aa91
chore: bump laravel ui version
Crypta-Eve Feb 15, 2023
31a6998
chore: bump datatables buttons version
Crypta-Eve Feb 15, 2023
6df3d68
fix: type hint and fix return of ajax datatable
Crypta-Eve Feb 16, 2023
06955d0
fix: type hint and fizx return of ajax datatable
Crypta-Eve Feb 16, 2023
62dc53c
fix: remove eveskillboard, correct evewho and zkill
Crypta-Eve Feb 16, 2023
6c031f8
fix: add warning for corporation history
Crypta-Eve Feb 16, 2023
b9e95dc
fix: remove MarketHistory price usages
Crypta-Eve Feb 16, 2023
e35fd64
fix: link UI extraction volume to model const
Crypta-Eve Feb 16, 2023
1dddb38
fix: link UI extraction volume to model const
Crypta-Eve Feb 16, 2023
c1d6e4e
style: apply fixes from StyleCI (#642)
warlof Mar 5, 2023
5251a25
deps: switch eseye to 3.x wip
warlof Mar 5, 2023
7206b9d
deps: bump datatables version (#644)
recursivetree Mar 28, 2023
342dc40
ci: apply fixes from StyleCI (#645)
warlof Mar 28, 2023
a8527c2
feat: market browser (#641)
recursivetree Apr 13, 2023
7ca75e3
feat: allow command arguments in schedule (#635)
recursivetree Apr 14, 2023
b39fc3c
feat: allow available skins to be configurable (#647)
recursivetree Apr 27, 2023
b526fe2
fix(deps): remove orchestra/database replaced by laravel core
warlof May 21, 2023
888595b
fix: address copy/pasta issue
warlof May 21, 2023
1e2f2c1
refactor: ensure classes are compliant with their parent
warlof May 21, 2023
a1ee01d
fix: publish poppins font to public directory
warlof May 27, 2023
882002f
feat: various moon reporter QoL enhancements (#649)
recursivetree May 30, 2023
c023680
Merge branch '5.0.x' into backport-master
warlof May 30, 2023
f4dac4f
Merge pull request #651 from eveseat/backport-master
warlof May 30, 2023
c03893d
feat(logs): add viewer in order to make logs more accessible with doc…
warlof May 30, 2023
f3702f4
fix: inject esi client into resolver controllers
warlof Jun 10, 2023
ccec2a8
refactor: prevent excessive ESI calls while searching entity
warlof Jun 10, 2023
7dab51b
fix: ensure used profile for a token is trackable
warlof Jun 25, 2023
91852bf
deps: lock packages version
warlof Jul 14, 2023
833b4e1
ci: push against 5.0.x branch
warlof Jul 14, 2023
60fc15c
fix: upgrade tests to be L10 compliant
warlof Jul 15, 2023
d9c3fd5
ci: move tests run to github action
warlof Jul 15, 2023
47240bd
feat: ensure migrations are compliant with pgsql (#655)
warlof Aug 20, 2023
fe45844
style: apply fixes from StyleCI (#656)
warlof Aug 20, 2023
d05ca29
Rewrite Filterable trait used for Squad filters (#658)
recursivetree Dec 24, 2023
21fdd20
show alts of characters with invalid tokens (#657)
recursivetree Dec 24, 2023
fbb4e79
Fix intel page error (#660)
recursivetree Jan 1, 2024
7d10130
Revert "Rewrite Filterable trait used for Squad filters" (#663)
warlof Jan 14, 2024
630ebaa
use bootstrap pagination templates (#662)
recursivetree Jan 22, 2024
9eae233
bring own datatables file (#666)
recursivetree Jan 29, 2024
d28c4e9
fix: update old default cron to be valid (#664)
Crypta-Eve Jan 29, 2024
808a161
Apply fixes from StyleCI (#667)
Crypta-Eve Jan 29, 2024
02c17f4
fix: add missing datatables plugins (#668)
recursivetree Jan 30, 2024
c45a026
chore: remove notice re employment history endpoint (#669)
Crypta-Eve Feb 14, 2024
49e1f56
Bring Corporation Wallet Ledger Bounty in line with Character Bounty …
MeaFallenstar Feb 14, 2024
34f95b5
Redesign squad filters (#671)
recursivetree Mar 14, 2024
24ff154
fix: seat-docker main branch and update checkout to v4
Crypta-Eve Mar 20, 2024
3ab32b5
feat: allow manual docker updates
Crypta-Eve Mar 20, 2024
27a4a9e
improve schedule seeder (#672)
recursivetree Mar 28, 2024
230f317
fix: missing null check on typeName (#673)
recursivetree Apr 2, 2024
43f8217
fix: Squad Create form adds old type filters (#674)
moppa Apr 4, 2024
bf990e6
Squad other skill level (#675)
Crypta-Eve Apr 18, 2024
545a6ce
Apply fixes from StyleCI (#676)
Crypta-Eve Apr 18, 2024
985ac64
ensure we don't confuse groups and rules (#677)
recursivetree Apr 19, 2024
7f489e7
fix: Grab the main character's token as a baseline for scopes (#678)
tehraven May 23, 2024
f68b26e
fix: main_character relation ssocontroller
Crypta-Eve May 25, 2024
76dab3a
add implant icons (#679)
zmsMarc May 25, 2024
fd48210
fix: typo in squad creation (#680)
Crypta-Eve Jun 13, 2024
b13d283
fix zkill link (#681)
zmsMarc Jun 26, 2024
57f17c2
Granular esi scheduling for characters (#684)
recursivetree Sep 5, 2024
8a9790a
More efficient squad updates #2 (#686)
recursivetree Sep 6, 2024
6c7dd18
chore: deps bump
Crypta-Eve Sep 6, 2024
7793b74
fix: allow updating scheduling rules for new tokens (#687)
recursivetree Sep 6, 2024
f168045
fix: only fire refresh token schedule update if token exists
Crypta-Eve Sep 7, 2024
82c6a0a
feat: remove publicData scope when not required
Crypta-Eve Sep 7, 2024
a878bd1
Apply fixes from StyleCI (#688)
Crypta-Eve Sep 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: Tag a new seat-docker release
on:
release:
types: [released]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: Checkout and tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
repository: eveseat/seat-docker
ssh-key: '${{ secrets.SEAT_DOCKER_REPO }}'
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Unit Testing

on:
push:
branches: [ "5.0.x" ]
pull_request:
branches: [ "5.0.x" ]

jobs:
tests:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
stability: [prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, gmp, json, mbstring, openssl
tools: composer:v2
coverage: xdebug

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Download Codeclimate Tools
if: ${{ github.event_name != 'pull_request' }}
run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter

- name: Init Codeclimate Tools
if: ${{ github.event_name != 'pull_request' }}
run: ./cc-test-reporter before-build

- name: Run Tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Publish code coverage
if: ${{ github.event_name != 'pull_request' }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: ./cc-test-reporter after-build -t clover
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
.env.php
.env
.idea/

# testing
vendor/
composer.lock
.phpunit.cache/test-results
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

48 changes: 23 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,46 @@
],
"autoload": {
"psr-4": {
"Seat\\Web\\": "src/"
"Seat\\Web\\": "src/",
"Seat\\Web\\Database\\Seeders\\": "src/database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Seat\\Tests\\Web\\": "tests/"
},
"classmap": [
"tests/database/factories"
]
"Seat\\Tests\\Web\\": "tests/",
"Seat\\Tests\\Web\\Database\\Factories\\": "tests/database/factories/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.3",
"php": "^8.1",
"ext-json": "*",
"ext-gd": "*",
"almasaeed2010/adminlte": "^3.0",
"components/font-awesome": "^5.9",
"datatables.net/datatables.net-bs4": "dev-master",
"datatables.net/datatables.net-buttons-bs4": "dev-master",
"doctrine/dbal": "~2",
"doctrine/dbal": "^3.0",
"erusev/parsedown": "^1.7",
"eveseat/eseye": "~2",
"eveseat/eveapi": "^4.8",
"eveseat/services": "^4.1",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.5",
"laravel/framework": "^6.2",
"laravel/horizon": "^3.4",
"laravel/socialite": "^4.2",
"laravel/tinker": "^2.5",
"lasserafn/php-initial-avatar-generator": "^4.0",
"socialiteproviders/manager": "^3.0",
"eveseat/eseye": "^3.0",
"eveseat/eveapi": "^5.0.15",
"eveseat/services": "^5.0.8",
"guzzlehttp/guzzle": "^7.0",
"intervention/image": "^2.0",
"laravel/framework": "^10.0",
"laravel/horizon": "^5.24.4",
"laravel/socialite": "^5.0",
"laravel/ui": "^4.0",
"lasserafn/php-initial-avatar-generator": "^4.2",
"opcodesio/log-viewer": "^2.0",
"socialiteproviders/manager": "^4.0",
"twbs/bootstrap": "^4.3",
"yajra/laravel-datatables-oracle": "^9.10 <9.21",
"yajra/laravel-datatables-buttons": "^4.0"
"yajra/laravel-datatables-oracle": "^10.4.0",
"yajra/laravel-datatables-buttons": "^10.0",
"zircote/swagger-php": "^4.0"
},
"require-dev": {
"josiasmontag/laravel-redis-mock": "^1.0",
"orchestra/testbench": "^4.0",
"orchestra/database": "^4.0"
"orchestra/testbench": "^8.0"
},
"extra": {
"laravel": {
Expand Down
48 changes: 19 additions & 29 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>
<coverage includeUncoveredFiles="false">
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml" />
</report>
</coverage>

<testsuites>
<testsuite name="Access Control Layer Test Suite">
<directory suffix="Test.php">./tests/Acl/</directory>
</testsuite>
<testsuite name="Squads Test Suite">
<directory suffix="Test.php">./tests/Squads/</directory>
</testsuite>
</testsuites>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage includeUncoveredFiles="false">
<report>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Access Control Layer Test Suite">
<directory suffix="Test.php">./tests/Acl/</directory>
</testsuite>
<testsuite name="Squads Test Suite">
<directory suffix="Test.php">./tests/Squads/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/Acl/AccessManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Acl/EsiRoleElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
44 changes: 22 additions & 22 deletions src/Acl/EsiRolesMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -38,65 +38,65 @@ class EsiRolesMap
* @var array
*/
const DEFAULT_VALUES = [
'Accountant' => [
'Accountant' => [
'corporation.summary',
'corporation.journal',
'corporation.transaction',
],
'Account_Take_1' => [
'Account_Take_1' => [
'corporation.wallet_first_division',
],
'Account_Take_2' => [
'Account_Take_2' => [
'corporation.wallet_second_division',
],
'Account_Take_3' => [
'Account_Take_3' => [
'corporation.wallet_third_division',
],
'Account_Take_4' => [
'Account_Take_4' => [
'corporation.wallet_fourth_division',
],
'Account_Take_5' => [
'Account_Take_5' => [
'corporation.wallet_fifth_division',
],
'Account_Take_6' => [
'Account_Take_6' => [
'corporation.wallet_sixth_division',
],
'Account_Take_7' => [
'Account_Take_7' => [
'corporation.wallet_seventh_division',
],
'Auditor' => [
'Auditor' => [
'corporation.summary',
],
'Container_Take_1' => [
'Container_Take_1' => [
'corporation.asset_first_division',
],
'Container_Take_2' => [
'Container_Take_2' => [
'corporation.asset_first_division',
],
'Container_Take_3' => [
'Container_Take_3' => [
'corporation.asset_third_division',
],
'Container_Take_4' => [
'Container_Take_4' => [
'corporation.asset_fourth_division',
],
'Container_Take_5' => [
'Container_Take_5' => [
'corporation.asset_fifth_division',
],
'Container_Take_6' => [
'Container_Take_6' => [
'corporation.asset_sixth_division',
],
'Container_Take_7' => [
'Container_Take_7' => [
'corporation.asset_seventh_division',
],
'Contract_Manager' => [
'Contract_Manager' => [
'corporation.summary',
'corporation.contracts',
],
'Diplomat' => [
'Diplomat' => [
'corporation.summary',
'corporation.tracking',
],
'Director' => [
'Director' => [
'corporation.summary',
'corporation.asset',
'corporation.asset_first_division',
Expand Down Expand Up @@ -134,11 +134,11 @@ class EsiRolesMap
'Junior_Accountant' => [
'corporation.summary',
],
'Security_Officer' => [
'Security_Officer' => [
'corporation.summary',
'corporation.security',
],
'Trader' => [
'Trader' => [
'corporation.summary',
'corporation.market',
],
Expand Down
2 changes: 1 addition & 1 deletion src/Acl/Policies/AbstractEntityPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Acl/Policies/AbstractPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions src/Acl/Policies/AlliancePolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -78,7 +78,7 @@ public function __call($method, $args)

/**
* @param \Seat\Web\Models\Acl\Permission $permission
* @param $entity
* @param $entity
* @return bool
*/
private function isGrantedByFilters(Permission $permission, Alliance $alliance): bool
Expand Down
4 changes: 2 additions & 2 deletions src/Acl/Policies/CharacterPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -154,7 +154,7 @@ private function isValidSharingSession(CharacterInfo $character)

/**
* @param \Seat\Web\Models\Acl\Permission $permission
* @param $character
* @param $character
* @return bool
*/
private function isGrantedByFilters(Permission $permission, CharacterInfo $character): bool
Expand Down
Loading
Loading