summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting
Commit message (Collapse)AuthorAgeFilesLines
* Fix string conversion for Python 3py3-serverJonah Brüchert2024-05-231-2/+2
|
* Remove broken django version checksJonah Brüchert2024-05-233-21/+6
|
* Adapt to moved django url functionsJonah Brüchert2024-05-233-5/+3
|
* fix the diff display, noting that b64 decoded diff data are actually a stringKonstantin L. Metlov2024-04-201-1/+1
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* added on_delete=models.CASCADE to all models.OneToOneField invocationsKonstantin L. Metlov2024-04-208-18/+18
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* added forgotten parenthesis in the last commitKonstantin L. Metlov2024-04-201-2/+2
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* FieldDoesNotExist is actually in django.core.exceptions in newer DjangoKonstantin L. Metlov2024-04-201-2/+2
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* added on_delete=models.CASCADE to all ForeignKey invocationsKonstantin L. Metlov2024-04-2010-103/+107
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* add missing (required in newer Django) argumentKonstantin L. Metlov2024-04-201-0/+1
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* Run 2to3 on the entire projectJonah Brüchert2024-04-1916-118/+118
|
* Merge branch 'debconf'Alexander Sulfrian2022-01-305-5/+399
|\
| * debconf: Add ConfEntry to ReportingAlexander Sulfrian2022-01-305-5/+399
| |
* | Reporting: Set flag when interaction is fully importedAlexander Sulfrian2022-01-165-3/+327
|/
* Reporting: Fix add_url_filter fallbackAlexander Sulfrian2019-06-171-1/+2
| | | | | | django-1.8 deprecated referencing views as strings in the url(), so we need to import the fallback view and referencing the view function directly.
* Merge pull request #396 from solj/add-missing-reporting-entriesAlexander Sulfrian2018-03-221-2/+6
|\ | | | | Reporting: Add SELinux entries
| * Reporting: Add SELinux entriesSol Jerome2017-11-301-2/+6
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Reporting: Fix syntax of "cycle" templatetagAlexander Sulfrian2018-03-219-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | The backwords compatible syntax was removed in 1.10. The "new" syntax is available since 11 years [1] and was already available in django 1.0 [2]. > Support for the syntax of {% cycle %} that uses comma-separated > arguments is removed. [3] [1]: https://code.djangoproject.com/ticket/208 [2]: https://github.com/django/django/commit/09145d2e5f [3]: https://docs.djangoproject.com/en/2.0/releases/1.10/#features-removed-in-1-10
* | Reporting: Use django.shortcuts.renderAlexander Sulfrian2018-03-211-40/+32
| | | | | | | | | | | | | | Replace django.shortcuts.render_to_response with django.shortcuts.render because the context_instance argument was deprecated in django 1.8 and removed in django 1.10. The render shortcut is available since django 1.3, so we can use it without a version check.
* | Reporting: Fix compat for "patterns" in django1.10Alexander Sulfrian2018-03-211-2/+2
|/
* Merge branch 'import-models' of https://github.com/0/bcfg2 into ↵Sol Jerome2017-07-111-2/+2
|\ | | | | | | | | | | add-missing-reporting-entries Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Reporting/Storage: Import ActionEntryDmitri Iouchtchenko2017-05-081-2/+2
| | | | | | | | It wasn't included in the transition from a wildcard import in 255faaf.
* | Reporting: Add POSIX User/Group Entry typesSol Jerome2017-07-111-2/+4
|/ | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reporting/Storage: Import ServiceEntryDmitri Iouchtchenko2017-05-051-2/+2
| | | | It wasn't included in the transition from a wildcard import in 255faaf.
* Reporting: Fix missing sys importSol Jerome2017-01-101-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge pull request #345 from AlexanderS/fix/django-1.10Alexander Sulfrian2017-01-102-35/+35
|\ | | | | Fixes for django 1.10
| * Reporting/Compat: Add patterns compat methodAlexander Sulfrian2016-08-181-1/+13
| | | | | | | | | | django 1.10 removed the patterns method, so we define it manually a bit easier than the old upstream variant but sufficient for our needs.
| * Reporting: Ensure we have an empty prefix in the url patternsAlexander Sulfrian2016-08-181-21/+22
| |
| * Reporting: Remove outdated commentsAlexander Sulfrian2016-08-181-13/+0
| |
* | DBSettings: Call django.setup() right after configuring the settingsAlexander Sulfrian2016-11-281-2/+0
| | | | | | | | | | | | If required the DBSettings config hook will call django.setup right after configuring django with the required settings. So we can drop the calls to django.setup from all other places.
* | Reporting/Storage: Reordering of the importsAlexander Sulfrian2016-11-211-10/+9
| |
* | Reporting/Storage: Removed unused importAlexander Sulfrian2016-11-211-1/+0
| |
* | Reporting/Storage: Load django models after option parsingAlexander Sulfrian2016-11-211-4/+15
| | | | | | | | | | | | django get setup during option parsing and we cannot acces "django.db.models" before. So we need to delay the import of the models until the option parsing is ready.
* | Reporting/Storage: Remove wildcard importAlexander Sulfrian2016-11-211-1/+4
| |
* | Reporting: Remove invalid fields from select_relatedDmitri Iouchtchenko2016-09-151-1/+1
| |
* | Reporting: Add bcfg2_compat templatetag libraryAlexander Sulfrian2016-08-3112-43/+25
|/ | | | | | The url tag from the future tag lib, that was required with older django versions, was removed from django1.9. So we add a compat tag library to use the correct available variant.
* Reporting/templates: Remove deprecated syntaxAlexander Sulfrian2015-11-171-1/+1
| | | | | | > Deprecated since version 1.8: > You can also pass a dotted Python path to a view function, but this > syntax is deprecated and will be removed in Django 1.10.
* Reporting/templates: Fix django1.5 compatAlexander Sulfrian2015-11-171-1/+1
| | | | This was missing in 84a83cab07853b83e91c40c440f65b911e3296a5.
* Version bump to 1.4.0pre2Sol Jerome2015-11-131-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge pull request #309 from AlexanderS/fix/report-filtersChris St. Pierre2015-10-131-12/+31
|\ | | | | Reporting: Do not fail, if no interactions found
| * Reporting: Do not fail, if no interactions foundAlexander Sulfrian2015-09-181-12/+31
| | | | | | | | | | | | With the filter feature of bcfg2-reports it is possible that all interactions of a client gets filtered. Now we simply skip those clients without interactions and do not fail with an exception.
* | Reporting: Add django.setup()Alexander Sulfrian2015-09-291-0/+3
| | | | | | | | | | bcfg2-reports does not call sync_databases or migrate_databases before making the database queries. So we need to initialize django here, too.
* | Reporting: Replace get_template_from_string() for django 1.8Alexander Sulfrian2015-09-231-2/+9
| | | | | | | | | | Django 1.8 introduced different template engines and droped the get_template_from_string function as it does not support the new feature.
* | Reporting: Replace _meta.get_all_field_names() for django 1.8Alexander Sulfrian2015-09-231-1/+11
| | | | | | | | | | | | | | The _meta API was changed with django 1.8 and get_fields() now returns all model fields even fields defined in related models. But while creating the Entries we use this field list for construction and the list should only contain local fields.
* | Reporting: Do not use django.db.backend in newer django versionsAlexander Sulfrian2015-09-231-6/+11
| | | | | | | | | | | | The private API django.db.backend is deprecated in django 1.7 and removed in django 1.8, so we use another way to get the DatabaseOperations from the connection.
* | Replace close_connection() for newer django versionsAlexander Sulfrian2015-09-231-2/+6
| | | | | | | | | | | | | | django.db.close_connection() is deprecated in django1.7 (and removed in 1.8). The new django.db.close_old_connections() does not seem to work like the old one (see http://stackoverflow.com/a/32614137), so we replace it with an own implementation.
* | Add matching django migrations for southAlexander Sulfrian2015-09-237-272/+411
| |
* | make Bcfg2-web compatible with django 1.7Jonas Jochmaring2015-09-239-464/+1009
|/ | | | | | - reports.wsgi uses get_wsgi_application() now - old south-based migrations have been moved - manage.py has been updated
* Reporting/templates: Use configurable date formats.Alexander Sulfrian2015-07-236-6/+12
|
* Merge branch 'maint'Alexander Sulfrian2015-06-123-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog doc/conf.py misc/bcfg2-selinux.spec misc/bcfg2.spec osx/Makefile osx/macports/Portfile solaris-ips/MANIFEST.bcfg2-server.header solaris-ips/MANIFEST.bcfg2.header solaris-ips/Makefile solaris-ips/pkginfo.bcfg2 solaris-ips/pkginfo.bcfg2-server solaris/Makefile solaris/pkginfo.bcfg2 solaris/pkginfo.bcfg2-server src/lib/Bcfg2/Client/Tools/APT.py src/lib/Bcfg2/Client/Tools/FreeBSDInit.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/templates/base.html src/lib/Bcfg2/Server/CherrypyCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/__init__.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Lint/__init__.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/__init__.py src/lib/Bcfg2/Server/Plugins/GroupPatterns.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/lib/Bcfg2/Server/Plugins/SSLCA.py src/lib/Bcfg2/version.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/requirements.txt
| * Version bump to 1.3.6Sol Jerome2015-06-111-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>