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

Upgrade the app to use Symfony 6 and PHP 8.2 #178

Merged
merged 48 commits into from
Feb 7, 2024

Conversation

MKodde
Copy link
Member

@MKodde MKodde commented Jan 9, 2024

This marks the end of an era. The code has been:

  • Made fully PHP 8.2 compatible, and no longer functions on PHP 7
  • Updated to use Symfony 6.4
  • Linted, stan'ed, qa'ed and otherwise upgraded
  • Rid of the dreaded App/ namespace. Tiqr now also adheres to the Vendor/Projectname convetion. And was baptized: Surfnet/Tiqr

On other fronts:

  • Yarn and Composer dependencies have been updated
  • Tests have been upgraded, some of the acceptance tests have been skipped (auth and reg features) the secondary registration and auth features still pass.
  • Homestead was removed
  • Templates, translations and parameters are moved to suite specific locations
  • Strict typing is enforced
  • Many more smaller things have been addressed

Before upgrading to SF6 and upgrading all dependencies, I opted to first
upgrade the qa tooling. They will not pass by any means at this point.
We now use our own docker based devconf
If we want code coverage stats, we can use scrutenizer for that purpose
The legacy folder was renamed to openconext (as decided to be the way
forward)

The .env files only contained env overrides and allowed for setting the
secret
That more closesly matches the modern symfony ways

The webpack setup needed some small tweaking in order to keep things in
a functioning state
This should have resulted in 500 errors in the tiqr app previously.
Level 8 and 9 have mostly been ignored as most of the warnings where
hailing from the behat contexts
@MKodde MKodde force-pushed the feature/rejuvination branch from e96cafb to 03f96f7 Compare January 9, 2024 15:04
MKodde added 6 commits January 9, 2024 16:13
We have a test folder, but there are no tests. The folder is kept, and
PHP Unit is standing by for future development where we might want to
utilize PHP unit testing
@MKodde MKodde force-pushed the feature/rejuvination branch 6 times, most recently from 7c1ec80 to 771aa69 Compare January 10, 2024 10:42
@MKodde MKodde requested review from parijke and KarsanHAM January 15, 2024 12:33
@MKodde MKodde force-pushed the feature/rejuvination branch from a8f3202 to cc17ef9 Compare January 15, 2024 12:44
ci/config/tiqr/tiqr_idp.key Show resolved Hide resolved
composer.json Outdated
},
"scripts": {
"test": [
"check": [
"@composer-validate",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also ran in ci/qa/validate , is this because it needs to get validated from both inside and outside composer.json ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 You found a bug here!

I now call the validate script which for now performs the same logic, but it could just as well do more than just validate the composer lockfile.

.gitignore Outdated Show resolved Hide resolved
dev/Command/RegistrationCommand.php Show resolved Hide resolved
Copy link
Contributor

@parijke parijke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow what a changes... certainly a big step into cleaner code!

ci/config/gateway/gateway_gssp_sp.crt Outdated Show resolved Hide resolved
composer.json Show resolved Hide resolved
config/bundles.php Show resolved Hide resolved
dev/Command/AuthenticationCommand.php Outdated Show resolved Hide resolved
dev/Command/AuthenticationCommand.php Outdated Show resolved Hide resolved
src/Tiqr/Legacy/TiqrService.php Show resolved Hide resolved
src/Tiqr/Legacy/TiqrService.php Show resolved Hide resolved
src/Tiqr/Legacy/TiqrService.php Show resolved Hide resolved
src/Tiqr/Legacy/TiqrUser.php Show resolved Hide resolved
src/Tiqr/TiqrFactory.php Show resolved Hide resolved
@MKodde
Copy link
Member Author

MKodde commented Jan 23, 2024

Thanks for the many good suggestions @parijke

I did not fix all of them. Most of the dev/test related stuff is left as-is. As they add limited added value for now. If you disagree, feel free discuss.

@MKodde MKodde force-pushed the feature/rejuvination branch from db638c1 to 3944dcf Compare February 7, 2024 07:25
MKodde and others added 3 commits February 7, 2024 08:28
The form was not using the correct bootstrap form classes so was ugly
@MKodde MKodde merged commit 35ddce5 into feature/build-and-publish-test-container Feb 7, 2024
2 checks passed
@MKodde MKodde deleted the feature/rejuvination branch February 7, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants