-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
routing subsystem refactoring #435
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like unrelated change. PURGE is used for Varnish needs, but what's it purpose for aiohttp?
|
To not write "ok" for all inline comments, will say that here (: Also, I didn't get how to register system routes (tests also missed example of such case), but may be I should take a look a bit closer. |
|
System routes are not clear yet. At least Should we allow to replace existing system routes or just allow to set view on it. |
|
@fafhrd91 hm...I think that exceptions are the same base for views as methods: While there are also "default" system routes (actually views) to catch and process these errors when user route doesn't provides own handlers or accidentally reraise the error from own handler. |
|
Oh! I really like it. |
|
I like idea very much but please don't rush with merging. |
|
sure, it is too early for merging. some ideas. would be cool to make this to work |
|
I'm also thinking about nested applications and routers. |
|
Would you think about routing system based on route name? I mean... ...where |
|
@tark-hidden This PR allows that, though you'll have to specify route name explicitly via keyword argument: However, if route name is really mandatory for |
|
Ah, sorry! I've read an example code with |
|
@asvetlov did you have a chance to review this PR |
|
Sorry, I still have no time for exhausting review. I'm busy with preparing to europython. Maybe next week? |
|
As I see new route system is not compatible with existing one, right? So maybe better to add new router class ( I support splitting into route/view BTW. |
|
@fafhrd91 This branch has conflicts that must be resolved |
|
I do not have time for this change. Anyone wants to work on this change? |
|
count me on for this then |
|
Please coordinate this effort with @asvetlov Sent from my iPhone
|
|
hi @asvetlov |
|
Hello.
|
|
i think we should maintain compatibility. |
|
i'm up for point 1 |
|
@auvipy please let me know when you will have something to discuss. |
|
@asvetlov at gitter? or mail or here? |
|
I think github is better tool. |
|
ok let me know what u think should be done? I am up for adding a django like deprication utlis module for better management of feature deprication and related stuffs @ aiohttp an then add/depreicate features according to roadmape design plans. |
|
Try to figure out first what changes are required for adding new functionality without breaking any existing test. |
|
OK |
|
Done by #727 |
routing subsystem refactoring
this is first version, for discussion
it is not backward compatible, we can make it backward compatible later when we decide if we want to use this changes.
@asvetlov @kxepal thoughts, ides, etc