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

Merge release 2.2.5 into 2.3.x #933

Merged
merged 91 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
7ff2742
Remove test user details from full build
pierredup May 10, 2023
b6d6052
Fix adding users to quotes and invoices
pierredup May 10, 2023
80b1c84
Fix setting tax rates on invoices and quotes
pierredup May 11, 2023
2a4f544
Bump version
pierredup May 15, 2023
121441d
Ensure any error during migration can print a meaningfull error message
pierredup May 15, 2023
135c7e9
Filter out PDO drivers not supported by Doctrine during installation
pierredup May 15, 2023
c2f2295
Remove currency from installation step
pierredup May 15, 2023
be6b336
Fix SelectCompany template to use proper case for directory structure
pierredup May 16, 2023
1172235
Fix migrations when using MariaDB 10.5
pierredup May 15, 2023
25df171
Fix actions dropdown on the datagrid
pierredup May 15, 2023
a90b931
Fix repository methods to delete entities
pierredup May 15, 2023
cc81e09
Fix id value on grids
pierredup May 15, 2023
283f684
Fix CS and PHPStan errors
pierredup May 15, 2023
5b2d2d3
Merge branch '2.2.x' into installation-improvements
pierredup May 18, 2023
5a2f801
Fix CS and unit test
pierredup May 18, 2023
706ddf2
Fix functional test
pierredup May 18, 2023
2a15a29
Filter out PDO drivers not supported by Doctrine during installation …
pierredup May 18, 2023
63cec04
Fix currency handling
pierredup May 18, 2023
15c38bd
Remove debug code
pierredup May 18, 2023
5ad4d1a
Check if app is installed before including scripts
pierredup May 18, 2023
448b992
Fix cases where currency might be empty
pierredup May 18, 2023
c841d34
Fix CS
pierredup May 18, 2023
00bc0f0
Fix formatters when displaying info in a grid
pierredup May 19, 2023
61b2df9
Fix currency handling
pierredup May 18, 2023
36b8610
Remove debug code
pierredup May 18, 2023
bc86239
Check if app is installed before including scripts
pierredup May 18, 2023
d833ec8
Fix cases where currency might be empty
pierredup May 18, 2023
2a9bf74
Fix CS
pierredup May 18, 2023
790271f
Merge remote-tracking branch 'origin/currency-fixes' into currency-fixes
pierredup May 19, 2023
d78d2fa
Remove check for conditional script inclusion
pierredup May 19, 2023
45af481
Fix some tests
pierredup May 22, 2023
3c255c7
Fix unit tests
pierredup May 22, 2023
644ed5c
Add currency to ClientCreateFormHandlerTest
pierredup May 22, 2023
25b209f
Update Github Worfklows
pierredup May 29, 2023
5aab64c
Add allowed endpoints to step-security
pierredup May 29, 2023
0ede948
Add auth.docker.io as an allowed endpoint
pierredup May 29, 2023
bd5e61f
Update Qodana version
pierredup May 29, 2023
f8ec8d4
Fix Qodana version
pierredup May 29, 2023
fe72e1a
Use version reference for actions instead of commit hashes
pierredup May 29, 2023
5ff56e5
Use 2023.1.0 for Qodana
pierredup May 29, 2023
63f86d1
Revert "Use version reference for actions instead of commit hashes"
pierredup May 29, 2023
4e5db9e
Update Qodana action
pierredup May 29, 2023
5d15bab
Fix auto-incrementing invoice and quote IDs
pierredup May 29, 2023
0e5a5a6
Add sentry integration
pierredup Jul 18, 2023
2fcc77c
Ensure SENTRY_DSN env variable exists
pierredup Jul 18, 2023
b60ed96
Merge branch '2.2.x' into currency-fixes
pierredup Sep 4, 2023
37b290a
Disable Qodana
pierredup Sep 4, 2023
f141e81
Merge branch '2.2.x' into currency-fixes
pierredup Sep 4, 2023
881b751
Fix CS
pierredup Sep 5, 2023
d04de7b
Update PHPStan baseline
pierredup Sep 5, 2023
ba185fd
Update GH actions
pierredup Sep 5, 2023
e530535
Add GH caching storage ip to unit tests
pierredup Sep 5, 2023
5586759
debug failing tests
pierredup Sep 6, 2023
92ca369
debug failing tests
pierredup Sep 6, 2023
66b778a
debug failing tests
pierredup Sep 6, 2023
09dafa1
debug failing tests
pierredup Sep 6, 2023
d815ef1
debug failing tests
pierredup Sep 6, 2023
bddae56
debug failing tests
pierredup Sep 6, 2023
31f0601
debug failing tests
pierredup Sep 6, 2023
a52a5f1
Set installed env var earlier in test process
pierredup Sep 6, 2023
491c632
Run full unit tests again
pierredup Sep 6, 2023
5d115d0
remove debugging
pierredup Sep 6, 2023
78b1786
Fix currency handling (#841)
pierredup Sep 6, 2023
2e972e9
Fix build script
pierredup Sep 6, 2023
7e79916
Add option to set a global default mailer instead of using null
pierredup Sep 6, 2023
d9833a6
update PHPStan baseline
pierredup Sep 6, 2023
2c75377
Add additional endpoints to StepSecurity
pierredup Sep 6, 2023
7fab063
Remove --currency option
pierredup Sep 6, 2023
538de83
Add email subject to password reset request email
pierredup Sep 7, 2023
b3f954e
Add env config to a new separate path
pierredup Sep 14, 2023
729cf64
Fix CS
pierredup Sep 14, 2023
f204375
Fix tests
pierredup Sep 14, 2023
142147a
Fix tests
pierredup Sep 14, 2023
f9cebc3
Add additional configuration for Sentry
pierredup Sep 14, 2023
d82e646
Fix CS
pierredup Sep 14, 2023
c6663f4
Fix broken env var processing
pierredup Sep 14, 2023
6f0654e
Downgrade dbrekelmans/bdi on PHP < 8.1
pierredup Sep 14, 2023
a3fd2c8
install individual symfony/polyfill packages
pierredup Sep 14, 2023
aa0ee6e
Skip NotFound http errors in Sentry
pierredup Oct 2, 2023
3dc4178
Fix error when saving contact details with an empty type
pierredup Oct 31, 2023
e06e103
Fix CS
pierredup Oct 31, 2023
c67f6ca
Fix phpstan check
pierredup Oct 31, 2023
7bc6cb0
Fix composer.json normalization
pierredup Oct 31, 2023
d943e46
Merge branch '2.3.x' of github.com:SolidInvoice/SolidInvoice into 2.2…
pierredup Oct 31, 2023
aafc5a1
Remove unfinished helm charts
pierredup Oct 31, 2023
f384263
Add default value for env var
pierredup Oct 31, 2023
739d25d
Add default env var value
pierredup Oct 31, 2023
f285807
Add default env var value
pierredup Oct 31, 2023
0c74634
Set default MAILER_DSN to an empty string
pierredup Nov 1, 2023
d99036d
Set MAILRE_DSN defaiult to null://null
pierredup Nov 1, 2023
8501546
Fix tests
pierredup Nov 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ SOLIDINVOICE_DEBUG=1
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
###< symfony/messenger ###

###> sentry/sentry-symfony ###
SENTRY_DSN=
SENTRY_SEND_DEFAULT_PII=
###< sentry/sentry-symfony ###

###> symfony/mailer ###
MAILER_DSN=
###< symfony/mailer ###
15 changes: 14 additions & 1 deletion .github/workflows/automatic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
egress-policy: block
allowed-endpoints: >
api.github.com:443
archive.ubuntu.com:80
auth.docker.io:443
github.com:443
objects.githubusercontent.com:443
packagist.org:443
ppa.launchpadcontent.net:443
production.cloudflare.docker.com:443
registry-1.docker.io:443
registry.yarnpkg.com:443
security.ubuntu.com:80
uploads.github.com:443

- name: Checkout
uses: "actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744"
Expand Down
73 changes: 46 additions & 27 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: "CodeQL"

on:
push:
branches: [ 2.2.x ]
pull_request:
branches: [ 2.2.x ]
schedule:
- cron: '26 23 * * 2'

Expand All @@ -29,7 +26,12 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
54.185.253.63:443

- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
Expand All @@ -45,26 +47,43 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a

qodana:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report

name: Qodana
runs-on: ubuntu-latest

steps:

- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
#qodana:
# permissions:
# actions: read # for github/codeql-action/init to get workflow details
# contents: read # for actions/checkout to fetch code
# security-events: write # for github/codeql-action/autobuild to send a status report
#
# name: Qodana
# runs-on: ubuntu-latest
#
# steps:
# - name: Harden Runner
# uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
# with:
# disable-sudo: true
# egress-policy: block
# allowed-endpoints: >
# api.qodana.cloud:443
# github.com:443
# objects.githubusercontent.com:443
# prod.fus.aws.intellij.net:443
# production.cloudflare.docker.com:443
# qc-results-prod.s3.eu-west-1.amazonaws.com:443
# raw.githubusercontent.com:443
# registry-1.docker.io:443
# auth.docker.io:443
# registry.npmjs.org:443
# resources.jetbrains.com:443
# schemastore.org:443
#
# - name: Checkout repository
# uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
#
# - name: 'Qodana Scan'
# uses: JetBrains/qodana-action@61b94e7e3a716dcb9e2030cfd79cd46149d56c26
# env:
# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
#
# - uses: github/codeql-action/upload-sarif@67a35a08586135a9573f4327e904ecbf517a882d
# with:
# sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
26 changes: 23 additions & 3 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
packagist.org:443
54.185.253.63:443

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

Expand Down Expand Up @@ -52,7 +58,14 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
packagist.org:443
raw.githubusercontent.com:443
repo.packagist.org:443

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

Expand Down Expand Up @@ -82,7 +95,14 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
registry.yarnpkg.com:443
pipelinesghubeus2.actions.githubusercontent.com:443
54.185.253.63:443

- name: Checkout Code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/security-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: symfonycorp/security-checker-action@258311ef7ac571f1310780ef3d79fc5abef642b5
Expand Down
27 changes: 6 additions & 21 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
packagist.org:443

- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
Expand Down Expand Up @@ -48,23 +53,3 @@ jobs:

- name: Run PHPStan
run: bin/phpstan analyse -c phpstan.test.neon

qodana:
name: Qodana

runs-on: ubuntu-latest

steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: 'Qodana Scan'
uses: JetBrains/qodana-action@77f0ff0c702065648df9fd0340a48919dca5a1ff

- uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
21 changes: 19 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,20 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
egress-policy: block
allowed-endpoints: >
api.github.com:443
chromedriver.storage.googleapis.com:443
codecov.io:443
coveralls.io:443
github.com:443
objects.githubusercontent.com:443
packagist.org:443
registry.yarnpkg.com:443
repo.packagist.org:443
storage.googleapis.com:443
uploader.codecov.io:443
54.185.253.63:443

- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
Expand Down Expand Up @@ -86,6 +99,10 @@ jobs:
- name: Install dependencies
run: composer install --ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Downgrade dbrekelmans/bdi on PHP < 8.1
if: matrix.php < '8.1'
run: composer require --ansi --no-interaction --no-progress --prefer-dist dbrekelmans/bdi:1.0.4

- name: Detect browser drivers
run: bin/bdi detect drivers

Expand All @@ -99,7 +116,7 @@ jobs:

- name: Run test suite
run: |
mkdir -p build/logs
mkdir -p build/logs
if [ "$COVERAGE" = '1' ]; then
bin/phpunit --coverage-clover build/logs/clover.xml
else
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ composer.phar
!public/fonts/.gitkeep
!public/img/.gitkeep
!var/db/.gitkeep
config/env.php
config/env/env.php
.idea
node_modules
.rules
Expand Down
5 changes: 2 additions & 3 deletions bin/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ if (PHP_VERSION_ID < 80000) {
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
) {
include("phpvfscomposer://" . __DIR__ . '/..'.'/vendor/phpunit/phpunit/phpunit');
exit(0);
return include("phpvfscomposer://" . __DIR__ . '/..'.'/vendor/phpunit/phpunit/phpunit');
}
}

include __DIR__ . '/..'.'/vendor/phpunit/phpunit/phpunit';
return include __DIR__ . '/..'.'/vendor/phpunit/phpunit/phpunit';
17 changes: 15 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"ramsey/uuid": "^4.0",
"ramsey/uuid-doctrine": "^2.0",
"sensio/framework-extra-bundle": "^6.2",
"sentry/sentry-symfony": "^4.8",
"solidworx/form-handler-bundle": "^1.0",
"solidworx/toggler": "dev-master",
"stof/doctrine-extensions-bundle": "^1.3",
Expand Down Expand Up @@ -92,7 +93,11 @@
"symfony/mime": "^5.4",
"symfony/monolog-bundle": "^3.7",
"symfony/options-resolver": "^5.4",
"symfony/polyfill": "^1.26",
"symfony/polyfill-mbstring": "^1.28",
"symfony/polyfill-php80": "^1.28",
"symfony/polyfill-php81": "^1.28",
"symfony/polyfill-php82": "^1.28",
"symfony/polyfill-php83": "^1.28",
"symfony/postmark-mailer": "^5.4",
"symfony/property-access": "^5.4",
"symfony/property-info": "^5.4",
Expand Down Expand Up @@ -147,6 +152,13 @@
"symplify/easy-coding-standard": "^11.1",
"zenstruck/foundry": "^1.23"
},
"replace": {
"symfony/polyfill-php70": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*"
},
"autoload": {
"psr-4": {
"SolidInvoice\\": "src/"
Expand All @@ -157,7 +169,8 @@
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true,
"symfony/flex": true,
"symfony/runtime": true
"symfony/runtime": true,
"php-http/discovery": true
},
"bin-dir": "bin",
"platform": {
Expand Down
Loading
Loading