Commit Graph

698 Commits (7438cb34d13886823be3108c62b2817d369d5849)
 

Author SHA1 Message Date
mpeltriaux c4c36d27a2 Merge pull request '93_Error_500_email' (#98) from 93_Error_500_email into master
Reviewed-on: SGD-Nord/konova#98
3 years ago
mpeltriaux f9751d38db #93 Errors via mail
* configures server errors sending via mail
   * default for now is always 'ksp-servicestelle'
* includes improvements from #97
3 years ago
mpeltriaux ff5d209895 #95 Split settings file
* splits konova/settings.py file into more separate setting files in konova/sub_settings/
3 years ago
mpeltriaux c09ed3bb09 Merge pull request '88_biotope_codes' (#96) from 88_biotope_codes into master
Reviewed-on: SGD-Nord/konova#96
3 years ago
mpeltriaux f6304d0b33 #88 Action/Biotope API extension
* extends the API to support serializing and deserializing of action_details and biotope_details
* renames biotope_extra_types into biotope_type_details on CompensationState model for convenience reasons and to match CompensationAction's action_type_details
3 years ago
mpeltriaux 73cf3fc503 #88 Action detail codes
* adds codelist 1035 for compensation action detail codes
* extends CompensationAction model
* extends NewActionForm
* extends detail view of compensation action related models
* add/updates translations
* adds autocomplete tests
3 years ago
mpeltriaux e1865c7267 #88 Extra biotope codes templates
* extends the detail view templates for all compensation related models to render extra CompensationState details as well
* reduces number of landing page news from 4 to 3
* improves .card-text in favor of .scroll-150
* improves .card font size
3 years ago
mpeltriaux 95a17ed04f # 88 Extra biotope codes
* adds additional biotope konovaCodes to CompensationState model
* increases rpp for Autocompletion
* adds/updates translations
3 years ago
mpeltriaux aade8ffb32 # 88 Additional biotope codes
* adds codelist 975 to project
* adds new form field for adding extra biotope information
3 years ago
mpeltriaux e7bab1cbbb Merge pull request '# 89 Ecoaccount recorded state reset (fix)' (#94) from 89_Ecoaccount_recorded_state_reset into master
Reviewed-on: SGD-Nord/konova#94
3 years ago
mpeltriaux 1786bd965b # 89 Ecoaccount recorded state reset (fix)
* fixes bug where recorded state of eco account has been reset, if a deduction is created from the detail view of the ecoaccount itself
3 years ago
mpeltriaux 5c7aefb8a5 Merge pull request '# 71 Shortcut buttons enhanced' (#92) from 71_Shortcut_buttons_link into master
Reviewed-on: SGD-Nord/konova#92
3 years ago
mpeltriaux 37382fbee8 # 71 Shortcut buttons enhanced
* adds bootstrap class to prevent link style rendering
* reorganizes templates for home view into separate quickstart templates
3 years ago
mpeltriaux 9c9c9b7717 # HOTFIX
* fixes bug where errors occured once an email shall be sent. See issue #87 for details
3 years ago
mpeltriaux 5b7351e331 Merge branch 'master' into Docker
# Conflicts:
#	konova/sub_settings/django_settings.py
3 years ago
Michel Peltriaux 14a38b43de Merge pull request '31_API' (#90) from 31_API into master
Reviewed-on: SGD-Nord/konova#90
3 years ago
mpeltriaux e0f7de37b6 #31 API further credential
* adds Kspuser as another expected header data to resolve the api user
* adds/updates translations
3 years ago
mpeltriaux 1b3adc396f #31 API Deductions Tests
* adds tests for deduction API
3 years ago
mpeltriaux c32911755a #31 API Deductions
* adds intervention check state reset to all deduction-changing API routes
3 years ago
mpeltriaux 4c98949ba3 #31 API Deductions
* adds GET/POST/PUT/DELETE support for EcoAccountDeductions
3 years ago
mpeltriaux a22a926199 #31 API PUT Tests
* adds tests for PUT method in api
3 years ago
mpeltriaux bfefc43522 #31 API GET Tests
* adds tests for api GET method
* fixes bug where non existing geometry could not be serialized properly
3 years ago
mpeltriaux 27c1de2c53 #31 API protected visibility
* reworks most internal API methods for de/serializing from public to protected visibility
* moves test_api_sharing.py into /share subfolder of tests
3 years ago
mpeltriaux 3d446883c6 #31 API DELETE Tests
* adds tests for DELETE method of all major data types
3 years ago
mpeltriaux e7dbea49cd #31 API DELETE
* adds support for DELETE method for all relevant objects
* improves get_obj_from_db functionality
* drops custom compensation logic for get_obj_from_db due to improvement of base method
3 years ago
mpeltriaux 5a7ea0b6c2 #31 API Tests
* adds creation tests with minimum data for intervention, compensation, ema and ecoaccount
* fixes bug where empty geometry would not be created properly using the API
* reworks key fetching from POST data, so inproperly stated keys will lead to an error for the API user, instead of silently working and use default data
* adds some logical checks for deductable_surface of eco account creation using api
* fixes bug that would have occured on creating compensations via api
3 years ago
mpeltriaux 07418a3ac3 #31 API Tests
* moves setupTestData in BaseAPITestCase class
3 years ago
mpeltriaux 8f40162974 #31 API Tests
* writes test for sharing using the API
* fixes bug on frontend form where an exception occured on generating a new API token if no token existed, yet
* adds permission constraint (default group) for using the api in general
* fixes default-group-only behaviour for sharing-API, so users can only add new users and not removing them, as long as they do not have any other group membership like registration or conservation office
* changes 'ksptoken' to 'Ksptoken' to match CGI standard for http header keys
3 years ago
mpeltriaux b86202ba98 #31 API Token mail
* sends an email to the support address if a new token has been generated
3 years ago
mpeltriaux b13e67e061 #31 API Frontend token generating
* adds frontend settings for users to create API tokens on their user settings
3 years ago
mpeltriaux 25cccee5d6 #31 API Share
* adds support for GET and PUT of sharing users for all data types (compensation is shared via intervention)
3 years ago
mpeltriaux 26f402fd3b #31 API WIP
* adds support for GET /check on intervention to run checks automatically via API
3 years ago
mpeltriaux 617d969a10 #31 API PUT/POST EcoAccount
* adds support for PUT and POST of EcoAccount API
3 years ago
mpeltriaux 89fb867ab2 #31 API PUT/POST Ema
* adds support for PUT and POST of Ema
* moves set_responsibility() and set_legal() from Intervention API Serializer into proper Mixins where they belong to
3 years ago
mpeltriaux f461a8e38d #31 API Improvement
* adds support for returning all shared data
* adds documentation
3 years ago
mpeltriaux d58ca3f324 #31 API PUT Compensation
* adds support for PUT compensation (Update)
* improves updating of related objects
* adds missing payment PUT support for intervention API
3 years ago
mpeltriaux 07331078c4 #31 API code cleaning
* splits large AbstractModelAPISerializer into different reusable Mixins to increase reusability of code for similar models
3 years ago
mpeltriaux 02e72e015f #31 API POST Compensation
* adds documentations
* adds check for valid deadline type
3 years ago
mpeltriaux 79acf63dbf #31 API POST Compensation
* adds initialize_objects to an abstractmethod of the super class to be implemented in subclasses
* differentiates error messages if intervention does not exist or is just not shared with the user
3 years ago
mpeltriaux 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
3 years ago
mpeltriaux 314879a1fe #31 API basic implementation Cleanup
* cleans code
* reworks many code fragments into smaller methods and split into super class
3 years ago
mpeltriaux b87389e07b #31 API POST/PUT Intervention
* splits code in smaller, reusable methods
* adds put method to view
* adds update_model_from_json() method
3 years ago
mpeltriaux c8dfa7e21f #31 API POST Intervention
* adds check for deserializing of konova codes
3 years ago
mpeltriaux d0f3fb9f61 #31 API POST Intervention
* adds support for proper POST of intervention
* makes /<id> optional (required for Post)
3 years ago
mpeltriaux 45ac5b68b9 #31 API basic implementation Refactor
* reorganizes code into proper api/utils/serializer subclasses to keep serialization logic away from regular view logic
3 years ago
mpeltriaux 8d400b4ffe #31 API basic implementation Cleanup
* cleans code
* reworks many code fragments into smaller methods and split into super class
3 years ago
mpeltriaux 870cc96a1a #31 API basic implementation Ema fetch
* adds API support for fetching EMA
3 years ago
mpeltriaux 4f6964b04a #31 API basic implementation EcoAccount fetch
* outsources json creation of modified_on an created_on to superclass
* adds API support for fetching ecoaccount data
3 years ago
mpeltriaux 897520f906 #31 API basic implementation Compensation
* adds compensation fetching for API v1
* refactors filter into predefined lookup dict of super class (needs to be customized on subclasses)
3 years ago
mpeltriaux 0c35e79d04 #31 API basic implementation Intervention fetch
* enhances intervention fetching and serialization
3 years ago