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

Remove deprecations in portals #2349

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Remove deprecations in portals #2349

merged 2 commits into from
Dec 11, 2024

Conversation

jdettmannnava
Copy link
Contributor

@jdettmannnava jdettmannnava commented Dec 10, 2024

🎫 Ticket

No ticket

🛠 Changes

  • Redis.current removed for mail throttling in web and admin
  • enums updated
  • csv gem added to web and admin Gemfiles
  • rspec and rubocop configurations made quieter
  • rubocop updated to new version

ℹ️ Context

The portals contain a number of deprecated behaviors that seem worth fixing. I made some other changes just to reduce noise in the testing.

Enums were deprecated because the old format will break with next Rails upgrade.

The fix for removing Redis.current is somewhat naive; there are more complex fixes involving pooling, but instantiation is not really very expensive, and its use is for sending emails in the sandbox (which is not particularly common). So an ideal fix seems like overengineering.

I also updated rubocop, because I was getting odd errors with the older version.

🧪 Validation

Automated tests all pass and no deprecations in the output.

@jdettmannnava jdettmannnava changed the title Remove deprecations Remove deprecations in portals Dec 10, 2024
@jdettmannnava jdettmannnava requested a review from a team December 11, 2024 17:02
@jdettmannnava jdettmannnava marked this pull request as ready for review December 11, 2024 17:02
Copy link
Contributor

@ashley-weaver ashley-weaver left a comment

Choose a reason for hiding this comment

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

🙌

@jdettmannnava jdettmannnava merged commit e385b1c into main Dec 11, 2024
8 checks passed
@jdettmannnava jdettmannnava deleted the jd/fix-deprecations branch December 11, 2024 17:55
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