Skip to content

THREESCALE-12434: Migrate from protected attributes to strong parameters - Part 1#4248

Open
mayorova wants to merge 17 commits intomasterfrom
strong-params-part1
Open

THREESCALE-12434: Migrate from protected attributes to strong parameters - Part 1#4248
mayorova wants to merge 17 commits intomasterfrom
strong-params-part1

Conversation

@mayorova
Copy link
Contributor

@mayorova mayorova commented Mar 11, 2026

What this PR does / why we need it:

This is part 1 of the migration from protected attributes to strong parameters.
Protected attributes is an old Rails feature which was deprecated a long time ago. We were using protected_attributes_continued gem to keep it working, but now it's also discontinued and does not support Rails 7+, so it's a blocker for upgrading to Rails 7.2 for us.

This Part 1 handles all simple models that don't have custom attributes (so, excluding Account, User, Cinstance).

Which issue(s) this PR fixes

https://redhat.atlassian.net/browse/THREESCALE-12434

Verification steps

All tests should pass, and all features should work as before.

Special notes for your reviewer:

jlledom
jlledom previously approved these changes Mar 11, 2026
Copy link
Contributor

@jlledom jlledom left a comment

Choose a reason for hiding this comment

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

If tests pass, approved 👍

@jlledom
Copy link
Contributor

jlledom commented Mar 11, 2026

Still a lot of references to without_protection, maybe this should be the PR to remove them

@mayorova mayorova force-pushed the strong-params-part1 branch from ead0bc4 to 29161ea Compare March 17, 2026 15:24
@mayorova mayorova changed the base branch from master to remove-inherited_resources March 17, 2026 17:10
@mayorova mayorova changed the title Strong params part1 THREESCALE-12434: Migrate from protected attributes to strong parameters - Part 1 Mar 17, 2026
@mayorova mayorova force-pushed the strong-params-part1 branch 2 times, most recently from ae221f6 to 0b8ead4 Compare March 17, 2026 17:14
@mayorova mayorova marked this pull request as ready for review March 17, 2026 17:18
@mayorova mayorova force-pushed the strong-params-part1 branch from 0b8ead4 to 6c69623 Compare March 18, 2026 15:35
@qltysh
Copy link

qltysh bot commented Mar 18, 2026

❌ 1 blocking issue (1 total)

Tool Category Rule Count
rubocop Lint Assignment Branch Condition size for create\_a\_complete\_provider is too high. [<16, 154, 1> 154.8/20] 1

@jlledom jlledom force-pushed the remove-inherited_resources branch from 6bd96d4 to f3227e4 Compare March 18, 2026 16:59
Base automatically changed from remove-inherited_resources to master March 18, 2026 21:03
@mayorova mayorova force-pushed the strong-params-part1 branch 2 times, most recently from bf3524b to a08b299 Compare March 18, 2026 23:54
- AuthenticationProvider::RedhatCustomerPortal
- AuthenticationProvider::ServiceDiscoveryProvider
- CMS::GroupSection
- CMS::Permission
- ApplicationKey
- BackendEvent
- LineItem
- Onboarding
- Partner
- Post
- ReferrerFilter
- Switches
- SystemName
- Finance::BillingStrategy
- Alert
- Forum
- Invitation
- MessageRecipient
- Metric
- Moderatorship
- PaymentDetail
- PaymentTransaction
- PlanMetric
- Profile
- Topic
- TopicCategory
- UserTopic
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.

2 participants