Commit Graph

350 Commits (25cccee5d6d79ddb213c8ef8a3e96f88bdddfe02)
 

Author SHA1 Message Date
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
mpeltriaux 3938db1893 #31 API basic implementation Token Authentication
* adds token checking to AbstractModelAPIView
* adds user accessibility filtering for intervention API v1
* extends fetch_and_serialize() method to take a dict for db filtering instead of a single field and value
* organizes urlnames into supporting formats like "api:v1:intervention"
3 years ago
mpeltriaux 881da38538 #31 API basic implementation
* adds new app to project
* adds relation between User model and new APIUserToken model
* adds first implementation for GET of intervention
* adds basic code layout for future extension by having new versions
3 years ago
Michel Peltriaux b9d532aa81 Merge pull request '83_Publication_rework' (#84) from 83_Publication_rework into master
Reviewed-on: SGD-Nord/konova#84
3 years ago
mpeltriaux ee6ac9e7c8 # 83 Publication rework
* adds fake-inherited is_ready_for_publish() method to compensation model (not derived from RecordableObjectMixin) to equalize usage of is_ready_for_publish() usage for all data types (compensation can be checked the same way as intervention, ecoaccount or ema)
3 years ago
mpeltriaux fd3f9b95b9 # 83 Publication rework EcoAccount Compensation
* adds implementation for is_ready_for_publish() on compensation (uses intervention's implementation) and EcoAccount
3 years ago
mpeltriaux e73b42db7b # 83 Publication rework EMA
* adds is_ready_for_publish implementation for EMA
3 years ago
mpeltriaux b72426e20f # 83 Publication rework interventions
* adds abstract is_ready_for_publish method to PublishableObjectMixin which needs to be implemented in subclasses
* adds implementation for intervention model
* adds publishable check to rendering report view
* adds/updates translations
3 years ago
Michel Peltriaux 1670bf37ab Merge pull request '70_Tab_title_too_long' (#81) from 70_Tab_title_too_long into master
Reviewed-on: SGD-Nord/konova#81
3 years ago
mpeltriaux 79b9be5637 # 70 Tab title rest
* adds tab titles for some other pages
* adds/updates translations
3 years ago
mpeltriaux 7a8cafcd77 # 70 Tab title EMA
* adds ema tab titles
* adds/updates translations
3 years ago
mpeltriaux b9bec82876 # 70 Tab title eco-account
* adds tab titles for eco account
* adds/updates translations
3 years ago
mpeltriaux 014155b0a4 # 70 Tab title compensation
* adds tab titles for compensations
* adds/updates translations
* optimizes identifier generating, so that one-digit months will be converted into two digits
3 years ago
mpeltriaux dc42278943 # 70 Tab titles interventions
* adds content related tab title
* adds/updates translations
3 years ago
mpeltriaux 951bbef480 # License update
* minor enhancement for online rendering
3 years ago
Michel Peltriaux df84f7f660 Merge pull request '# 72 License' (#80) from 72_Licence into master
Reviewed-on: SGD-Nord/konova#80
3 years ago
mpeltriaux 028f8fd8f0 # 72 License
* adds license info de and en
3 years ago
mpeltriaux a464ed9e3f # Bugfix parcel updating
* fixes bug where under certain circumstances the parcel updating would fail
3 years ago
mpeltriaux db9881d05f # Hotfix
* fixes bug where report creation would fail
3 years ago
Michel Peltriaux a179827a35 Merge pull request '#75 Propagate users' (#76) from 75_Propagate_users into master
Reviewed-on: SGD-Nord/konova#76
3 years ago
mpeltriaux 6c9d47cad0 #75 Propagate users
* extends KonovaSSOClient for providing support of propagated user data from sso-server. For longterm, we hope to have this feature directly on django-simple-sso. Further details can be found here: https://github.com/divio/django-simple-sso/issues/67
3 years ago
mpeltriaux d0640a4098 # Bugfix
* fixes bug where background mail delivery did not start
3 years ago
Michel Peltriaux 1fc0fbbf0a Merge pull request '#67 Parcel error fix' (#69) from 67_Parcel_fetcher_error into master
Reviewed-on: SGD-Nord/konova#69
3 years ago
mpeltriaux 022d9d15a7 #67 Parcel error fix
* adds workaround in case of received WFS exception -> routine waits 1 second and tries to rerun for another time. If this does fail as well, the routine will end without a result
* adds mailto shortcut to contact button in footer for a quick fix
3 years ago
Michel Peltriaux be7934f34a Merge pull request '#53 Remove buttons' (#68) from 53_Remove_Import-Export into master
Reviewed-on: SGD-Nord/konova#68
3 years ago
mpeltriaux b34853089e #53 Remove buttons
* removes (non-functional) buttons in frontend
3 years ago
Michel Peltriaux d08260a519 Merge pull request '# 62 404 and 500' (#66) from 62_custom_404_500 into master
Reviewed-on: SGD-Nord/konova#66
3 years ago
mpeltriaux 6f76b3a53d # 62 404 and 500
* adds custom 404 and 500 error handling views
* adds/updates translations
3 years ago
Michel Peltriaux 86aafcc5d4 Merge pull request '63_Email' (#65) from 63_Email into master
Reviewed-on: SGD-Nord/konova#65
3 years ago
mpeltriaux 795f64f20b # 63 Mail data checked
* adds mail sending if shared data is checked
* adds/updates translations
3 years ago
mpeltriaux 5ca4c7c777 # 63 UserNotificationEnum changes
* drops NOTIFY_ON_REGISTERED_DATA_EDITED in favor of NOTIFY_ON_SHARED_DATA_CHECKED
* adds/updates translations
3 years ago