Refactor AdminRouter.__init__ for easier customisation#442
Refactor AdminRouter.__init__ for easier customisation#442hubert-springbok wants to merge 6 commits intopiccolo-orm:masterfrom
AdminRouter.__init__ for easier customisation#442Conversation
|
@hubert-springbok I think your changes are great. I tried this PR and all the tests passed and everything works great. There are a few linter errors (mostly long docstring and comments), but that's minor problem. Thanks for your effort and time. |
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #442 +/- ##
==========================================
+ Coverage 93.42% 94.49% +1.07%
==========================================
Files 5 5
Lines 365 436 +71
==========================================
+ Hits 341 412 +71
Misses 24 24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I've resolved your comments and shortened most lines to 79 characters - let me know if anything else is needed before merge |
Skelmis
left a comment
There was a problem hiding this comment.
Other then some minor typing changes, looks good to me!
Apply suggestions from code review Co-authored-by: Ethan <47520067+Skelmis@users.noreply.github.com>
|
@dantownsend this PR is ready to go, just waiting on your approval & merge |
|
This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed? |
|
@Skelmis , @dantownsend , are you still looking to merge this one? It seemed to be ready, but some merge conflicts occured since |
|
My apologies for that, I am still quite keen for this @hubert-springbok. @dantownsend is also keen but is just a tad time limited at the moment to properly dive into the PR. If your all good to resolve the merge conflicts I'll follow back up on our end |
|
@hubert-springbok Here is the updated |
|
Thanks @sinisaos , I've pushed that to the branch now |
|
This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed? |
The refactor intends to keep all the functionality excactly the same and mostly moves blocks of code into helper methods.
However, in the course of the refactor, I made several changes:
superuser_tablesvariable to reflect certain usage patterns forauth_tableandsession_tablehandle_auth_exception, which was causing a type errorDespite best efforts, some of the diff is not easy to read, but I hope you'll be able to review and gain confidence in the changes.