Commit Graph

285 Commits (524b5c340f385041859d9790013345d1b9bb4a08)
 

Author SHA1 Message Date
mpeltriaux 524b5c340f # 61 Filter backend
* refactors table filters by introducing AbstractTableFilter, GeoReferencedTableFilterMixin, ShareableTableFilterMixin and RecordableTableFilterMixin
* adds full filter functionality
* refactors TableFilter inheritances for all objects
3 years ago
Michel Peltriaux 552559c118 Merge pull request '#57 Deduction shortcut remove' (#60) from 57_Deduction_shortcut into master
Reviewed-on: SGD-Nord/konova#60
3 years ago
mpeltriaux e2fe85a4fb #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
3 years ago
Michel Peltriaux 9fe054c681 Merge pull request '#54 Grouped autocomplete' (#59) from 54_Improve_autocomplete_selection into master
Reviewed-on: SGD-Nord/konova#59
3 years ago
mpeltriaux d4d792754f #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
3 years ago
Michel Peltriaux f503abf5e6 Merge pull request '#55 Celery parcel updating' (#58) from 55_Parcel_calculation_to_background into master
Reviewed-on: SGD-Nord/konova#58
3 years ago
mpeltriaux d6d15185ea #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!!!
3 years ago
Michel Peltriaux e618d454e2 Merge pull request '49_Parcel_calculation' (#56) from 49_Parcel_calculation into master
Reviewed-on: SGD-Nord/konova#56
3 years ago
mpeltriaux 527077cef3 #49 Annual report improve
* improves the filtering of annual report timespan on a date base instead of timestamp base
3 years ago
mpeltriaux 393f9a4d47 #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
3 years ago
mpeltriaux bf0de00b72 #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
3 years ago
mpeltriaux f0911b5eb6 #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
3 years ago
mpeltriaux 6563e5e438 #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
3 years ago
mpeltriaux 2494ecc493 #49 Calculation implementation
* implements update routine for Geometry model
* reorganizes fields of Parcel and District
* adds tests
* simplifies usage of ParcelWFSFetcher
3 years ago
mpeltriaux 62030c4dcc #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
3 years ago
mpeltriaux 440a4b04d5 #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
3 years ago
mpeltriaux 71f88f7218 #49 Parcels and Districts
* introduces new models: Parcel and District
3 years ago
Michel Peltriaux 44dbee0008 Merge pull request '50_Overlaying_geometries' (#52) from 50_Overlaying_geometries into master
Reviewed-on: SGD-Nord/konova#52
3 years ago
mpeltriaux 5df84bb7a1 #50 Overlaying geometries Tests
* adds test for geometry conflicts
* refactors rechecking of existing conflicts to avoid recursion in certain cases
* adds/updates translations
3 years ago
mpeltriaux 286ed609da #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
3 years ago
mpeltriaux 2bd94a7618 #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
3 years ago
Michel Peltriaux 0ec1744158 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
3 years ago
mpeltriaux 6b018e5495 #48 Tests finished
* finishes user autocomplete unit test
3 years ago
mpeltriaux 6b81e3efd8 #48 Tests
* adds tests (WIP)
3 years ago
mpeltriaux 22da2d4bbe #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
3 years ago
Michel Peltriaux 59d8608830 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
3 years ago
mpeltriaux c93f16a598 #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
3 years ago
mpeltriaux c43b45a0e4 #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
3 years ago
Michel Peltriaux 3e606c2a49 Merge pull request '35_DB_sanity_command' (#44) from 35_DB_sanity_command into master
Reviewed-on: SGD-Nord/konova#44
3 years ago
mpeltriaux 6cb1a31aff Refactors triggering checked/recorded
* refactors BaseForm request/user initialization
* introduces mark_as_edited() method for compensation models
3 years ago
mpeltriaux bd36ab5b6f #35 Sanity command
* refactors "toggling" of recorded/checked state
* introduces mark_as_edited() for RecordableObjectMixin
3 years ago
mpeltriaux 80e72c2146 #35 Sanity command
* adds sanity check for deadlines and geometries
3 years ago
mpeltriaux 22a97de195 #35 Sanity command
* improves performance
* adds sanity actions for compensation state and compensation action
3 years ago
mpeltriaux 8b73d03e7c #35 Sanity command
* adds new sanitize_db.py command (WIP)
3 years ago
Michel Peltriaux 3db2a156bb Merge pull request 'Refactoring' (#43) from Refactoring into master
Reviewed-on: SGD-Nord/konova#43
3 years ago
mpeltriaux 8e1c4446dd Refactoring
* moves add_state from compensation to AbstractCompensation
3 years ago
mpeltriaux 779065ec91 Refactoring
* adds simple getter methods for UserActionLogEntry
* replaces manual creation of UserActionLogEntry with new methods
3 years ago
mpeltriaux 71e4aa9a2f Refactoring
* moves updating of shared access users into ShareableObjectMixin
* renames ShareInterventionModalForm to ShareModalForm since it's used for EMA and eco accounts as well
3 years ago
mpeltriaux 6ad387daa3 Refactoring
* moves updating of shared access users into Intervention
3 years ago
mpeltriaux d8f0db6bd6 Refactoring
* moves adding of deduction into Intervention and EcoAccount model
* hardens against circular import issues
3 years ago
mpeltriaux 9b531bc09e Refactoring
* moves adding of revocation into Intervention model
3 years ago
mpeltriaux 60a50b304a Refactoring
* drop SSO message sending for now from the logic
3 years ago
mpeltriaux fd8ce4b2ec Refactoring
* create package from compensation/urls
* renames modules inside of compensation/urls and compensation/views
3 years ago
mpeltriaux 899bd28247 Refactoring
* create package from compensation/views
3 years ago
mpeltriaux 78945d648f Refactoring
* splits compensation/models.py into subpackage
* renames base objects by adding suffix Mixin
3 years ago
mpeltriaux 6f107ac7a1 Refactoring
* splits ema/models.py into subpackage
* splits konova/models.py into subpackage
* splits user/models.py into subpackage
3 years ago
mpeltriaux d78afbfb5c Refactoring
* splits intervention/models.py into subpackage
3 years ago
mpeltriaux bcffae4a95 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
*
3 years ago
Michel Peltriaux 0778277de4 Merge pull request '38_User_requests' (#42) from 38_User_requests into master
Reviewed-on: SGD-Nord/konova#42
3 years ago
mpeltriaux ab8d5c9724 #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?)
3 years ago