summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports
Commit message (Collapse)AuthorAgeFilesLines
* Reports: Fix exception handling (#1035)Sol Jerome2011-09-151-3/+11
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Make database_port setting optionalHolger Weiß2011-09-041-1/+4
| | | | | | Make the database_port configuration parameter optional (as documented in doc/reports/dynamic.txt). The default port will now be used if the database_port is not explicitly set.
* Version bump to 1.2.0rc1v1.2.0rc1Sol Jerome2011-09-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports:unknown2011-08-123-10/+10
| | | | | toggle "[+]" to "[-]" and back on expanding/collapsing lists make the whole header bar clickable
* fixed regex in reports_client_history view; made all reports hostname ↵Chris St. Pierre2011-08-051-3/+3
| | | | regexes consistent
* DBStats: Bump internal database versionHolger Weiß2011-06-301-0/+4
| | | | | The internal database version must be incremented due to the new "is_sensitive" column.
* New database field: "is_sensitive"Holger Weiß2011-06-294-10/+23
| | | | | | The new "entry.reason.is_sensitive" flag indicates whether the file contents/diffs were omitted from the database due to the "sensitive" <Path> attribute.
* Version bump to 1.2.0pre3v1.2.0pre3Sol Jerome2011-06-181-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* PY3K: Add compatibility commentsSol Jerome2011-06-151-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Accept non-ASCII diffsHolger Weiß2011-06-141-3/+15
| | | | | | | Currently, client reports don't include diffs of files which aren't US-ASCII encoded. The client transmits such files as Base64 blobs. As we'd like to change that, this commit teaches the server to properly handle non-ASCII diffs.
* DBStats: Stop duplicating data in reports_reasonTim Laszlo2011-06-141-6/+3
|
* Reports: Fix settings parserSol Jerome2011-04-291-1/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> (cherry picked from commit cca5e6a474adf1453408909979143233d54ed2be) (cherry picked from commit 493eb728e35ca8e851bd686232182ea4b227c637)
* Consolidate PY3K compatibility librariesSol Jerome2011-04-263-27/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Add full PY3K compatibilitySol Jerome2011-04-268-20/+62
| | | | | | | | Note that Django still doesn't yet support version 3 so this won't necessarily work until there is a compatible version of django available for use. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Version bump to 1.2.0pre2v1.2.0pre2Sol Jerome2011-04-251-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Fix import error (Reported by emias on IRC)Sol Jerome2011-04-191-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added next() method to Reports BatchFetch iterator for compatibility with ↵Chris St. Pierre2011-04-121-0/+4
| | | | pre-3.0 versions of python
* Reports: Use the newer DATABASES option in settings.pyTim Laszlo2011-04-111-19/+28
|
* PY3K + PEP8 fixes for remaining filesSol Jerome2011-04-071-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Fix deprecated 'raise' usageSol Jerome2011-04-062-7/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: PY3K + PEP8 fixesSol Jerome2011-04-068-196/+275
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* sensible defaults for the Django module admin email addressesChris St. Pierre2011-04-051-1/+1
|
* Reports: Disable template loading from Python eggsSol Jerome2011-02-211-1/+0
| | | | | | | | | | | | This does not appear to work with the default settings for some distributions. Here is what happens on Ubuntu: [error] /usr/lib/pymodules/python2.6/django/template/loader.py:64: UserWarning: Your TEMPLATE_LOADERS setting includes 'django.template.loaders.eggs.load_template_source', but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS. This appears to be disabled in django by default as per http://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* export: Update version number for reportsSol Jerome2011-01-241-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Don't set TIME_ZONE unless it's supportedSol Jerome2010-11-021-1/+2
| | | | | | | Django added the TIME_ZONE = None bit in 1.2 and we are still supporting distros with 1.0 installed by default. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Fix default time zone settings (Resolves Ticket #957)Sol Jerome2010-11-021-1/+1
| | | | | | | | | | | We were previously defaulting to America/Chicago instead of leaving this option up to the user. Setting the default to None will cause Django to go by the system time. Note also that Django sets the os.environ['TZ'] variable when this is not none, so we want to be careful not to set that if we don't have to. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* web_reports: Moved location of reports.wsgi to a more stable locationTim Laszlo2010-11-021-4/+0
|
* web_reports: determine static prefix automaticallyTim Laszlo2010-11-022-7/+44
|
* Reports: Fix typoSol Jerome2010-11-021-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* web_reports: more PATH_INFO fixesTim Laszlo2010-11-021-2/+2
|
* web_reports: use PATH_INFO instead of path in the resolver. fixes prefix ↵Tim Laszlo2010-11-021-3/+3
| | | | problems.
* web_reports: remove commentsTim Laszlo2010-11-021-4/+0
|
* web_reports: remove web_prefix, add wsgi handlerTim Laszlo2010-11-022-17/+13
|
* reports: Remove svn merge conflictsSol Jerome2010-11-022-345/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* reports: Point to the bcfg2.org URLsSol Jerome2010-11-021-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* web reports: fix quotes in base-timeview.htmlTim Laszlo2010-11-021-1/+1
|
* web reports: tweaks and updatesTim Laszlo2010-11-021-21/+21
|
* web reports: new skinTim Laszlo2010-11-0233-1077/+1771
|
* reports: fix bcfg2-admin reports init when db is nonexistentTim Laszlo2010-11-021-2/+6
|
* DBStats: Purge historic data and expired clientsTim Laszlo2010-09-261-0/+34
| | | | | | | Adds a purge command to bcfg2-admin reports to permanently remove interactions and clients. Extends bcfg2-admin scrub to remove orphaned Reason and Entries objects. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6070 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Fix random mysql errorsTim Laszlo2010-07-301-12/+11
| | | | | | | | | Occasionally importing ping data would fail with "Commands out of sync; you can't run this command now". Improved logging and error handling for imports. Fixed indentation error in GetCurrentEntry git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5992 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Support for postgresqlTim Laszlo2010-07-162-83/+41
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5975 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Improved handling of binary objects in the databaseTim Laszlo2010-07-084-4/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5962 ce84e21b-d406-0410-9b95-82705330c041
* Removing old Django modelsTim Laszlo2010-07-083-572/+294
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5961 ce84e21b-d406-0410-9b95-82705330c041
* tabs -> spacesSol Jerome2010-06-102-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Updated files to match PEP 257 Fabian Affolter2010-06-093-40/+54
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5903 ce84e21b-d406-0410-9b95-82705330c041
* updatefix.py doesn't load initial database version for django 1.*Tim Laszlo2010-06-071-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5892 ce84e21b-d406-0410-9b95-82705330c041
* Performance improvements for bcfg2-admin reports scrub.Tim Laszlo2010-06-071-0/+30
| | | | | | | Switched object updates to executemany statements. Added BatchFetch to retreive Django objects in groups. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5891 ce84e21b-d406-0410-9b95-82705330c041
* Switch location to hostname. Urls break things.Tim Laszlo2010-06-041-6/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5887 ce84e21b-d406-0410-9b95-82705330c041
* Performance updates to dynamic reportsTim Laszlo2010-06-037-60/+140
| | | | | | | | | | | | | | | | | Added bad_entries, modified_entries, extra_entries database fields to reduce the number of calls. Created (bad|modified|extra)_entry_count methods to return the sbove fields and populate any missing values. Consolidate interaction_per_client query. Added unique constraint on client_id and timestamp in Interaction. Greatly improved the performance of interaction_per_client. Modified detailed-list.html to add modified field and reduce the database calls to two... unless the bad_entries, modified_entries, extra_entries fields need updating. Modified client index to use only two database queries. Adding automatic update Updating load_stats to update counters in reports_interaction git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5885 ce84e21b-d406-0410-9b95-82705330c041