-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
spring cleaning #522
spring cleaning #522
Conversation
"""HTTP Middleware | ||
HTTP middleware is middleware that will be ran on every request. Middleware | ||
is only ran when a HTTP call is successful (a 200 response). This list | ||
should contain a simple aggregate of middleware classes. | ||
""" | ||
|
||
HTTP_MIDDLEWARE = [ | ||
LoadUserMiddleware, | ||
# todo | ||
# CsrfMiddleware, |
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.
@josephmancuso FYI. I have kept it as todo.
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.
to uncomment it?
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.
I mean I kept it as it is. it commented out when I am doing spring cleaning.
handler = logging.StreamHandler() | ||
handler.setFormatter(formatter) | ||
|
||
logger.addHandler(handler) |
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.
What is this addition?
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.
I'm not sure but they are in masonite repo.
https://github.com/MasoniteFramework/masonite/blob/8f7a289e1e918b58c1115d669bea8fbe9b8a8a68/config/database.py#L55
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.
🤔 i'm not sure why i added these .... lol
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.
is it related to logger driver?
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.
no it's suppose to show the queries in the terminal (so you can optimize) but i thought thats what the DB_LOG
was doing .. lol
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.
not sure why i added this extra code
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.
we can keep it for now and remove it later.
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.
?
"""HTTP Middleware | ||
HTTP middleware is middleware that will be ran on every request. Middleware | ||
is only ran when a HTTP call is successful (a 200 response). This list | ||
should contain a simple aggregate of middleware classes. | ||
""" | ||
|
||
HTTP_MIDDLEWARE = [ | ||
LoadUserMiddleware, | ||
# todo | ||
# CsrfMiddleware, |
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.
to uncomment it?
@josephmancuso Now it is failing at session, did i miss something? |
config/session.py
Outdated
""" | ||
|
||
DRIVER = os.getenv('SESSION_DRIVER', 'memory') | ||
DRIVER = env('SESSION_DRIVER', 'cookie') |
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.
possibly this change from cookie to memory?
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.
this shouldn't break it tho but i wonder if this is breaking it
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.
does it work locally?
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.
No it does not, memory works.
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.
hmm i'm gonna need to bring that in later and make sure nothing is wrong with that
20d447d
to
8df4046
Compare
tests are successfully except for
tests/testing/test_unit_test.py
andtests/test_upload_manager.py
@josephmancuso can you have a look?