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

Add django-dev-dashboard as an app #313

Closed
wants to merge 1 commit into from

Conversation

relekang
Copy link
Contributor

It uses the code from the django/django-dev-dashboard with some design changes and new migrations. It is added under the host dashboard.djangoproject.com.

There is still some work needed to be done, but I opened this in hope of getting som feedback.

screenshot 2015-01-16 10 49 46

Closes #309

Todo:

  • Add tests for the python code
  • Install jquery-flot with bower
  • Update ansible playbook to create update_metrics cronjob

@jezdez
Copy link
Contributor

jezdez commented Jan 16, 2015

Nice work!

One thing I noticed is that it doesn't use the bower setup for the jquery plugin. Any specific reason?

doc = model_to_dict(metric)
doc['data'] = metric.gather_data(since=d)

return http.HttpResponse(
Copy link
Contributor

Choose a reason for hiding this comment

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

This could use the new JSONResponse class

@relekang
Copy link
Contributor Author

One thing I noticed is that it doesn't use the bower setup for the jquery plugin. Any specific reason?

Only because I haven't found a good way to build it yet, bower clones the gitrepo without minified versions or a concatenated version. It could probably be done in the Makefile?

@jezdez
Copy link
Contributor

jezdez commented Jan 16, 2015

@relekang Nicely done! The Makefile approach is good enough but we're serving the files with gzip so there is really not much sense in minifying the files (or at least very little). I don't mind having the make task around, since we definitely have inconsistency with some of the other dependencies, so maybe we can revisit this whole minifying business at a later in a different branch/PR.


urlpatterns = patterns(
'',
url('^$', 'dashboard.views.index', name="dashboard-index"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't block indent

@jezdez
Copy link
Contributor

jezdez commented Jan 16, 2015

I'm gonna take care of setting up the cronjob for running the update_metric command hourly

@relekang
Copy link
Contributor Author

Thanks for the input

@relekang
Copy link
Contributor Author

@jezdez I added some tests

@jezdez
Copy link
Contributor

jezdez commented Jan 21, 2015

Sorry that this has gotten a bit on the backburner, we've been working on a fundraising page in the past week but launched today. Gonna try getting this properly reviewed again and pushed as soon as possible. Thank you for your patience, @relekang!

@relekang
Copy link
Contributor Author

I understand, thank you for letting me now :)

I'll try to keep this up to date with master.

It uses the code from the django/django-dev-dashboard with some design
changes, new tests, translation marks and new migrations. It is added
under the host dashboard.djangoproject.com.
@jezdez
Copy link
Contributor

jezdez commented Jan 26, 2015

I've made some minor updates (e.g. use requests-mock instead of rmoq) and merged master in #363.

@jezdez jezdez closed this Jan 26, 2015
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.

Move dev dashboard code into this repo
2 participants