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

spring cleaning #522

Merged
merged 4 commits into from
Jan 10, 2019
Merged

spring cleaning #522

merged 4 commits into from
Jan 10, 2019

Conversation

vaibhavmule
Copy link
Contributor

tests are successfully except for tests/testing/test_unit_test.py and tests/test_upload_manager.py

@josephmancuso can you have a look?

"""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,
Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to uncomment it?

Copy link
Contributor Author

@vaibhavmule vaibhavmule Jan 9, 2019

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.

@vaibhavmule vaibhavmule requested a review from a team January 9, 2019 10:21
handler = logging.StreamHandler()
handler.setFormatter(formatter)

logger.addHandler(handler)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this addition?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to uncomment it?

config/storage.py Show resolved Hide resolved
@vaibhavmule
Copy link
Contributor Author

@josephmancuso Now it is failing at session, did i miss something?
https://travis-ci.org/MasoniteFramework/core/jobs/477381795

"""

DRIVER = os.getenv('SESSION_DRIVER', 'memory')
DRIVER = env('SESSION_DRIVER', 'cookie')
Copy link
Member

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?

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it work locally?

Copy link
Contributor Author

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.

Copy link
Member

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

@coveralls
Copy link

coveralls commented Jan 9, 2019

Coverage Status

Coverage remained the same at 89.71% when pulling 8df4046 on vaibhavmule-spring-cleaning into 38e99d7 on develop.

@vaibhavmule vaibhavmule changed the title WIP: spring cleaning spring cleaning Jan 9, 2019
@josephmancuso josephmancuso merged commit 3923890 into develop Jan 10, 2019
@josephmancuso josephmancuso deleted the vaibhavmule-spring-cleaning branch January 10, 2019 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants