Skip to content

Release 7.3.0 - Update to php 8.3 #304

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

Merged
merged 9 commits into from
Mar 12, 2025
Merged

Conversation

jason-jackson
Copy link
Contributor

@jason-jackson jason-jackson commented Jan 31, 2025

ITSE-1300


Changed

  • Update to php 8.3
  • Switch adldap2/adldap2 to directorytree/ldaprecord

PR Checklist

  • Put version number in PR title (e.g. Release x.y.z - Summary of changes)
  • Documentation (README, etc.)
  • Unit tests created or updated
  • Run make composershow

@jason-jackson jason-jackson requested a review from a team as a code owner January 31, 2025 20:22
Copy link
Contributor

@briskt briskt left a comment

Choose a reason for hiding this comment

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

Good to see that no code changes were needed.

Copy link
Contributor

@forevermatt forevermatt left a comment

Choose a reason for hiding this comment

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

If you would, please update composer dependencies along with this PHP version upgrade

@jason-jackson jason-jackson requested a review from a team as a code owner February 13, 2025 16:32
@jason-jackson jason-jackson requested review from forevermatt, mtompset and hobbitronics and removed request for a team February 13, 2025 16:32
@mtompset
Copy link

Do we even used LDAP at all? Rather than fixing the code, I think removing it might be cleaner. Less is more.

Copy link

@mtompset mtompset left a comment

Choose a reason for hiding this comment

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

I'd prefer recommended tiny clean ups before approving, though this code is functional (at least from eye-balling it).

@briskt
Copy link
Contributor

briskt commented Feb 14, 2025

Do we even used LDAP at all? Rather than fixing the code, I think removing it might be cleaner. Less is more.

Unfortunately, yes. I was about to say we use it, but remembered that Wycliffe doesn't use it any longer and they were the only ones that did. Rather than remove it in this PR, I would recommend removing it first and then revisit this upgrade. But I guess you can proceed with this change and then rip it out.

@briskt briskt self-requested a review February 14, 2025 11:24
Copy link
Contributor

@briskt briskt left a comment

Choose a reason for hiding this comment

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

Since we can't test that this new LDAP implementation works, I don't like the idea of pushing out a release with it.

@jason-jackson
Copy link
Contributor Author

Do we even used LDAP at all? Rather than fixing the code, I think removing it might be cleaner. Less is more.

Unfortunately, yes. I was about to say we use it, but remembered that Wycliffe doesn't use it any longer and they were the only ones that did. Rather than remove it in this PR, I would recommend removing it first and then revisit this upgrade. But I guess you can proceed with this change and then rip it out.

Yeah, I don't like doing both. Other option would be to upgrade PHP without any dependencies updated (I think everything still works) and then remove this.

@briskt
Copy link
Contributor

briskt commented Feb 18, 2025

Do we even used LDAP at all? Rather than fixing the code, I think removing it might be cleaner. Less is more.

Unfortunately, yes. I was about to say we use it, but remembered that Wycliffe doesn't use it any longer and they were the only ones that did. Rather than remove it in this PR, I would recommend removing it first and then revisit this upgrade. But I guess you can proceed with this change and then rip it out.

Yeah, I don't like doing both. Other option would be to upgrade PHP without any dependencies updated (I think everything still works) and then remove this.

There were a lot of dependency updates, so it's kind of a gamble what will or will not work on 8.3

@briskt briskt changed the title Release 7.1.0 - Update to php 8.3 Release 7.2.0 - Update to php 8.3 Feb 19, 2025
@mtompset
Copy link

If there are models involved, the base models may not be generating well since Yii 2.0.52. Check the scoping and data typing in the base models on constants. If it is lacking, check out MailAdmin's gii folder, and console.php in the config directory. Then generate with "psr-12" like in scripts' tables.sh, which is triggered by make baseModels.

@forevermatt
Copy link
Contributor

@jason-jackson Is this PR still in progress? I see that we have a separate 7.2.0 release already (so this might be 7.3.0 now), but those changes haven't been pulled into this feature branch yet.

I wonder if this should be set aside until after we finish removing LDAP support (if we can / are going to do that). Or maybe that's already your plan?

If needed, you could also do a separate dependency update first, then do the PHP-8.3-upgrade-with-another-dependency-update, to help keep each set of changes smaller. Just an idea, though I don't know if that would help.

Copy link
Contributor

@briskt briskt left a comment

Choose a reason for hiding this comment

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

Thanks for patiently working through this.

@briskt briskt changed the title Release 7.2.0 - Update to php 8.3 Release 7.3.0 - Update to php 8.3 Feb 21, 2025
@briskt
Copy link
Contributor

briskt commented Feb 21, 2025

I see that we have a separate 7.2.0 release already (so this might be 7.3.0 now)

I edited the PR title

Copy link

@jason-jackson
Copy link
Contributor Author

@jason-jackson Is this PR still in progress? I see that we have a separate 7.2.0 release already (so this might be 7.3.0 now), but those changes haven't been pulled into this feature branch yet.

I wonder if this should be set aside until after we finish removing LDAP support (if we can / are going to do that). Or maybe that's already your plan?

If needed, you could also do a separate dependency update first, then do the PHP-8.3-upgrade-with-another-dependency-update, to help keep each set of changes smaller. Just an idea, though I don't know if that would help.

Yes it's still in progress, but should be good to look at again. I'll need a final approval from you (@forevermatt) to remove the changes requested so I can merge this (date tbd). We'll have to do a quick sync with JAARS to ensure it still works and then roll back if it doesn't.

@jason-jackson jason-jackson changed the title Release 7.3.0 - Update to php 8.3 Release 7.X.0 - Update to php 8.3 Feb 28, 2025
Copy link

@mtompset mtompset left a comment

Choose a reason for hiding this comment

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

Are the reconnections in the same test necessary? This was just cleaning up generally though, so it's okay.

@forevermatt forevermatt dismissed their stale review March 3, 2025 15:40

The PHP dependencies were updated, so my requested changes were done.

@jason-jackson
Copy link
Contributor Author

Are the reconnections in the same test necessary? This was just cleaning up generally though, so it's okay.

I believe they are setup for the actual test, and then the test. Probably better ways to handle it, but that was how they were written.

@jason-jackson jason-jackson changed the title Release 7.X.0 - Update to php 8.3 Release 7.3.0 - Update to php 8.3 Mar 12, 2025
@jason-jackson jason-jackson merged commit 21a8894 into main Mar 12, 2025
3 checks passed
@jason-jackson jason-jackson deleted the feature/update-to-php8.3 branch March 12, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants