Skip to content

Add Devise 5 and Formtastic 6 support#8936

Merged
tagliala merged 1 commit intomasterfrom
feature/8904-devise5
Mar 6, 2026
Merged

Add Devise 5 and Formtastic 6 support#8936
tagliala merged 1 commit intomasterfrom
feature/8904-devise5

Conversation

@tagliala
Copy link
Contributor

@tagliala tagliala commented Feb 8, 2026

Keep Devise minimum unchanged to avoid unnecessary breakage for
downstream apps. Raising the required versions would force upgrades
without a strict need, since Devise 4 remains supported.

Formtastic instead is required to be >= 6. It matches ActiveAdmin's
minimum Ruby requirement and is compatible with both Devise 4 and 5.

CI, however, will run the test matrix only against Devise 5 to validate
compatibility with current versions.

Additionally, update bundle syntax in spec for v4

Close #8906

@tagliala tagliala marked this pull request as draft February 8, 2026 10:39
@tagliala tagliala added the do not merge A PR will have a failed check until this label is removed label Feb 8, 2026
@tagliala tagliala force-pushed the feature/8904-devise5 branch from a818cc0 to 003028d Compare February 8, 2026 10:40
@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.08%. Comparing base (e3afb77) to head (f843791).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8936   +/-   ##
=======================================
  Coverage   99.08%   99.08%           
=======================================
  Files         139      139           
  Lines        4045     4045           
=======================================
  Hits         4008     4008           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tagliala tagliala force-pushed the feature/8904-devise5 branch 2 times, most recently from 4da4c52 to 4831fab Compare February 20, 2026 18:21
@tagliala tagliala changed the title Feature/8904 devise5 Add Devise 5 support Feb 20, 2026
@tagliala tagliala removed the do not merge A PR will have a failed check until this label is removed label Feb 20, 2026
@tagliala
Copy link
Contributor Author

@javierjulio do you prefer to bump the formtastic requirement in gemspec to v6?

@tagliala tagliala requested a review from javierjulio February 20, 2026 18:23
@tagliala tagliala marked this pull request as ready for review February 20, 2026 18:27
Copy link
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

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

@tagliala hmm I'm not sure. That depends if Formtastic v6 supports both Devise v4 and v5? Because of the update to support Devise v5, wouldn't we at least want to require Devise v5 as the minimum on our side? Do you think its necessary that we bump the minimum requirement for Formtastic to >= v6?

@tagliala
Copy link
Contributor Author

tagliala commented Feb 21, 2026

TL;DR: Keeping current gemspec dependencies should be fine


That depends if Formtastic v6 supports both Devise v4 and v5?

Formtastic v6 just drops some legacy rails and ruby versions. It also matches 3.2 / 7.2 that we have here

Additionally, Formtastic v6's changelog mentions "compatibility with Devise 5", but that is a fix to allow rails proc validation

Master branch now test Devise v4 against Formtastic v6, and everything is fine

Because of the update to support Devise v5, wouldn't we at least want to require Devise v5 as the minimum on our side?

This does make sense too, but probably this is not necessary and may cause friction.

Devise has a lot of plugins, maybe not all ready for v5, so keeping v4 compatibility should not be a problem

Do you think its necessary that we bump the minimum requirement for Formtastic to >= v6?

Not necessary, because that will have an impact on the main application as well


edit

@tagliala tagliala force-pushed the feature/8904-devise5 branch 2 times, most recently from 20d12d8 to ed7d787 Compare February 21, 2026 10:25
@tagliala tagliala requested a review from javierjulio February 21, 2026 10:26
@davidwessman
Copy link

Well done on getting everything updated here and in Formtastic 👏🏻 🫶 @tagliala

@julitrows
Copy link

Is this gonna be on the 3.x branch or just for 4.0+?

@cprodhomme
Copy link
Contributor

We need this patch on 3.x branch if it possible

Copy link
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

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

@tagliala since we have a dependency on formtastic, I'm thinking we should bump the minimum requirement to v6 since only that version supports devise v4 and v5, since that sounds like your main intention. Someone could update formtastic to v6 but still be on devise v4 and their integration would break since there is no link between the two.

@tagliala tagliala force-pushed the feature/8904-devise5 branch 2 times, most recently from e91237a to 6d7f3bd Compare March 5, 2026 08:40
Keep Devise minimum unchanged to avoid unnecessary breakage for
downstream apps. Raising the required versions would force upgrades
without a strict need, since Devise 4 remains supported.

Formtastic instead is required to be >= 6. It matches ActiveAdmin's
minimum Ruby requirement and is compatible with both Devise 4 and 5.

CI, however, will run the test matrix only against Devise 5 to validate
compatibility with current versions.

Additionally, update bundle syntax in spec for v4

Close #8906
@tagliala tagliala force-pushed the feature/8904-devise5 branch from 6d7f3bd to f843791 Compare March 5, 2026 08:41
@tagliala tagliala requested a review from javierjulio March 5, 2026 08:53
Copy link
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

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

Thanks!

@javierjulio javierjulio changed the title Add Devise 5 support Add Devise 5 and Formtastic 6 support Mar 6, 2026
@tagliala tagliala merged commit 1e40dae into master Mar 6, 2026
27 checks passed
@tagliala tagliala deleted the feature/8904-devise5 branch March 6, 2026 09:24
tagliala added a commit that referenced this pull request Mar 7, 2026
tagliala added a commit that referenced this pull request Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Devise 5 support

5 participants