104_Class_based_views #200

Merged
mpeltriaux merged 21 commits from 104_Class_based_views into master 2022-08-22 11:09:51 +02:00
Owner

Implements #104

All relevant function based views have been replaced by class based views. There still are some function based views, since a replacement with class based ones would not reduce the code size in these cases.

# Implements #104 All relevant function based views have been replaced by class based views. There still are some function based views, since a replacement with class based ones would not reduce the code size in these cases.
mpeltriaux added 21 commits 2022-08-22 11:08:20 +02:00
* splits compensation/forms.py and /modalForms.py into individual files inside new packages
    * general forms stay in new files in compensation/forms
    * modal forms stay in new files in compensation/forms/modals
* refactors intervention/forms and ../modalForms into individual files in separated packages
    * forms.py has been renamed into intervention.py, now can be found as intervention/forms/intervention.py
    * modalForms.py has been split into individual files living in modals package, can be found as intervention/forms/modals/...
* refactors user/forms.py by splitting into modals package and regular forms
    * regular forms can now be found at user/forms/user.py and user/forms/team.py
    * modal forms can now be found at user/forms/modals/...
* splits compensation tables.py into individual files for compensation table and eco account table
* refactors konova/mixins.py into individual files in konova/mixins/...
* refactors konova/autocompletes.py by splitting into individual files and moving them to fitting apps
     * autocomplete files now live in APPNAME/autocomplete/...
* splits filters.py of compensation and ema app into separate files in new /filters module
* optimizes entry search for multi keyword input
* splits intervention/views.py (+700 lines) into separate files in new module
    * view files can now be found in /intervention/views/...
* splits ema/views.py (+700 lines) into separate files in new module
    * view files can now be found in /ema/views/...
* splits compensation/views/compensation.py (+700 lines) into separate files in new module
    * view files can now be found in /compensation/views/compensation/...
* splits compensation/views/eco_account.py (+700 lines) into separate files in new module
    * view files can now be found in /compensation/views/eco_account/...
* splits konova/views.py into separate files in new module
    * view files can now be found in /konova/views/...
* introduces first class based view AbstractLogView
    * implemented for Ema, Intervention, Compensation and EcoAccount
* adds AbstractResubmissionView to konova app
    * implemented for all major data types
    * replaces function based views
* adds AbstractRecordView to konova/views/record.py
    * implements for all major data types
* replaces function based views for creating, editing, removing and fetching documents with class based views
    * implemented for all major data types
* replaces function based views for deadlines with class based views
* replaces ema deadline views with class based
* replaces function based state views with class based
* replaces function based action views with class based
* splits compensation/views/eco_account.py (+700 lines) into separate files in new module
    * view files can now be found in /compensation/views/eco_account/...
* replaces function based share views with class based
* improves team-share autocomplete search
* renames internal share url names
mpeltriaux merged commit 07fb021049 into master 2022-08-22 11:09:51 +02:00
mpeltriaux deleted branch 104_Class_based_views 2022-08-22 11:09:55 +02:00
Sign in to join this conversation.
No description provided.