Refactoring #43

Merged
mpeltriaux merged 13 commits from Refactoring into master 2021-11-16 14:24:11 +01:00
Owner

Restructures parts of the code for better future maintability, e.g.

  • splits large modules into smaller modules, wrapped in a packages, such as models.py -> models/modelA, modelB, modelC, ...
  • introduces more OO logic by moving add-related-elements logic into the model classes directly instead of processing e.g. in forms
Restructures parts of the code for better future maintability, e.g. * splits large modules into smaller modules, wrapped in a packages, such as models.py -> models/modelA, modelB, modelC, ... * introduces more OO logic by moving add-related-elements logic into the model classes directly instead of processing e.g. in forms
mpeltriaux added 13 commits 2021-11-16 14:24:05 +01:00
* renames model ResponsibilityData into Responsibility
* renames model LegalData into Legal
* moves form->object saving logic into model
* refactors NewDocumentForm into special types for intervention, compensation, eco account and ema
*
* splits intervention/models.py into subpackage
* splits ema/models.py into subpackage
* splits konova/models.py into subpackage
* splits user/models.py into subpackage
* splits compensation/models.py into subpackage
* renames base objects by adding suffix Mixin
* create package from compensation/views
* create package from compensation/urls
* renames modules inside of compensation/urls and compensation/views
* drop SSO message sending for now from the logic
* moves adding of revocation into Intervention model
* moves adding of deduction into Intervention and EcoAccount model
* hardens against circular import issues
* moves updating of shared access users into Intervention
* moves updating of shared access users into ShareableObjectMixin
* renames ShareInterventionModalForm to ShareModalForm since it's used for EMA and eco accounts as well
* adds simple getter methods for UserActionLogEntry
* replaces manual creation of UserActionLogEntry with new methods
* moves add_state from compensation to AbstractCompensation
mpeltriaux merged commit 3db2a156bb into master 2021-11-16 14:24:11 +01:00
mpeltriaux deleted branch Refactoring 2021-11-16 14:24:32 +01:00
Sign in to join this conversation.
No description provided.