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

Route-level extension management. #2726

Closed
wants to merge 3 commits into from
Closed

Conversation

devinivy
Copy link
Member

This is part of the work for #2566. Wanted to get some feedback, @hueniverse, before moving forward if you'd like me to. This is meant to be a refactor of how lifecycle hooks are managed so that routes and connections each have their own list of dependency-managed hooks.

The approach is to let each connection keep track of route-level extensions in addition to their own onRequest extensions. A route will pull-in its connection's route-level extensions when it's added. When a new extension is added to a connection, it's also added to each route's (and special route's) list of extensions.

No tests have been added yet. The one failing test (188) Methods allows genreateTimeout to be false) is failing on the current build. There should be no API changes in this PR. If this looks good it can be used to add lifecycle hooks to route configurations.

Edit Looks like some PRs have been merged in time to see no failing tests.

@hueniverse
Copy link
Contributor

Thanks for the effort, but this is the kind of refactor that I am unlikely to take from a PR. It has to be something I do from scratch - just how my process works. It looks reasonable (basically keep a route level list and init it with whatever was already added to the connection pre-route).

@hueniverse hueniverse closed this Aug 19, 2015
@hueniverse
Copy link
Contributor

In general, if I don't mark an issue with help wanted or new contributors, I am not ready to take pull requests on it...

@hueniverse hueniverse added the feature New functionality or improvement label Aug 19, 2015
@hueniverse hueniverse self-assigned this Aug 19, 2015
@devinivy
Copy link
Member Author

No worries– just wanted to dig into some unfamiliar territory.

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants