Commit Graph

441 Commits

Author SHA1 Message Date
972405a720 # 61 Filter frontend
* finished filter frontend
2022-01-11 16:32:33 +01:00
d8607d9ade # 61 Filter backend
* refactors XYTableFilter classes to hold query_filter and checkbox_filter which are separate instances of django_filter.FilterSets
* improves render ability for frontend
2022-01-11 15:19:16 +01:00
f92ec7fde7 # 61 Filter frontend
* optimizes minor parts of table-filter initialization and queryset passing
2022-01-11 14:28:34 +01:00
a4966751b7 # 61 Filter backend
* refactors table filters by introducing AbstractTableFilter, GeoReferencedTableFilterMixin, ShareableTableFilterMixin and RecordableTableFilterMixin
* adds full filter functionality
* refactors TableFilter inheritances for all objects
2022-01-11 12:56:27 +01:00
43ea3f4364 # Docker
* minor adjustments
2022-01-11 08:32:04 +01:00
6a6b7f1f9f # Docker Production
* adds further settings to create a production-ready docker configuration
2022-01-10 15:27:19 +01:00
16a5f0c5d4 # Docker
* adds docker related configurations
* directly working configuration provided
2022-01-10 13:52:40 +01:00
ddb13abe2e Merge pull request '#57 Deduction shortcut remove' (#60) from 57_Deduction_shortcut into master
Reviewed-on: SGD-Nord/konova#60
2022-01-07 15:42:21 +01:00
498f0a9bbc #57 Deduction shortcut remove
* removes deduction shortcut
* adds missing quality checks on intervention deduction accounts validity
* fixes error if checked intervention shall be checked again
* adds/updates translations
2022-01-07 15:41:40 +01:00
f1e293977e Merge pull request '#54 Grouped autocomplete' (#59) from 54_Improve_autocomplete_selection into master
Reviewed-on: SGD-Nord/konova#59
2022-01-07 13:54:44 +01:00
6ae10dd872 #54 Grouped autocomplete
* refactors default autocomplete into grouped autocompletes, if parents exist for grouping
* updates requirement for django-autocomplete-light due to an issue with an attribute in pip's default version 3.8.2. More info here: https://github.com/yourlabs/django-autocomplete-light/issues/1278
2022-01-07 13:50:37 +01:00
ea4dc636c8 Merge pull request '#55 Celery parcel updating' (#58) from 55_Parcel_calculation_to_background into master
Reviewed-on: SGD-Nord/konova#58
2022-01-06 15:04:09 +01:00
a282d8dfaf #55 Celery parcel updating
* adds celery to project
* adds celery background task for updating parcels
* adds parcel calculation to creating of new geometries as well
* tests outstanding!!!
2022-01-06 12:08:38 +01:00
193995c625 Merge pull request '49_Parcel_calculation' (#56) from 49_Parcel_calculation into master
Reviewed-on: SGD-Nord/konova#56
2022-01-05 15:27:48 +01:00
7caf768709 #49 Annual report improve
* improves the filtering of annual report timespan on a date base instead of timestamp base
2022-01-05 15:26:16 +01:00
a09fdae58c #49 Parcels on report
* adds parcel displaying on public reports
* fixes bug in EMA where autocomplete js would not load for modal forms
* fixes bug where BaseContext cached data from last request and reused it, if not overwritten
2022-01-05 14:41:32 +01:00
49859d17d2 #49 Frontend rendering
* adds rendering for detail view
* adds new includable html snippet for parcel rendering
* refactors generic includables in konova/ app into konova/templates/includes/...
* fixes bug where parcels have been reused from the database due to wrong model structure
* adds get_underlying_parcels() for Geometry model
* adds get_underlying_parcels() for GeoReferencedMixin models
* fixes bug where missing geometry would lead to an error during geometry conflict check
* removes unused wfs attribute from AbstractWFSFetcher
* adds/updates translations
2022-01-05 14:13:26 +01:00
b43beffc6b #49 Update all parcels command
* adds update_all_parcels command which can be used e.g. with cronjob once a month to update all parcels and districts
2022-01-04 16:50:55 +01:00
ecb67809da #49 Extends sanitize db command
* extends sanitize db command to remove unrelated parcels and district from the database
* fixes bug where single parcel wfs match would lead to unexpected behaviour
* adds admin interface for parcels and districts
* adds updating of parcels in case of SimpleGeomForm saving
2022-01-04 16:25:17 +01:00
632fb0f48a #49 Calculation implementation
* implements update routine for Geometry model
* reorganizes fields of Parcel and District
* adds tests
* simplifies usage of ParcelWFSFetcher
2022-01-04 15:59:53 +01:00
b5cf18ac7d #49 Parcels and Districts
* refactors WFS fetching to proper POST handling
* adds authentication support to WFS handling
* reduces dummy geometry for tests to a small area to reduce test network traffic overhead
2022-01-04 13:03:21 +01:00
46e237f0e2 #49 Parcels and Districts
* fixes bug in GeometryConflict conflict checking
* WIP: introduces new konova/utils/wfs/spatial holding SpatialWFSFetcher, which can be fed any geometry and it returns found features
* WIP: adds tests for wfs fetching
* updates requirements.txt
2021-12-17 17:30:12 +01:00
93d1cb9330 #49 Parcels and Districts
* introduces new models: Parcel and District
2021-12-16 12:21:31 +01:00
46f8a81f2c Merge pull request '50_Overlaying_geometries' (#52) from 50_Overlaying_geometries into master
Reviewed-on: SGD-Nord/konova#52
2021-12-16 10:02:47 +01:00
6021e2f1bc #50 Overlaying geometries Tests
* adds test for geometry conflicts
* refactors rechecking of existing conflicts to avoid recursion in certain cases
* adds/updates translations
2021-12-16 09:58:59 +01:00
41af455d09 #50 Overlaying geometries KOM + OEK
* removes unused messages
* adds geometry conflict message rendering for KOM and OEK
* removes unused methods in GeoReferencedMixin
* generalizes geometrical lookup for conflicts from overlaps to intersects
2021-12-15 15:10:35 +01:00
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