Commit Graph

839 Commits

Author SHA1 Message Date
26ae6bc96b Refactoring
* splits intervention/models.py into subpackage
2021-11-15 17:19:06 +01:00
4ae5b38198 Refactoring
* renames model ResponsibilityData into Responsibility
* renames model LegalData into Legal
* moves form->object saving logic into model
* refactors NewDocumentForm into special types for intervention, compensation, eco account and ema
*
2021-11-15 17:09:17 +01:00
fcc364027c Merge pull request '38_User_requests' (#42) from 38_User_requests into master
Reviewed-on: SGD-Nord/konova#42
2021-11-15 16:00:43 +01:00
9211068dc7 #38 User requests
* implements 5) "Add 'Maßnahmentyp' for KOMs "
    * prepares model and form fields as mixins for easy extension to eco accounts and emas (possibly in the future?)
2021-11-15 15:55:09 +01:00
e4a40cdff5 #38 User requests
* implements 4) "Comment fields should be of unlimited size"
2021-11-15 14:08:29 +01:00
6ec37dbe11 #38 User requests
* implements 3) "Extend sharing on direct adding of users"
2021-11-15 14:00:08 +01:00
faffd454b9 #38 User requests
* implements 2) "Multiple revocations for interventions"
2021-11-15 12:18:22 +01:00
a0df7f4fe1 #38 User requests
* implements 1) "Add titles to public reports, next to identifiers"
2021-11-15 11:05:39 +01:00
61b92c1409 Merge pull request '39_Drop_fundings' (#41) from 39_Drop_fundings into master
Reviewed-on: SGD-Nord/konova#41
2021-11-15 10:55:57 +01:00
e633ac542b #39 Drop fundings
* removes fundings from all models
2021-11-15 10:55:15 +01:00
36f0603a3b #39 Drop fundings
* removes fundings from all models, except the EMA model for migration compatibility (some old data may have fundings data)
2021-11-15 09:59:01 +01:00
500ed2d40b Merge pull request '19_Tests' (#40) from 19_Tests into master
Reviewed-on: SGD-Nord/konova#40
2021-11-15 09:48:11 +01:00
e99af98a13 #19 Tests
* restructures setup for workflow tests in interventions
2021-11-12 16:42:40 +01:00
03ff4098f0 #19 Tests
* adds workflow edit testing for compensations
2021-11-12 16:05:26 +01:00
92cfb95789 #19 Tests
* adds workflow testing for geometries on new creation of intervention and compensation
*
2021-11-12 14:54:33 +01:00
6c35fc59af #19 Tests
* refactors sharing user setting by introducing share_with(user) and share_with_list(user_list) for BaseObject for a more self-explanatory sharing
2021-11-11 15:09:03 +01:00
a5e816c67b #19 Tests
* adds workflow tests for eco account deduction creation
2021-11-11 13:35:08 +01:00
ffadfa2f47 #19 Tests
* adds workflow tests for compensation checking and recording
* improves related code
2021-11-11 13:13:05 +01:00
796990ffbc #19 Tests
* adds workflow tests for checkability and recordability for interventions
* fixes/improves code snippets detected by testing
2021-11-11 10:37:22 +01:00
34fd78be5e #19 Tests
* adds workflow tests or deductions in InterventionWorkflowTestCase
* fixes bugs detected by testing
2021-11-10 15:36:18 +01:00
d93ff4015b #19 Tests
* adds new BaseWorkflowTestCase class for encapsulating
* adds new InterventionWorkflowTestCase class with first workflow tests
2021-11-10 14:08:16 +01:00
7a1db1e9c7 #19 Tests
* moves dummy data creation from BaseViewTestCase into BaseTestCase
2021-11-10 11:41:51 +01:00
7c76caddfb Export codelist command
* adds a useful custom command which exports a specific selectable codelist into a csv file
2021-11-10 09:52:09 +01:00
eb2e19cbe0 #19 Tests
* adds EcoAccount tests
* fixes bugs found by testing
2021-11-10 09:11:24 +01:00
1dc931d736 #19 Tests
* adds EMA test
2021-11-09 15:33:26 +01:00
81c32d6318 #19 Tests
* adds EMA tests
* extends compensation tests
* fixes bugs detected by testing
* restructured tests for performance boost
2021-11-09 13:06:22 +01:00
9ffd1b4482 #19 Tests
* fixes bug where compensations still appeared on the public report despite being marked as deleted
* fixes bug where eco account could be deducted into a negative account balance
2021-10-28 17:21:07 +02:00
30e5239c49 #19 Tests
* adds tests for compensations (WIP)
* refactors some dummy data generating into base test class
* fixes bugs detected by testing
* adds important requirements.txt change for itsdangerous package (<1.0.0 for compatibility to django-simple-sso)
2021-10-27 14:44:49 +02:00
c4af63cea2 #19 Tests
* refactors CheckableMixin and RecordableMixin into CheckableObject and RecordableObject
* adds ShareableObject for wrapping share related fields and functionality
* adds share functionality to EcoAccount and EMA, just like Intervention
2021-10-26 15:09:30 +02:00
7c7a21052a #19 Tests
* refactors test logic into base test classes
* adds tests for views in konova app
* fixes bugs/warnings detected by testing
2021-10-26 14:26:32 +02:00
023bdda545 #19 Tests
* adds tests for views in intervention app
* fixes bugs detected by test writing
2021-10-26 11:38:34 +02:00
100f31bda7 HOTFIX: Quality checks
* fixes bug due to missing evaluation of compensation validity
2021-10-26 07:56:26 +02:00
79925ac3b9 Merge pull request '36_Quality_checks' (#37) from 36_Quality_checks into master
Reviewed-on: SGD-Nord/konova#37
2021-10-26 07:50:37 +02:00
13c1a35a36 #36 Quality checks
* adds check on recording of intervention in case of invalid compensations
2021-10-26 07:47:53 +02:00
d7bb2ef1dd #36 Quality checks
* adds unchecking/unrecording of interventions in case of post-check|post-record editing
2021-10-25 17:39:39 +02:00
f6f532effb #36 Quality checks
* refactors toggling of recorded status into RecordableMixin
2021-10-25 17:01:02 +02:00
0e4113249f #36 Quality checks
* adds quality check logic for EcoAccount with EcoAccountQualityChecker
* adds/updates translations
* adds quality check logic for EMA with EmaQualityChecker
2021-10-25 14:36:58 +02:00
ba04788064 #36 Quality checks
* adds quality check logic for Compensations with CompensationQUalityChecker
* adds compensation quality checking to checking routine of RunCheckModalForm.is_valid()
* adds/updates translations
2021-10-25 13:44:54 +02:00
efd5b6bb98 #36 Quality checks
* moves geometry check logic to upper class
2021-10-25 13:21:27 +02:00
b6e52f6b4c #36 Quality checks
* adds AbstractQualityChecker as base for all quality checker instances
* adds InterventionQualityChecker, inheriting from AbstractQualityChecker
* adds functionality to InterventionQualityChecker
* adds/updates translations
2021-10-25 13:06:54 +02:00
fa645ddb09 Merge pull request '#32 Disable file download' (#34) from 32_Disable_file_download into master
Reviewed-on: SGD-Nord/konova#34
2021-10-25 09:37:51 +02:00
5e00e8cc1b #32 Disable file download
* refactors: attached files can only be downloaded by users with shared access
* adds hint on unshared data being unshared for compensation, ema, eco-account
* minor optical enhancement for user contact form
2021-10-25 08:51:06 +02:00
6a528a1085 Merge pull request '26_Annual_conservation_reports' (#33) from 26_Annual_conservation_reports into master
Reviewed-on: SGD-Nord/konova#33
2021-10-25 08:20:25 +02:00
91c07df314 #26 Annual conservation report
* adds LegalData to EcoAccount to provide registration_date support ("agreement date") for old-data report generating
* adds/updates translations
2021-10-22 13:32:05 +02:00
c7b22592de #26 Annual conservation report
* enhancements for report2excel functionality
* improvements for report2html layout
+
2021-10-22 12:36:39 +02:00
9c523a0a0c #26 Annual conservation report
* Adds download as excel sheet
* adds excel_report.xlsx as template for excel sheet download
* improves db access performance
2021-10-21 15:37:01 +02:00
ed01984987 #26 Annual conservation report
* Adds download as excel sheet
* improves db access performance
2021-10-21 14:58:54 +02:00
8872155e61 #26 Annual conservation report
* adds first try for excel file downloading (WIP)
2021-10-20 15:25:08 +02:00
6b152616dd #26 Annual conservation reports
* enhances TimespanReportForm control rendering
* adds/updates translations
2021-10-20 13:41:32 +02:00
c45198e825 #26 Annual conservation reports
* adds index form for selecting timespan and office of interest
* adds timespan support for TimespanReport
* fixes naive datetime issues
* fixes missing error message css tag
* adds/updates translations
2021-10-20 13:23:35 +02:00