Rex Dri merge requestshttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests2019-03-10T11:19:24Zhttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/64Fixes #60 Fixes #612019-03-10T11:19:24ZFlorent ChehabFixes #60 Fixes #61https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/65Performance optimization2019-03-10T20:11:59ZFlorent ChehabPerformance optimizationPerformances optimizations:
- user groups are now accessible in `cached_groups` of user. User model is changed: new one is available in `base_app.models`
- History and PendingModeration are now optimized: we cache the number of versions ...Performances optimizations:
- user groups are now accessible in `cached_groups` of user. User model is changed: new one is available in `base_app.models`
- History and PendingModeration are now optimized: we cache the number of versions and if there is something pending moderation in the models. Also, history and pending moderation data must be queried separately.https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/66Removed all TODOs in code and prevented the use of it from now on.2019-03-16T11:52:20ZFlorent ChehabRemoved all TODOs in code and prevented the use of it from now on.Fixes #77
Fixes #77
https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/67fix(notification): notification on fetch failed2019-03-16T14:46:02ZFlorent Chehabfix(notification): notification on fetch failed* A notification is displayed when fetch data failed through the CustomComponentForApi class
* Notifier Component added for one shot notifications
Fixes #22* A notification is displayed when fetch data failed through the CustomComponentForApi class
* Notifier Component added for one shot notifications
Fixes #22https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/68feat(backend): huge redesign and simplification2019-03-17T21:18:29ZFlorent Chehabfeat(backend): huge redesign and simplification* Removed `model_config` from all models; updated `MyModelSerializer` to include a new `obj_info` field. Updated frontend to take the change into account. (Fixes #78)
* Removed `get_viewset_permissions` from most viewsets and added a ge...* Removed `model_config` from all models; updated `MyModelSerializer` to include a new `obj_info` field. Updated frontend to take the change into account. (Fixes #78)
* Removed `get_viewset_permissions` from most viewsets and added a generic getter in `MyModelViewset`.
* Added support for composable permissions classes :confetti\_ball: (Fixes #45)
* Cleaned config files: separated the files; added `defaults.yaml`
* Moved `shared` folder (content) to `backend.backend_app.config` (still accessible to frontend, but it's cleaner that way since this folder contains files concerning only the backend).
* Performance update with caching some attributes;
* Even cleaner backend dynamic imports (#46)
* Added a good chunck of documentation related to the backend (#74)
* Added checks (runned when server is started or indirectly with `make check_backend`)https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/69fix(joinCampus): working again2019-03-18T19:29:47ZFlorent Chehabfix(joinCampus): working againFixes #86Fixes #86https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/70fix(first launch backend container crash)2019-03-19T20:05:11ZFlorent Chehabfix(first launch backend container crash)We now wait for the necessary static files to be generated before collecting the static files in the backend.
Fixes #88We now wait for the necessary static files to be generated before collecting the static files in the backend.
Fixes #88https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/71fix(ci): pipeline only on merge request2019-03-19T20:15:41ZFlorent Chehabfix(ci): pipeline only on merge requestNow runs the pipeline only once a MR is open.
Fixes #83Now runs the pipeline only once a MR is open.
Fixes #83https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/72feat(documentation): more documentation on app specific things2019-03-23T08:41:41ZFlorent Chehabfeat(documentation): more documentation on app specific things* Documentation of backend specific things
* Docuentation of the use of redux in the frontend
* Cleaned documentation elsewhere
Related to #74* Documentation of backend specific things
* Docuentation of the use of redux in the frontend
* Cleaned documentation elsewhere
Related to #74https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/73Fix/more thorough use of django models2019-03-24T10:58:26ZFlorent ChehabFix/more thorough use of django modelshttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/74fix(frontend linting): var now forbidden2019-03-24T08:44:57ZFlorent Chehabfix(frontend linting): var now forbidden* Prevent the use of var in JavaScript
Fixes #82* Prevent the use of var in JavaScript
Fixes #82https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/75fix(django settings): cleaned and separated2019-03-24T09:26:44ZFlorent Chehabfix(django settings): cleaned and separated* Cleaned main django settings file
* Added an app specific settings file
Fixes #90* Cleaned main django settings file
* Added an app specific settings file
Fixes #90https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/76feat(favicon): added website favicon2019-03-24T10:13:06ZFlorent Chehabfeat(favicon): added website favicon* Added all declinaison of favicon
* Linked it in the html template
* Updated folder structure for base_app static assets
* Added credit section in the documentation
* Credited author of the icon
Fixes #89* Added all declinaison of favicon
* Linked it in the html template
* Updated folder structure for base_app static assets
* Added credit section in the documentation
* Credited author of the icon
Fixes #89https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/77fix(markdown, front): no bug in rendering code2019-03-24T10:28:09ZFlorent Chehabfix(markdown, front): no bug in rendering code* Fixed bug with incorrect HTML structure rendered for code blocks in markdown
Fixes #92* Fixed bug with incorrect HTML structure rendered for code blocks in markdown
Fixes #92https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/78fix(nb_versions): coherence2019-03-24T17:52:58ZFlorent Chehabfix(nb_versions): coherence* Added signal to catch version deletion and make sure nb_version in versioned models is coherent
* Added test for this
* Made sure pending moderation data (that was automatic) and versions are deleted when a model is deleted.
* Added te...* Added signal to catch version deletion and make sure nb_version in versioned models is coherent
* Added test for this
* Made sure pending moderation data (that was automatic) and versions are deleted when a model is deleted.
* Added test for this.
Fixes #84https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/79fix(currencyConversion): no more crash when currency is unknown2019-03-24T18:55:17ZFlorent Chehabfix(currencyConversion): no more crash when currency is unknown* Updated utils functions for currency conversion and getting symbol
* Updated its used in the app
Fixes #76* Updated utils functions for currency conversion and getting symbol
* Updated its used in the app
Fixes #76https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/80feat(backend): refactor/cleaned/ infer get_serializer2019-03-24T20:59:41ZFlorent Chehabfeat(backend): refactor/cleaned/ infer get_serializer* Cleaned all init files
* Infer the serializer from the model instead of having it in the models
* Updated the doc accordingly
* Fixed typos
Fixes #93
Fixes #85* Cleaned all init files
* Infer the serializer from the model instead of having it in the models
* Updated the doc accordingly
* Fixed typos
Fixes #93
Fixes #85https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/81refactor(backend): removed dynamic imports 🎊2019-03-30T13:12:32ZFlorent Chehabrefactor(backend): removed dynamic imports 🎊* Removed all dynamic imports to have more standard Django infrastructre and ease future refactoring
* Removed now useless config files
* Returns the list of available endpoints to the frontend directly from the html
* updated documentat...* Removed all dynamic imports to have more standard Django infrastructre and ease future refactoring
* Removed now useless config files
* Returns the list of available endpoints to the frontend directly from the html
* updated documentation accordingly
Fixes #95https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/82feat(standard filtering, tweaks): REST Api and other2019-03-30T22:06:14ZFlorent Chehabfeat(standard filtering, tweaks): REST Api and other* Filtering on client request should now be performed with the standard `?attr=...` syntaxe
* Frontend updated for this new syntaxe
* Backend and frontend documentation updated with new changes
* Updated the location of the the api docum...* Filtering on client request should now be performed with the standard `?attr=...` syntaxe
* Frontend updated for this new syntaxe
* Backend and frontend documentation updated with new changes
* Updated the location of the the api documentation to `/api-doc`
* Fixed bug preventing api-doc to render
* backend python requirements updated
* Updated dockerfile / docker-compose to make sure we wait for the db
Fixes #97 #80https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/83refactor(frontend api interactions)2019-03-31T18:01:31ZFlorent Chehabrefactor(frontend api interactions)* Complete redesign of the api actions / reducers,
* Now makes use of Axios,
* No more black magic,
* Doc updated,
BREAKING: All `...Specific` reducers results are no under `...One` and `readSpecific` moved to `readOne`
Also,
* Fixed b...* Complete redesign of the api actions / reducers,
* Now makes use of Axios,
* No more black magic,
* Doc updated,
BREAKING: All `...Specific` reducers results are no under `...One` and `readSpecific` moved to `readOne`
Also,
* Fixed bug regarding opposite user_can_moderate value returned by backend
Fixes #98