-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Refactor Robyn and SubRouter classes #1072
Conversation
…er with empty lists of routes. This will confirm the imports haven't changed from the docs
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
CodSpeed Performance ReportMerging #1072 will not alter performanceComparing Summary
|
I'm not going to actually refactor the two classes until we get this basic move into a new module merged (it's going to create conflicts with other PRs if we don't get these merged in small bits. |
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.
Hey @dave42w 👋
Thank you for the PR but I am not a big fan of moving these classes outside the main __init__.py
file. I'd want the Robyn
class to be present in the main file only.
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.
Hi,
I'd be interested to understand better the reasons.
Is that just Robyn?
If I create a RobynBase class for Robyn and SubRouter where would that be best to go?
Thanks
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.
Hi @sansyrox
Can I have some direction on this. There is some neat refactoring possible to simplify Robyn and SubRouter and reduce potential issues. But I'm not sure how you want this to be organised.
It seems messy to me to have all this in init_.py but also odd to move RobynBase elsewhere while leaving Robyn behind.
But I'm willing to go in steps that you are happy with.
Refactor both Robyn and SubRouter to be cleaner and leaner without changing the developer API at all.
Use unit tests to confirm the existing behaviour continues to work unchanged.
Description
This PR fixes #1071
Summary
This PR does the following:
PR Checklist
Please ensure that:
Pre-Commit Instructions: