Rex Dri merge requestshttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests2019-06-01T14:09:11Zhttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/118feat(recommendation list): back & front almost done2019-06-01T14:09:11ZSolene Aboudfeat(recommendation list): back & front almost doneBackend:
* Added recommendation list model
* Added smart serializers/viewsets for the model
* Added DRF permissions `IsFollower` and `IsPublic`
* Backend handling of following,
Frontend:
* Cleaned setup
* Textblock ready
* Bett...Backend:
* Added recommendation list model
* Added smart serializers/viewsets for the model
* Added DRF permissions `IsFollower` and `IsPublic`
* Backend handling of following,
Frontend:
* Cleaned setup
* Textblock ready
* Better save button
* List and view recommendation
Both:
Connected for creation and save of recommendation
Almost done #34 https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/117feat(external data): loading currencies2019-06-01T11:29:59ZAlexandre Lanceartfeat(external data): loading currencies* Added an app in the backend dedicated to the link with external data
* Create a command to update the data
* Support updating data from fixer
* Updated doc accordingly
Almost done #28 * Added an app in the backend dedicated to the link with external data
* Create a command to update the data
* Support updating data from fixer
* Updated doc accordingly
Almost done #28 https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/116feat(site): CGU/RGPD requierements & ban user2019-06-01T08:38:11ZAlexandre Lanceartfeat(site): CGU/RGPD requierements & ban user* Added the necessary behavior to require the validation of CGU and RGPD.
* Added matching tests for this
* Added the possibility to ban users
* Also fixed the API Viewsets so that they can be registered like any model viewset
Fixe...* Added the necessary behavior to require the validation of CGU and RGPD.
* Added matching tests for this
* Added the possibility to ban users
* Also fixed the API Viewsets so that they can be registered like any model viewset
Fixes #121
Fixes #122
https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/112feature(language storing)2019-05-25T13:34:16ZSegolene Brisemeurfeature(language storing)* Added language model
* Added CSV data and loading script
* Language stored in course feedback
Fixes #116
Fixes #32 (Not really fixed, but language now store in feedback)* Added language model
* Added CSV data and loading script
* Language stored in course feedback
Fixes #116
Fixes #32 (Not really fixed, but language now store in feedback)https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/114enhance(request security):2019-05-24T19:53:05ZFlorent Chehabenhance(request security):* Updated all DRF custom permissions to make sure they have has_permission and has_object_permission
* Changed default permission
* Updated middleware to filter incomming request based on their type
* Added test for this
Closes #118
Me...* Updated all DRF custom permissions to make sure they have has_permission and has_object_permission
* Changed default permission
* Updated middleware to filter incomming request based on their type
* Added test for this
Closes #118
Mentions #96https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/113Feature/self hosted map tiles2019-05-24T17:22:35ZFlorent ChehabFeature/self hosted map tiles* Added map tile server to docker-compose dev and prod
* Moved from leaflet to mapbox gl for vector tiles (changed npm dependencies)
* Custom map styles for light and dark mode
* Changed frontend map status saving (dropped redux / sim...* Added map tile server to docker-compose dev and prod
* Moved from leaflet to mapbox gl for vector tiles (changed npm dependencies)
* Custom map styles for light and dark mode
* Changed frontend map status saving (dropped redux / simpler static data saving)
Closes #117 https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/110Feature(deploy config) & tweaks2019-05-11T07:16:36ZFlorent ChehabFeature(deploy config) & tweaks* Deployment is now fully automated with docker / docker-compose (Backend served through uWSGI with Nginx)
* Logs are configured in django and handled by a dedicated docker service (and kept for 30 days)
* Frontend crash logging handle...* Deployment is now fully automated with docker / docker-compose (Backend served through uWSGI with Nginx)
* Logs are configured in django and handled by a dedicated docker service (and kept for 30 days)
* Frontend crash logging handled through the backend
* Quick documentation of the deploy setup
Fixes #110
Fixes #66
Also:
* Moved the `envs` directory to the more general `server` dir
* New Picture and File model/serializer/viewset added
* Image validator added (didn't use django image field as it wasn't supporting svg)
* Removed symbolink of assets from the frontend in the backend to make sure we can boot the server in no time
https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/111feature(filter)2019-05-11T06:39:00ZAlexandre Lanceartfeature(filter)* Filtering universities is now possible based on the country of the university
* Filters are synchronized between the map and the search page
Fixes #13
In progress: #31 * Filtering universities is now possible based on the country of the university
* Filters are synchronized between the map and the search page
Fixes #13
In progress: #31 https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/109Segolene feedback courses v22019-05-04T16:00:35ZSegolene BrisemeurSegolene feedback courses v2https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/108enhanced(new theme, menus):2019-04-23T19:45:27ZFlorent Chehabenhanced(new theme, menus):* Added a logout option in the settings menu
* Centralized secondary menus definitions
* The menus in the drawer are now fully synced* Added a logout option in the settings menu
* Centralized secondary menus definitions
* The menus in the drawer are now fully syncedhttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/107Checked that all the JSON Fields are meaningful2019-04-23T19:02:11ZFlorent ChehabChecked that all the JSON Fields are meaningful* No particular action wad required
* Simply added some comments when no validators are present
Fixes #113* No particular action wad required
* Simply added some comments when no validators are present
Fixes #113https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/106linting(front): activated react/jsx-indent-props2019-04-23T18:54:25ZFlorent Chehablinting(front): activated react/jsx-indent-props* Activated react/jsx-indent-props
* Reformatted code accordingly
Not that many changes were required actualy :)
Fixes #102* Activated react/jsx-indent-props
* Reformatted code accordingly
Not that many changes were required actualy :)
Fixes #102https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/105Removed UserRestrictedModule & tweaked CAS setting2019-04-23T18:44:55ZFlorent ChehabRemoved UserRestrictedModule & tweaked CAS setting* Removed UserRestrictedModule (and associated models) from the project as it wasn't used (or will not be used)
* Change the settings to make sure the admin of the site is also behind the CAS in production
Fixes #81* Removed UserRestrictedModule (and associated models) from the project as it wasn't used (or will not be used)
* Change the settings to make sure the admin of the site is also behind the CAS in production
Fixes #81https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/104refactor(smart actions parameters) : BREAKING & tweaks2019-04-22T19:10:38ZFlorent Chehabrefactor(smart actions parameters) : BREAKING & tweaks* Created `RequestedParams` class with builder to create request parameters object in a standard way,
* All the generic actions only take an instance of this object now,
* All dynamic parametrization of the request params now happens i...* Created `RequestedParams` class with builder to create request parameters object in a standard way,
* All the generic actions only take an instance of this object now,
* All dynamic parametrization of the request params now happens in `apiParams`
* This enables an ultra smart magic piece of logic to auto refresh the data from the server if the props / state of the component has changed since the last request. (the requestParams object are now stored in the redux store and we can compare theme :smile: ). And also not to make duplicate queries.
* Updated doc accordingly,
Tweaks/fixes:
* use of `lodash/isEqual` to deep compare objects
* Removed now useless behiavorhttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/103fix(new theme): links & other2019-04-21T21:15:48ZFlorent Chehabfix(new theme): links & other* Change the way links are styled to handle multiline
* Make sure the drawer menu closes on item click
* Limit width of user info
* Less flashy main menu icons* Change the way links are styled to handle multiline
* Make sure the drawer menu closes on item click
* Limit width of user info
* Less flashy main menu iconshttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/102Redesign(front theme) 🎨🎉 & tweaks (routing, etc.)2019-04-21T16:47:11ZFlorent ChehabRedesign(front theme) 🎨🎉 & tweaks (routing, etc.)* Complete redesign of the frontend theme => mobile friendly++ 🎨🎉
* Redesigned how the theme can be customized
* (adapted the backend to store the theme correctly + testing)
* Added a default theme for the app
* Centralized routing i...* Complete redesign of the frontend theme => mobile friendly++ 🎨🎉
* Redesigned how the theme can be customized
* (adapted the backend to store the theme correctly + testing)
* Added a default theme for the app
* Centralized routing in the APP for consistency
* Quick fix to prevent rerendering on layout change in the university page
(backend migration required)
Fixes #19 #20 https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/101enhance/fix(frontend): Error boundaries, routing, HOC2019-04-20T07:17:43ZFlorent Chehabenhance/fix(frontend): Error boundaries, routing, HOC* Added error boundaries on each page to prevent full crash of the app (through HOC).
* Improved routing in the app, tabs on the university page are now identified.
* Moved the University info consumer to a cleaner HOC.
* Fixed bug in...* Added error boundaries on each page to prevent full crash of the app (through HOC).
* Improved routing in the app, tabs on the university page are now identified.
* Moved the University info consumer to a cleaner HOC.
* Fixed bug in CRUD actions error handling.
* Updated doc about jetbrain "safe write"
* Fixed package.json general declaration
Fixes #111 #101 #114 #115https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/99Fix TruncatedCommentaryOrMore or more bug2019-04-18T17:08:13ZFlorent ChehabFix TruncatedCommentaryOrMore or more bughttps://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/100Refactor/json validation2019-04-17T20:53:50ZFlorent ChehabRefactor/json validation* JSON validation in now performed against `json-schemas` which gives a standard way of handling this.
* All previous validation moved to new setup (`useful_links` field & `TaggedItem` in particular)
* Tags handling slightly updated (s...* JSON validation in now performed against `json-schemas` which gives a standard way of handling this.
* All previous validation moved to new setup (`useful_links` field & `TaggedItem` in particular)
* Tags handling slightly updated (schemas are now hardcoded in the app and not stored in db)
* A bit of documentation added
----
* Bumped backend image to version 0.2.1 with new python packages requirements
----
Fixes #112
Mentions #113 #57 https://gitlab.utc.fr/rex-dri/rex-dri/-/merge_requests/98feat(production backend dockerfile) & enhanced(backend deps) & fix(userInfo b...2019-04-14T17:14:53ZFlorent Chehabfeat(production backend dockerfile) & enhanced(backend deps) & fix(userInfo bugs)* Dropped the use of Pandas & updated loading scripts accordingly
* Separated python `requirements` files
* Updated Dockerfile to be able to also build a production ready image (without dev dependencies)
* Backend images size cut in more...* Dropped the use of Pandas & updated loading scripts accordingly
* Separated python `requirements` files
* Updated Dockerfile to be able to also build a production ready image (without dev dependencies)
* Backend images size cut in more than half :tada:
* Updated a bit the documentation related to Docker
* CI now depends on clear image tags
* Fixed the serializers of User and enhanced frontend of userinfo
* Fixed wrong compose in frontend
Fixes #108 #109 #104
Linked to #66 for new prod dockerfile