Commit Graph

64 Commits (dc718e911b68a9cce1a88b67eed0e399f130e0c4)

Author SHA1 Message Date
mpeltriaux 762d25a87e # Codelist 288
* introduces 288 to codelist/settings.py
* refactors usage from 975 to 288
* enhances rendering of codelist names depending on which name exists (short vs long)
2 months ago
mpeltriaux 5ef840f172 # 404 Extend API
* extends API shared record access with team based sharing
5 months ago
mpeltriaux 5bd0a161ff # OAuth migrations
* adds migrations for storing OAuthToken
* adds OAuthToken model
* adds OAuthToken admin
* adds user migration for Fkey relation to OAuthToken
5 months ago
mpeltriaux 29a55c9427 # Django 4 migrations
* migrations created because of switch to Django4
10 months ago
mpeltriaux d9046eb2b9 Unit test user app
* adds unit test for User model and forms
* refactors functions from user_checks.py into User class and drops user_checks.py
1 year ago
mpeltriaux 9476713911 Unit test api
* adds unit test for APIUserToken
* enhances handling of token fetching for API
1 year ago
mpeltriaux 2e5345e522 #285 Drop atom_id from API
* refactors code usage from atom_id to id inside of api app
2 years ago
mpeltriaux 2950487f9c #284 Empty API data
* adds proper message for certain data parsing in case of an error
2 years ago
mpeltriaux e26fc7fae1 Fixing broken document migration
* adds changes to document migration to correctly migrate documents
2 years ago
mpeltriaux bfbe1085b2 #249 Created as modified
* fills modified attribute on new entries with created value automatically
* adds default ordering by last modified on table overviews
2 years ago
mpeltriaux 79fd3ad29d API - Geometry empty
* removes mapping of empty geometry to None due to general switch to empty geometry usage
2 years ago
mpeltriaux a6a5bd5450 Further fixes
* fixes race condition on geometry conflict calculation if performed in background process
* simplifies access to smaller buffered geometry
* adds mapping of "qm"->"m2" for UnitChoice in API usage for backwards compatibility
2 years ago
mpeltriaux 4138b056df #238 Fix
* adds casting from Decimal() to primitive float for proper calculation
2 years ago
mpeltriaux 109a45c564 #208 API non existing atomID
* handles error response for non existing atomID properly according to isse #208
2 years ago
mpeltriaux 477b4508ba API Celery parcel calculation fix
* fixes bug where API stored data would not have parcels be calculated correctly
2 years ago
mpeltriaux 72e5599395 Test update
* updates tests for SRID migration
2 years ago
mpeltriaux b0f6d83277 #158 is_pik added
* adds model and form mixin for PIK
* integrates mixins for compensation, ema and ecoaccount
* adds migration files
* extends API
* extends API test data
* adds is_xy fields to compensation, ema and ecoaccount reports
* adds is_pik information to detail views
* adds/updates translations
2 years ago
mpeltriaux f93e2b8463 HOTFIX: API
* hardens atom_id input to be integer or string compatible
2 years ago
mpeltriaux 377428a699 HOTFIX: EGON sending via API
* adds EGON message triggering on API payment changes
2 years ago
mpeltriaux f4d0485019 # 129 Handler code renaming
* renames handler code list
* improves missing handler data rendering on detail view
3 years ago
mpeltriaux f441ed94f5 # 129 Handler code
* adds handler code list usage to forms and models
* updates tests
* extends API for handler code handling
3 years ago
mpeltriaux edcf7b3c78 #101 Team sharing tests
* adds tests for team sharing
* extends the API for team sharing support
* adds shared_teams property shortcut for ShareableObjectMixin
* adds full support for team-based sharing to all views and functions
* simplifies ShareModalForm
* adds/updates translations
3 years ago
mpeltriaux e152dfd4d7 #101 Team sharing form
* adds team sharing field to share form
* splits sharing logic into user based and teams based
* adds TeamAdmin for admin backend
* adds validity check on Team name -> only unused names shall be valid
3 years ago
mpeltriaux c7382f1e54 #118 API pagination
* adds pagination and related parameters to GET apis
* updates api GET test
3 years ago
mpeltriaux 0677cec709 #118 API ActionTypes
* adds support for multiple action_type entries on one CompensationAction
3 years ago
mpeltriaux d106977c34 #86 Edit deductions
* adds support for editing deductions
* adds tests
* improves major base test logic
3 years ago
mpeltriaux 0bd2e5ffef # Migrations
initial migrations commit
3 years ago
mpeltriaux b0f3505972 #99 Admin backend cleanup
* removes admin backend views which are not important for production
* adds filtering functionalities on index views
* simplifies detail views on intervention, compensation, ecoaccount and ema
* adds autocomplete fields on detail views
* adds handy horizontal filter fields on detail views
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 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 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