Skip to content

Use Alchemy.config accessors instead of hash key#3275

Merged
tvdeyen merged 3 commits intomainfrom
alchemy-config-accessors
Jun 26, 2025
Merged

Use Alchemy.config accessors instead of hash key#3275
tvdeyen merged 3 commits intomainfrom
alchemy-config-accessors

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jun 20, 2025

What is this pull request for?

Instead of Alchemy.config.get(:some_config) we use Alchemy.config.some_config.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen added this to the 8.0 milestone Jun 20, 2025
@tvdeyen tvdeyen self-assigned this Jun 20, 2025
@tvdeyen tvdeyen force-pushed the alchemy-config-accessors branch 2 times, most recently from f8272f2 to 532cde8 Compare June 20, 2025 17:30
@tvdeyen tvdeyen removed their assignment Jun 20, 2025
@tvdeyen tvdeyen marked this pull request as ready for review June 20, 2025 17:32
@tvdeyen tvdeyen requested a review from a team as a code owner June 20, 2025 17:32
@tvdeyen tvdeyen force-pushed the alchemy-config-accessors branch 2 times, most recently from 1866bec to 9fcf6ce Compare June 20, 2025 20:00
@codecov
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@9d8524b). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3275   +/-   ##
=======================================
  Coverage        ?   96.89%           
=======================================
  Files           ?      266           
  Lines           ?     6826           
  Branches        ?        0           
=======================================
  Hits            ?     6614           
  Misses          ?      212           
  Partials        ?        0           

☔ 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.

Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

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

It does read nicer, but I think we should support at least the hash syntax as well (so not deprecate it)

tvdeyen added 3 commits June 25, 2025 21:49
Using `Alchemy.config.get(:config_name)` is easier
to find than `configuration`.
Unnecessary indirection
@tvdeyen tvdeyen force-pushed the alchemy-config-accessors branch from 8b6a5a6 to e9aae0c Compare June 25, 2025 19:50
@tvdeyen tvdeyen enabled auto-merge June 25, 2025 19:50
@tvdeyen tvdeyen disabled auto-merge June 26, 2025 05:55
@tvdeyen tvdeyen merged commit 7ab89f0 into main Jun 26, 2025
17 checks passed
@tvdeyen tvdeyen deleted the alchemy-config-accessors branch June 26, 2025 05:55
@alchemycms-bot alchemycms-bot bot mentioned this pull request Feb 4, 2026
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