f4541abf20
#50 Overlaying geometries
...
* refactors geometry field into GeoReferencedMixin, holding more handy methods and used in all models, formerly holding the geometry field
* refactors backend admin configuration, so modified, deleted and created are not editable in the backend which also skips loading of all possible choices
* fixes typo in sanitize_db command
* introduces GeometryConflict model, holding a link between two geometries, where one overlaps the other
* adds first (WIP) messages into detail views of ema and intervention for test purposes
2021-12-15 13:59:52 +01:00
262f85e0e0
Merge pull request '48_Share_with_full_known_users' ( #51 ) from 48_Share_with_full_known_users into master
...
Reviewed-on: SGD-Nord/konova#51
2021-12-15 09:35:53 +01:00
d580080232
#48 Tests finished
...
* finishes user autocomplete unit test
2021-12-15 09:34:40 +01:00
6b90764132
#48 Tests
...
* adds tests (WIP)
2021-12-14 16:04:35 +01:00
8b17ab6fdc
#48 Changes autocomplete
...
* changes the autocomplete route for user retrieving from _istartswith to full qualified check
* extends the help text for form to inform about full qualified username needed
* updates translation
2021-12-14 13:55:08 +01:00
7edad208a1
Merge pull request '46_MIME_Type_check_for_file_upload' ( #47 ) from 46_MIME_Type_check_for_file_upload into master
...
Reviewed-on: SGD-Nord/konova#47
2021-12-09 13:21:00 +01:00
2a8669ded2
#46 MIME Type check
...
* adds unit tests for new methods in konova/tests/test_documents.py
* refactors _accepted_mime_types of AbstractDocument into _valid_mime_types
2021-12-09 13:19:52 +01:00
ce747255bc
#46 MIME Type check
...
* adds file mime type check on NewDocumentForm
* adds file size check on NewDocumentForm
* adds is_xy_valid methods as classmethods on AbstractDocument
* adds translations for error messages
* updates help text on NewDocumentForm file field
2021-12-09 12:39:04 +01:00
5b70663987
Merge pull request '35_DB_sanity_command' ( #44 ) from 35_DB_sanity_command into master
...
Reviewed-on: SGD-Nord/konova#44
2021-11-17 14:37:34 +01:00
122c9cb363
Refactors triggering checked/recorded
...
* refactors BaseForm request/user initialization
* introduces mark_as_edited() method for compensation models
2021-11-17 14:33:05 +01:00
4583a9f826
#35 Sanity command
...
* refactors "toggling" of recorded/checked state
* introduces mark_as_edited() for RecordableObjectMixin
2021-11-17 12:09:49 +01:00
f62dd76d94
#35 Sanity command
...
* adds sanity check for deadlines and geometries
2021-11-17 09:40:07 +01:00
60d7a8d7d1
#35 Sanity command
...
* improves performance
* adds sanity actions for compensation state and compensation action
2021-11-17 09:32:11 +01:00
a064734b8a
#35 Sanity command
...
* adds new sanitize_db.py command (WIP)
2021-11-16 17:50:10 +01:00
5136b395b5
Merge pull request 'Refactoring' ( #43 ) from Refactoring into master
...
Reviewed-on: SGD-Nord/konova#43
2021-11-16 14:24:11 +01:00
e501512a63
Refactoring
...
* moves add_state from compensation to AbstractCompensation
2021-11-16 13:45:05 +01:00
96caebcae1
Refactoring
...
* adds simple getter methods for UserActionLogEntry
* replaces manual creation of UserActionLogEntry with new methods
2021-11-16 13:15:15 +01:00
7f43f197d5
Refactoring
...
* moves updating of shared access users into ShareableObjectMixin
* renames ShareInterventionModalForm to ShareModalForm since it's used for EMA and eco accounts as well
2021-11-16 12:54:28 +01:00
bd189c4a54
Refactoring
...
* moves updating of shared access users into Intervention
2021-11-16 12:51:10 +01:00
648bfba1bf
Refactoring
...
* moves adding of deduction into Intervention and EcoAccount model
* hardens against circular import issues
2021-11-16 12:43:13 +01:00
dafa53451f
Refactoring
...
* moves adding of revocation into Intervention model
2021-11-16 12:26:50 +01:00
e615a2fc01
Refactoring
...
* drop SSO message sending for now from the logic
2021-11-16 11:57:06 +01:00
0c6eba7c4b
Refactoring
...
* create package from compensation/urls
* renames modules inside of compensation/urls and compensation/views
2021-11-16 09:02:44 +01:00
d272d911ff
Refactoring
...
* create package from compensation/views
2021-11-16 08:58:15 +01:00
6dd13179b5
Refactoring
...
* splits compensation/models.py into subpackage
* renames base objects by adding suffix Mixin
2021-11-16 08:29:18 +01:00
65f02c5111
Refactoring
...
* splits ema/models.py into subpackage
* splits konova/models.py into subpackage
* splits user/models.py into subpackage
2021-11-15 17:41:52 +01:00
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