Skip to content

Bump Formtastic to 5.0 and remove legacy code #8613

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 1 commit into from
Jan 27, 2025

Conversation

tagliala
Copy link
Contributor

@tagliala tagliala commented Jan 26, 2025

This commit addresses TODO notes in the code related to Formtastic < 4
and sets the minimum required Formtastic version to >= 5.0

Confirmed defaults:


Should be also backported to v3

@tagliala tagliala force-pushed the chore/remove-redundant-code branch from 810bd93 to 2cba50c Compare January 26, 2025 20:17
@tagliala tagliala marked this pull request as ready for review January 26, 2025 20:17
Copy link

codecov bot commented Jan 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.11%. Comparing base (841a686) to head (a9ad8a8).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8613      +/-   ##
==========================================
- Coverage   99.11%   99.11%   -0.01%     
==========================================
  Files         141      141              
  Lines        4076     4073       -3     
==========================================
- Hits         4040     4037       -3     
  Misses         36       36              

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

@tagliala tagliala force-pushed the chore/remove-redundant-code branch from 2cba50c to 3acf18c Compare January 26, 2025 20:23
@javierjulio
Copy link
Member

@tagliala we can't backport this since on v3 we permit Formtastic 3.1+ but I'm fine with this going in for v4.

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!

@tagliala
Copy link
Contributor Author

since the minimum required Formtastic version is now 5.0

Sorry, I was tricked by Gemfile and I didn't check gemspec.

master still supports v3

  s.add_dependency "formtastic", ">= 3.1"
  s.add_dependency "formtastic_i18n", ">= 0.4"

Are you fine to bump the dependency to >= 5.0?

@tagliala tagliala marked this pull request as draft January 26, 2025 21:16
@javierjulio
Copy link
Member

@tagliala no worries at all. Right, we'd have to bump here. Yes, I think it would be best to do that bump now on v4. Thanks!

@tagliala tagliala force-pushed the chore/remove-redundant-code branch from 3acf18c to 8ff0804 Compare January 27, 2025 07:45
This commit addresses TODO notes in the code related to Formtastic < 4
and sets the minimum required Formtastic version to >= 5.0
@tagliala tagliala force-pushed the chore/remove-redundant-code branch from 8ff0804 to a9ad8a8 Compare January 27, 2025 07:45
@tagliala tagliala changed the title Remove legacy Formtastic code Bump Formtastic to 5.0 and remove legacy code Jan 27, 2025
@tagliala tagliala marked this pull request as ready for review January 27, 2025 07:46
@tagliala
Copy link
Contributor Author

Done, merging

@tagliala tagliala merged commit 519e1b9 into master Jan 27, 2025
26 checks passed
@tagliala tagliala deleted the chore/remove-redundant-code branch January 27, 2025 07:51
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.

2 participants