artemharutyunyan/copilot — pull request #5 by josip (2012-07-06 23:14:33+00:00)
Title: Improved Dashboard

List and short description of files included in the pull request.

* `.gitignore`: .pyc and .aux are now being ignored

**Docs**

* `doc/copilot-tr/Makefile.doc`: A copy of old Makefile from SVN repository, it was missing probably because makefiles are listed in .gitignore.
* `doc/copilot-tr/content/deployment.tex`: Document now lists exact versions of dependencies it requires, updated install instructions for ejabberd module and the new dashboard.

**Dashboard**

* src/copilot-dashboard
* `INSTALL`: Short version of thesve related text from the technical report
* `MANIFEST.in`/`README`/`setup.py`: Files required for a Python package, mostly standard code.
* `copilot-dashboard.config.example`: Example configuration file which user will have to manually copy to /etc/copilot
* bin/
* `copilot-dashboard`: Script for starting and stopping the dashboard.
* copilot_dashboard/ (contains the actual Django application)
* `__init__`/`settings`/`local_settings`/`tests`/`manage`.py: Files generated by Django, have been slightly modified (locale settings, database, filesystem, etc.)
* `urls.py`: Defines URL routes.
* `models.py`: Maintains a connection to the database.
* `views.py`: Actual server-side code, provides access to Graphite and MongoDB
* static/ (JavaScript, CSS and images)
* `js/dashboard2.js`: can display realtime/hourly/weekly/data, as well as a map of currently connected users (git thinks its a new file while it actually isn't)

**ejabberd module**

* src/copilot-ejabberd-module
* `configure.sh`: Generated Makefile had inconsistent indentation, bson module wasn't installed properly
* `src/mod_copilot.erl`: Number of connected users is now reported every 60 seconds (L109-117) and MongoDB document contains more information (L181-190)

**Generic Job Manager**

* src/copilot-jobmanager-generic:
* `bin/copilot-jobamanger-generic`/`etc/copilot/copilot-jobmanager-generic.conf`: added MongoDB-related configuration bits
* `lib/Copilot/Component/JobManager/Generic.pm`: Saving number of succeeded/failed jobs for each agent (L399-424) (my text editor has OCD so it had to remove all blank lines and extra whitespace - that's why there are so many differences)
* `src/copilot/lib/Copilot/Util.pm`: Added a function for parsing agent JID's

**Monitor**

* src/copilot-monitor/utils
* `install-graphite.sh`: Download commands for carbon, whisper and graphite were missing(!)
* `conf/storage-schemas.conf`: added a Graphite storage schema for ejabberd-related data