Commit Graph

345 Commits

Author SHA1 Message Date
fa6603f218 #31 API PUT Compensation
* adds support for PUT compensation (Update)
* improves updating of related objects
* adds missing payment PUT support for intervention API
2022-01-24 15:56:02 +01:00
59c5caf8ac #31 API code cleaning
* splits large AbstractModelAPISerializer into different reusable Mixins to increase reusability of code for similar models
2022-01-24 15:20:23 +01:00
b3b9bfca09 #31 API POST Compensation
* adds documentations
* adds check for valid deadline type
2022-01-24 15:04:20 +01:00
08ab36ffda #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
2022-01-24 14:51:50 +01:00
fa01733815 #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
5ad1b35dc0 #31 API basic implementation Cleanup
* cleans code
* reworks many code fragments into smaller methods and split into super class
2022-01-24 13:12:29 +01:00
b1a42b126e #31 API POST/PUT Intervention
* splits code in smaller, reusable methods
* adds put method to view
* adds update_model_from_json() method
2022-01-24 13:04:39 +01:00
854e358b73 #31 API POST Intervention
* adds check for deserializing of konova codes
2022-01-24 12:50:28 +01:00
a03f9c8c78 #31 API POST Intervention
* adds support for proper POST of intervention
* makes /<id> optional (required for Post)
2022-01-24 12:17:17 +01:00
a06eaa49fb #31 API basic implementation Refactor
* reorganizes code into proper api/utils/serializer subclasses to keep serialization logic away from regular view logic
2022-01-24 10:31:48 +01:00
ee828598cc #31 API basic implementation Cleanup
* cleans code
* reworks many code fragments into smaller methods and split into super class
2022-01-21 18:34:01 +01:00
2db63b4f91 #31 API basic implementation Ema fetch
* adds API support for fetching EMA
2022-01-21 17:49:07 +01:00
beb67ba307 #31 API basic implementation EcoAccount fetch
* outsources json creation of modified_on an created_on to superclass
* adds API support for fetching ecoaccount data
2022-01-21 17:44:58 +01:00
fd4729aa03 #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)
2022-01-21 17:32:31 +01:00
11de423d05 #31 API basic implementation Intervention fetch
* enhances intervention fetching and serialization
2022-01-21 16:29:59 +01:00
cf82f4b223 #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"
2022-01-21 16:15:16 +01:00
134651c8f7 #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
2022-01-21 15:26:08 +01:00
d8b503f2b5 Merge pull request '83_Publication_rework' (#84) from 83_Publication_rework into master
Reviewed-on: SGD-Nord/konova#84
2022-01-21 09:27:10 +01:00
4e57ca4954 # 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)
2022-01-21 09:26:41 +01:00
469dabf6aa # 83 Publication rework EcoAccount Compensation
* adds implementation for is_ready_for_publish() on compensation (uses intervention's implementation) and EcoAccount
2022-01-21 09:22:43 +01:00
20ed6a7720 # 83 Publication rework EMA
* adds is_ready_for_publish implementation for EMA
2022-01-21 09:15:06 +01:00
884aaca0b3 # 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
2022-01-21 09:02:56 +01:00
05e443166c Merge pull request '70_Tab_title_too_long' (#81) from 70_Tab_title_too_long into master
Reviewed-on: SGD-Nord/konova#81
2022-01-20 12:31:49 +01:00
648e287144 # 70 Tab title rest
* adds tab titles for some other pages
* adds/updates translations
2022-01-20 12:31:20 +01:00
9e8d4fc753 # 70 Tab title EMA
* adds ema tab titles
* adds/updates translations
2022-01-20 12:26:22 +01:00
2f65caf6b1 # 70 Tab title eco-account
* adds tab titles for eco account
* adds/updates translations
2022-01-20 12:23:19 +01:00
fb911c7429 # 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
2022-01-20 12:19:08 +01:00
77e9c989aa # 70 Tab titles interventions
* adds content related tab title
* adds/updates translations
2022-01-20 12:12:04 +01:00
9e3d9a1c19 # License update
* minor enhancement for online rendering
2022-01-20 10:00:12 +01:00
a13e36df73 Merge pull request '# 72 License' (#80) from 72_Licence into master
Reviewed-on: SGD-Nord/konova#80
2022-01-20 09:56:46 +01:00
79dac2281f # 72 License
* adds license info de and en
2022-01-20 09:55:59 +01:00
c51d0bc72f # Bugfix parcel updating
* fixes bug where under certain circumstances the parcel updating would fail
2022-01-19 17:20:13 +01:00
155f4ff304 # Hotfix
* fixes bug where report creation would fail
2022-01-19 14:13:25 +01:00
aba523f31e Merge pull request '#75 Propagate users' (#76) from 75_Propagate_users into master
Reviewed-on: SGD-Nord/konova#76
2022-01-19 13:18:49 +01:00
ef9d88db73 #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
2022-01-19 13:17:55 +01:00
0955aca52a # Bugfix
* fixes bug where background mail delivery did not start
2022-01-14 14:19:17 +01:00
4e22321e4c Merge pull request '#67 Parcel error fix' (#69) from 67_Parcel_fetcher_error into master
Reviewed-on: SGD-Nord/konova#69
2022-01-13 09:28:14 +01:00
3a5168a05c #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
2022-01-13 09:27:35 +01:00
b0c0308558 Merge pull request '#53 Remove buttons' (#68) from 53_Remove_Import-Export into master
Reviewed-on: SGD-Nord/konova#68
2022-01-13 09:00:05 +01:00
815ab8e6cf #53 Remove buttons
* removes (non-functional) buttons in frontend
2022-01-13 08:59:36 +01:00
b614d00bb0 Merge pull request '# 62 404 and 500' (#66) from 62_custom_404_500 into master
Reviewed-on: SGD-Nord/konova#66
2022-01-12 16:46:52 +01:00
a9962b4d20 # 62 404 and 500
* adds custom 404 and 500 error handling views
* adds/updates translations
2022-01-12 16:45:55 +01:00
6342044ff9 Merge pull request '63_Email' (#65) from 63_Email into master
Reviewed-on: SGD-Nord/konova#65
2022-01-12 16:04:42 +01:00
1de3792d98 # 63 Mail data checked
* adds mail sending if shared data is checked
* adds/updates translations
2022-01-12 15:48:47 +01:00
dcc4e2fdc8 # 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
5295c08d99 # 63 Mail data deleted
* adds mail sending if shared data is deleted
* adds/updates translations
* refactors recording mails into separate email template folder email/recording
2022-01-12 15:31:25 +01:00
d7a9f72c3e # 63 Mail recording/unrecording
* adds mail sending in case of unrecording and recording of data
* adds/updates translations
2022-01-12 15:09:52 +01:00
eb54443aca # 63 Mail celery
* moves mail sending to celery worker using shared_task in konova/tasks.py
* adds mail sending for shared access given
* adds UserNotification settings checks for mail sending
* adds/updates translations
2022-01-12 14:51:50 +01:00
82778d1fec # 63 Mail background sending
* moves mail sending to background using celery
2022-01-12 14:27:39 +01:00
3531997080 # 63 Mail shared access revoked
* adds mail support for revoking shared access
* adds/updates translations
2022-01-12 14:17:12 +01:00