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

Allow route classes to be prioritized to adjust run order #538

Merged
merged 11 commits into from
May 15, 2022

Conversation

jaredcwhite
Copy link
Member

Previously, classes in server/routes would add to Roda's run block in "Zeitwerk" order…roughly alphabetical I'd guess. Now they're added (a) by priority, so you can ensure high priority routes are handled before low priority ones, and (b) alphabetical by class name within a single priority tier.

In addition, we now have Rack/Roda/SSR integration testing in our test suite. 🎉 Lots more tests to follow!

@render
Copy link

render bot commented Apr 20, 2022

@render
Copy link

render bot commented Apr 20, 2022

@jaredcwhite jaredcwhite added this to the 1.1 milestone Apr 24, 2022
@jaredcwhite
Copy link
Member Author

Builder priority feature was added as well, and priority logic was extracted to a concern. So now base plugins (converters, generators), builders, and routers all share similar logic. (Hooks are still an odd duck, but maybe there's a way to solve that too down the road.)

@jaredcwhite jaredcwhite merged commit 8b0a13f into main May 15, 2022
@jaredcwhite jaredcwhite deleted the priority-system-for-route-classes branch May 15, 2022 18:11
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.

1 participant