Commit Graph

45 Commits

Author SHA1 Message Date
c3cce6eb28 #132 WIP Deduction enhances
* enhances comment messages
* adds fallback calculation for deduction-account ratio in case of missing or unlogical values
* adds creation timestamp for migrated deductions, derived from old kom-deduction log/protokoll table
* fixes bug in eco account migration where legal changes would not be saved
* changes bug in compensation where direct data changes would not be saved
* improves update_all_parcels.py by catching all types of possible exceptions during the update procedure and adding the causing geometry to the try_again_ids list
2022-03-31 14:45:34 +02:00
320d21af78 #132 WIP migration improvements
* set automatically DEFAULT_GROUP to migrated users
* fixes bug where GISPADID could not be resolved properly, since it is suddenly named FKEY in source table (protokoll)
* adds fallback for protokoll table migration, since some logs can be found in a table called "log"
* set created and modified attributes of a migrated instance according to their first and last log entries
* automatically create teams from previous registration and conservation office access roles
    * need to be populated with users using data from natportal migration
* checks first if a KOM's EIV exists before performing all (time consuming) migration steps
2022-03-30 14:45:30 +02:00
9c41cfb380 #132 WIP migration
* adds KOM paragraph 7 migration into compensation comment field
* adds fallback data for missing registration and binding dates, file numbers and so on
* fixes bug where a migration class' db connection would get a timeout if not used asap after instanciation
* enhances parcel update command
    * collects geometry id in case of unsuccessful calculation attempt and rerun another try on these afterwards (errors cased server-side of WFS)
2022-03-29 17:08:58 +02:00
f9db0e7596 #132 WIP Migrate OEKs
* migration for deductions added
2022-03-24 18:09:59 +01:00
a77cfa7fe3 #132 Log migration
* adds basic log migration for all data types
  * empty users will be auto-created on log creation
* drops CODELIST_INTERVENTION_HANDLER in favor of CODELIST_COMPENSATION_HANDLER
* fixes bug in rendering of parent-child Konova Code label
2022-03-24 13:42:05 +01:00
f621aab6e1 #132 WIP OEK
* adds geometry-remerging with former deductions
* adds geometry-area calculation
* adds fallback for old data migration on deprecated biotope code lists
* fixes typo in CODELIST_AFTER_STATE_BIOTOPES_ID
2022-03-22 16:36:52 +01:00
f312dafa68 #132 Enhancements
* adds CL288 to list of codelists
    * holds historic detail codes on biotopes (needed for proper migration of old entries but not for future, new entries)
* improves EMA finance migration
* adds fix for KonovaCodes where parents do not have any proper long_name values set but short_names instead
2022-03-22 13:41:03 +01:00
0c1ca4d173 #132 WIP Migrate OEKs
* WIP: adds oek migrations
* refactors ema migration into own file
2022-03-17 16:33:06 +01:00
899a6240c1 #132 EMA finance volume migration
* adds migration of finance volumes into ema comment
2022-03-17 16:08:50 +01:00
4a06f8625a #132 Control deadlines
* extends migration to migration of action control deadlines
* adds EMA deadline migration
2022-03-17 15:30:27 +01:00
ac704bc930 #132 WIP: EMA
* WIP: adds first implementation for EMA migration
* fixes bug where not found files would case migration to fail
2022-03-15 17:04:15 +01:00
f8627930d8 #132 COmpensation document
* adds migration for compensation documents
2022-03-15 16:52:32 +01:00
24ea850689 #132 Compensation migrater enhancements
* adds further catches for data garbage
* adds action migrater
* extends UnitChoices
2022-03-15 15:28:13 +01:00
24298d2043 #132 Compensation deadlines
* adds deadline migration
2022-03-15 11:43:17 +01:00
8b4104c704 #132 Compensation states
* adds migration for ksp-KOM states (before+after)
* adds migration for CEF/Coherence info
2022-03-15 11:26:09 +01:00
d21baf11f3 #132 Compensations
* WIP: adds CompensationMigrater
* moves more ksp-migration logic from InterventionMigrater to BaseMigrater
* improves comment card rendering
2022-03-14 15:58:02 +01:00
7338bfd073 #132 Migrater restructure
* restructures code into base migrater logic and inheriting migrater logic
    * preparation for further migraters
2022-03-14 15:03:05 +01:00
675a3a0287 #132 Old entries migration
* adds intervention payment migration
* adds intervention document migration
2022-03-14 14:47:38 +01:00
88946f663c #132 old entries
* WIP: further improves migration of interventions
2022-03-11 14:36:12 +01:00
228333d509 #132 WIP Old entries
* WIP: implements raw migration from ksp to konova
2022-03-10 15:31:47 +01:00
2fa2876090 #31 API POST Compensation
* adds support for POST of new compensations
* adds shared_users property to BaseObject and Compensation to simplify fetching of shared users (Compensation inherits from intervention)
* extends compensation admin index
* modifies compensation manager which led to invisibility of deleted entries in the admin backend
* fixes bug in sanitize_db.py where CREATED useractions would be removed if they are not found on any log but still are used on the .created attribute of the objects
2022-01-24 14:41:56 +01:00
5ca4c7c777 # 63 UserNotificationEnum changes
* drops NOTIFY_ON_REGISTERED_DATA_EDITED in favor of NOTIFY_ON_SHARED_DATA_CHECKED
* adds/updates translations
2022-01-12 15:38:57 +01:00
02970b19b4 # 63 Refactoring
* refactors django User model to custom User model to provide further attributes and methods directly on the user model
2022-01-12 12:56:22 +01:00
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
2022-01-04 16:50:55 +01:00
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
2022-01-04 16:25:17 +01:00
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
2021-12-15 13:59:52 +01:00
80e72c2146 #35 Sanity command
* adds sanity check for deadlines and geometries
2021-11-17 09:40:07 +01:00
22a97de195 #35 Sanity command
* improves performance
* adds sanity actions for compensation state and compensation action
2021-11-17 09:32:11 +01:00
8b73d03e7c #35 Sanity command
* adds new sanitize_db.py command (WIP)
2021-11-16 17:50:10 +01:00
30f36060f3 #17 Update setup
* adds calling of update_codelist.py to setup.py
* removes unused data in setup_data.py
2021-10-13 09:10:48 +02:00
f50dccb30b #17 Update setup
* removes unused organisation app from project
* removes null=True parameters for M2M fields in models
2021-10-13 09:04:01 +02:00
mipel
d84fe68120 #7 New Form
* adds NewEcoAccountForm
* refactors NewCompensationForm into AbstractCompensationForm so main fields can be reused again
* fixes template bug in account detail view where the amount of deductions has been displayed instead of the available rest
* refactors _generate_new_identifier() into generate_new_identifier()
* refactors get_available_rest() into returning both, the total and relative amount
* improves saving of SimpleGeometryForm()
* adds/updates translations
2021-10-05 16:35:24 +02:00
mipel
5137572127 Identifier generating command
* adds a test command for calculating the collision rate for e.g. an intervention (Not important for production or anything)
2021-08-19 14:29:18 +02:00
mipel
5f85f49636 Recording data
* adds dynamic icon for recording and unrecording of data
* adds record view to intervention and eco accounts
* adds quality_check() method for Intervention and EcoAccount class which holds logic for data quality checking
* adds UserAction "unrecorded"
2021-08-10 17:19:42 +02:00
mipel
715cf65538 Setup data
* removes auto-translating of setup data for database (keep english values in db and translate for templates)
2021-08-03 09:11:33 +02:00
mipel
4d651aec24 Intervention Detail View
* adds (WIP) detail view for interventions
* renames typo in conservations_file_number to conservation_file_number
* adds simple has_access check for intervention objects for given users
* renames occurences of "Registered" to "Recorded" (verzeichnen)
* adds an informing message for detail view of intervention objects which are not editable for a user
* adds GeometryAdmin
* adds fallback DEFAULT_SRID for Geometry model
* adds translations
2021-07-22 13:19:14 +02:00
mipel
39c1d9eb12 Group access constraints
* adds new decorators for all three important groups
* reorganize some default group settings for setup_data.py
2021-07-09 08:18:37 +02:00
mipel
903a22973f User menu
* adds user notifications and management
2021-07-08 17:23:06 +02:00
mipel
c2a066fc71 Permission rethinking
* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
2021-07-02 09:45:45 +02:00
mipel
fa5387e814 Permission rethinking
* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
2021-07-02 09:34:39 +02:00
mipel
980d57958b Permission rethinking
* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
2021-07-02 09:31:09 +02:00
mipel
32370a0a7e Permission rethinking
* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
2021-07-02 09:30:50 +02:00
mipel
206d34afbb Permission values
* adds raw permission values for all groups
2021-07-02 08:37:50 +02:00
mipel
75f983f7a7 Refactoring to konova 2021-07-01 15:08:22 +02:00
mipel
4084373e2b Refactoring to konova 2021-07-01 14:38:57 +02:00