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

Update to Drupal 10.2 #765

Merged
merged 3 commits into from Jan 6, 2024
Merged

Update to Drupal 10.2 #765

merged 3 commits into from Jan 6, 2024

Conversation

paul121
Copy link
Member

@paul121 paul121 commented Jan 4, 2024

Updated a Drupal core patch 2339235 and got tests to pass, but have not tested this locally.

10.2.0 release notes: https://www.drupal.org/project/drupal/releases/10.2.0

I don't think there are any major changes to be worried about here....

Form elements in the stable9 base theme now have form-type-[form-element-type] class.

This could potentially affect some UI/CSS changes we have made, but seems unlikely.

@mstenta
Copy link
Member

mstenta commented Jan 4, 2024

This LGTM! Can I merge it? Or did you leave it in draft for a reason?

Remove time format from description

Interesting. Does this change also fix #625, perhaps?

@mstenta
Copy link
Member

mstenta commented Jan 4, 2024

Does this change also fix #625, perhaps?

Nevermind, I don't think it fixes that issue, but removing the format is a good change because as we can see in those screenshots it is wrong most of the time anyway.

@paul121 paul121 marked this pull request as ready for review January 4, 2024 22:03
@paul121
Copy link
Member Author

paul121 commented Jan 4, 2024

@mstenta and I chatted about this today and we feel pretty good. Should be fine to merge this and we could tag 3.0.0 stable soon after. If there are any issues, they can be fixed as we go.

@paul121 paul121 requested a review from mstenta January 4, 2024 22:04
See https://www.drupal.org/node/3385058

Fix: Call to deprecated method formatExample() of class Drupal\Core\Datetime\Element\Datetime: in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.
Copy link
Member

@mstenta mstenta left a comment

Choose a reason for hiding this comment

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

LGTM!

Also, 10.2.1 was released today, so I added a commit to update to that. And I found the 10.2.x patch you made here @paul121: https://www.drupal.org/project/drupal/issues/2339235#comment-15382708

Thanks!

@mstenta mstenta changed the title Update to Drupal 10.2.0 Update to Drupal 10.2 Jan 5, 2024
Copy link
Member

@mstenta mstenta left a comment

Choose a reason for hiding this comment

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

Dang. Now tests are failing. 🤔

There was 1 failure:

1) Drupal\Tests\farm_inventory\Functional\InventoryTest::testApiInventory
Failed asserting that an array is not empty.

/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/opt/drupal/web/profiles/farm/modules/core/inventory/tests/src/Functional/InventoryTest.php:111
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

@mstenta
Copy link
Member

mstenta commented Jan 5, 2024

Huh. My test passed locally. But I'm running PostgreSQL and the failure was on SQLite3... 🤔

@paul121
Copy link
Member Author

paul121 commented Jan 5, 2024

Huh, I think I saw this same error when I first made this PR but re-ran tests and it passed.. maybe there is a new race condition of some kind. Not sure.

@mstenta mstenta merged commit 75f0a2f into farmOS:3.x Jan 6, 2024
9 checks passed
@mstenta
Copy link
Member

mstenta commented Jan 6, 2024

Wow I think you're right @paul121. I ran tests 4 times, and it failed 3 times, but just now it passed once. So that suggests it is not 10.2.1 that's causing the problem. Huh. Well I guess we can merge this and tag 3.0.0 after all! We can figure out the test issue as a follow up...

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.

None yet

2 participants