Skip to content

Request Line is too large (400) sometimes #347

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

Merged
merged 12 commits into from
Apr 24, 2013

Conversation

nuklea
Copy link
Contributor

@nuklea nuklea commented Dec 27, 2012

  • Request Line is too large now excempted, cuz using POST
  • Template now is more simple

@insanemainframe
Copy link

usefull pull request

@jezdez
Copy link
Contributor

jezdez commented Mar 2, 2013

This seems related to #357 to be honest, I'm closing this here since it doesn't merge cleanly anyway.

@nuklea
Copy link
Contributor Author

nuklea commented Mar 5, 2013

@jezdez but my pull request has easer template, than #357!

@jezdez
Copy link
Contributor

jezdez commented Mar 5, 2013

@midiotthimble Feel free to collaborate with the author of #357 then :)

@nuklea
Copy link
Contributor Author

nuklea commented Mar 5, 2013

@jezdez just don't understand why #357 better =( I can improve my code, if need.

@jezdez
Copy link
Contributor

jezdez commented Mar 5, 2013

@midiotthimble I assumed that while both pull requests tackle the same problem that it would be worthwhile to just work on one version. It wasn't a judgement on the quality. You have my attention now though. Can you explain why you think yours is better?

@jezdez jezdez reopened this Mar 5, 2013
@nuklea
Copy link
Contributor Author

nuklea commented Mar 5, 2013

@jezdez

@nuklea
Copy link
Contributor Author

nuklea commented Apr 18, 2013

@jezdez what I can do for approval this pull request?

@dkrnl
Copy link

dkrnl commented Apr 22, 2013

@jezdez This pull request works fine. In my project I have very long queries and now I can't debug that. Please, merge this pull request.

@jezdez
Copy link
Contributor

jezdez commented Apr 22, 2013

@midiotthimble Not quite yet, lemme make some comments on the code.

sql = request.GET.get('sql', '')
params = request.GET.get('params', '')
alias = request.GET.get('alias', 'default')
sql = request.REQUEST.get('sql', '')
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I understand it's not required anymore to accept those parameters via GET, could you please change to using request.POST instead?

@nuklea
Copy link
Contributor Author

nuklea commented Apr 23, 2013

@jezdez complete!

return hash

def reformat_sql(self):
from debug_toolbar.panels.sql import reformat_sql
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move this to a third module, e.g. debug_toolbar.utils or something match.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move what? reformat_sql function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jezdez please, be exactly :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, the reformat_sql function so that the import can be moved at the top of the file. I assume you put the import here to prevent a circular import.

@jezdez
Copy link
Contributor

jezdez commented Apr 23, 2013

@midiotthimble Looks great, thank you!

@nuklea
Copy link
Contributor Author

nuklea commented Apr 24, 2013

@jezdez circular import was resolved.

@jezdez
Copy link
Contributor

jezdez commented Apr 24, 2013

Hm, getting lots of merge conflicts when pull, can you update the pull request with the recent master please?

…go-debug-toolbar into sql-panel-refactor

Conflicts:
	debug_toolbar/static/debug_toolbar/css/toolbar.min.css
	debug_toolbar/views.py
@nuklea
Copy link
Contributor Author

nuklea commented Apr 24, 2013

@jezdez ready!

@nuklea
Copy link
Contributor Author

nuklea commented Apr 24, 2013

Don't know how to fix Django 1.5 tests.

@jezdez
Copy link
Contributor

jezdez commented Apr 24, 2013

Okay, it was an issue with the tests_require setting in setup.py that required Django 1.3-1.5 but not 1.5.x. Can you merge with master again and see if that fixes it?

@jezdez
Copy link
Contributor

jezdez commented Apr 24, 2013

Oh and definitely add yourself to the AUTHORS file!

@nuklea
Copy link
Contributor Author

nuklea commented Apr 24, 2013

I'm not sure that it's my guilty.

@jezdez
Copy link
Contributor

jezdez commented Apr 24, 2013

Awesome, the failing test was already failing in master!

jezdez added a commit that referenced this pull request Apr 24, 2013
Request Line is too large (400) sometimes
@jezdez jezdez merged commit 1390c40 into django-commons:master Apr 24, 2013
@jezdez
Copy link
Contributor

jezdez commented Apr 24, 2013

Thanks for you help @midiotthimble :)

ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
…factor

Request Line is too large (400) sometimes
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.

4 participants