-
Notifications
You must be signed in to change notification settings - Fork 15
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
Print module refactor #673
Merged
Merged
Changes from 64 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
676ac18
refactor
sszajbely d330b8b
remove printer role
sszajbely 056fb9e
style: format code with PHP CS Fixer
deepsource-autofix[bot] e038e09
Merge remote-tracking branch 'origin/development' into print-module-r…
sszajbely 3689f71
remove printer role
sszajbely 74b27a2
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely 9d74515
style: format code with PHP CS Fixer
deepsource-autofix[bot] 1f3dbfb
solving todos
sszajbely c8f89bd
replace exec with process->run
sszajbely 781ac18
style: format code with PHP CS Fixer
deepsource-autofix[bot] 913a4a6
added missing doc strings
sszajbely 6612ad8
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely 7ea9be0
style: format code with PHP CS Fixer
deepsource-autofix[bot] 1930767
add missing doc comments
sszajbely 26c746f
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely ead482c
style: format code with PHP CS Fixer
deepsource-autofix[bot] 31527fe
fix
sszajbely e6547cb
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely 62252a9
add missing doc comment
sszajbely d8fe598
style: format code with PHP CS Fixer
deepsource-autofix[bot] 80db86f
fixes and #344
sszajbely e669bc1
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely d6fbe58
Created Process class, created PrinterHelper class, code improvements…
sszajbely 1b1685c
style: format code with PHP CS Fixer
deepsource-autofix[bot] 9499653
Resolving comments
sszajbely d5da58b
style: format code with PHP CS Fixer
deepsource-autofix[bot] 45a370c
Merge remote-tracking branch 'origin/development' into print-module-r…
sszajbely 34946ae
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely 67e6413
Minor fixes
sszajbely 1455bb9
Added doc comments
sszajbely 0fd4a0c
Fixed piping in commands.
sszajbely 4acf0a8
Use commands config file
sszajbely f85af3d
Minor fixes.
sszajbely a42a282
style: format code with PHP CS Fixer
deepsource-autofix[bot] 548981f
Fix for migration.
sszajbely f7d2837
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely d656944
Minor fixes
sszajbely 840f339
style: format code with PHP CS Fixer
deepsource-autofix[bot] 83c86fa
Fixed PrinterHelper namespace
sszajbely d93c271
Merge branch 'print-module-refactor' of github.com:EotvosCollegium/ma…
sszajbely 7e5196c
Remove references for Models in migrations
horcsinbalint c261baa
Fix seeders
horcsinbalint 344a4d6
Remove printer role using migration
horcsinbalint b5fa014
Fixes
horcsinbalint d79cd34
Added better check for pinging command
horcsinbalint b5dbb57
Added logging for the results of commands
horcsinbalint afd2f1f
Added prefix for printing
horcsinbalint 7961a11
style: format code with PHP CS Fixer
deepsource-autofix[bot] 02daade
Make .env.example more understandable
horcsinbalint c519378
Using proper filtering instead of regex for ip
horcsinbalint 7238e64
Added more strict rate limiting
horcsinbalint 9fac107
Fixing up routes
horcsinbalint a4f888c
Better emailing for e-mail balances
horcsinbalint bd6c4cb
Emailing all involved
horcsinbalint 517157b
Better commenting
horcsinbalint ee9b175
Restore composer.lock
horcsinbalint 78f252c
Bugfixes and better suit our needs
horcsinbalint fe6e80b
Command fix
horcsinbalint ea2f243
Command fix
horcsinbalint d1fb982
Fix statuses
horcsinbalint 6d45feb
Adding missing translation
horcsinbalint 40ee670
Fix tests
horcsinbalint 12f5a28
Fix tests
horcsinbalint eecb8cb
Fix tests
horcsinbalint e83748b
Fix commands as the order of parameters matter
horcsinbalint File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ DB_PORT=3306 | |
DB_DATABASE=test | ||
DB_USERNAME=root | ||
DB_PASSWORD=password | ||
PRINTER_NAME=printer |
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,11 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
|
||
enum PrintJobStatus: string { | ||
case QUEUED = 'QUEUED'; | ||
//case ERROR = 'ERROR'; //There are some older print jobs that have this status, but it is not used anymore | ||
case CANCELLED = 'CANCELLED'; | ||
case SUCCESS = 'SUCCESS'; | ||
// case REIMBURSED = 'REIMBURSED'; | ||
} |
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,10 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
|
||
enum PrinterCancelResult: string { | ||
case AlreadyCancelled = "already-cancelled"; | ||
case AlreadyCompleted = "already-completed"; | ||
case CannotCancel = "cannot-cancel"; | ||
case Success = "successfully-cancelled"; | ||
} |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mismatch in parameter type for
$process->run()
Kindly adjust your usage of
$process->run($log = false);
. The method expects the first argument to be a callable or null, rather than a boolean.Please consider the following adjustment:
📝 Committable suggestion
🧰 Tools
🪛 phpstan (2.0.3)
21-21: Parameter #1 $callback of method App\Utils\Process::run() expects (callable(): mixed)|null, false given.
(argument.type)
🪛 GitHub Check: phpunit
[failure] 21-21:
Parameter #1 $callback of method App\Utils\Process::run() expects (callable(): mixed)|null, false given.