diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3700bc8b5015dfa44490b98b03c5584c47452dde..ca95d6018216ab736fdfda33cb44958bea9375f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,9 +36,9 @@ check_back: check_front: <<: *only-default stage: check - image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v1.2.0 + image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.0.0 before_script: - - cd frontend && cp -R /usr/src/deps/node_modules . + - cd frontend && mkdir -p node_modules && mv -f /usr/src/deps/node_modules/* /usr/src/deps/node_modules/.bin ./node_modules/ script: - yarn build artifacts: @@ -78,9 +78,9 @@ test_back: test_frontend: <<: *only-default stage: test - image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v1.2.0 + image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.0.0 before_script: - - cd frontend && cp -R /usr/src/deps/node_modules . + - cd frontend && mkdir -p node_modules && mv -f /usr/src/deps/node_modules/* /usr/src/deps/node_modules/.bin ./node_modules/ script: - yarn test tags: @@ -98,9 +98,9 @@ flake8: eslint: <<: *only-default stage: lint - image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v1.2.0 + image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.0.0 before_script: - - cd frontend && cp -R /usr/src/deps/node_modules . + - cd frontend && mkdir -p node_modules && mv -f /usr/src/deps/node_modules/* /usr/src/deps/node_modules/.bin ./node_modules/ script: - yarn lint tags: diff --git a/CHANGELOG.md b/CHANGELOG.md index 023001897dcd68f022a5e4b83a2793b7643ee722..7f200e0c5b48386f21c3f801e00de8444dcf1616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,27 @@ ###### _TBD_ +- [next] blabla + +## v2.5.0 + +###### _17 May 2020_ + - [feat] add filter to show only currently available destinations +- [feat] filter of available destinations is activated by default if there are enough open destinations +- [feat] front: updated docker image & deps => v2.0.0 +- [feat] ci: a bit more performant +- [style] new prettier on all the repo :tada: +- [style] eslint: cleaned code after eslint update - [fix] clarified cgu / rgpd -- [refacto] filter of available destinations is activated by default if there are enough open destinations +- [fix] front: corrected warnings +- [fix] front: remove CoverGallery +- [fix] front: align form in previousDepartureTab +- [fix] front: cleaned chip / avatar after deps update +- [fix] front: Cleaned Logo +- [fix] front deps: clean after removal of postcss +- [fix] main template: invalid HTML, script outside body +- [fix] Makefile: --renew-anon-volumes for docker-compose ## v2.3.0 diff --git a/Makefile b/Makefile index d7053a8e783afde0bc15d46ccceb3f84ecba245a..786721b589759e05b204f727a53a823644d8efa1 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ clear_setup: rm server/envs/django.env up: setup - docker-compose up --build + docker-compose up --build --renew-anon-volumes dev: up @@ -68,7 +68,7 @@ prod: setup $(info In production, we need to reset the webpack-stats.json file to make sure the front is up-to-date) sudo rm -f frontend/webpack-stats.json # Need higher compose timeout as the big map container can take a lot of time to wake up - COMPOSE_HTTP_TIMEOUT=600 docker-compose $(prod_yml) up --build -d + COMPOSE_HTTP_TIMEOUT=600 docker-compose $(prod_yml) up --build -d --renew-anon-volumes down_prod: docker-compose $(prod_yml) down diff --git a/backend/backend_app/load_data/assets/tags.json b/backend/backend_app/load_data/assets/tags.json index 128a72a9d20a80f30093e9480506b6eaf3f866d7..83825d89a52dbfc512ff782f115895299366d3ff 100644 --- a/backend/backend_app/load_data/assets/tags.json +++ b/backend/backend_app/load_data/assets/tags.json @@ -11,4 +11,4 @@ "tourism", "shared_comment", "specific_partnership" -] \ No newline at end of file +] diff --git a/backend/backend_app/validation/json_schemas/definitions.json b/backend/backend_app/validation/json_schemas/definitions.json index a0de507613595abd51d3f8c8cccda44061efa889..2d425c4087fc0c20174631561239ae2bd9a13300 100644 --- a/backend/backend_app/validation/json_schemas/definitions.json +++ b/backend/backend_app/validation/json_schemas/definitions.json @@ -21,10 +21,7 @@ "maxLength": 500 } }, - "required": [ - "url", - "description" - ], + "required": ["url", "description"], "additionalProperties": false } }, @@ -54,10 +51,7 @@ "maxLength": 500 } }, - "required": [ - "url", - "title" - ], + "required": ["url", "title"], "additionalProperties": false } }, @@ -71,10 +65,7 @@ "$ref": "definitions.json#/definitions/hex-color" } }, - "required": [ - "primary", - "secondary" - ], + "required": ["primary", "secondary"], "additionalProperties": false }, "hex-color": { diff --git a/backend/backend_app/validation/json_schemas/recommendation_list_content.json b/backend/backend_app/validation/json_schemas/recommendation_list_content.json index 297565649707e4f80c62fe0de4eba89a79728076..2758019752c1a53c81bd2f845797f7c8f456e1be 100644 --- a/backend/backend_app/validation/json_schemas/recommendation_list_content.json +++ b/backend/backend_app/validation/json_schemas/recommendation_list_content.json @@ -10,10 +10,7 @@ { "type": "object", "additionalProperties": false, - "required": [ - "type", - "content" - ], + "required": ["type", "content"], "properties": { "type": { "const": "univ-block" @@ -21,23 +18,14 @@ "content": { "type": "object", "additionalProperties": false, - "required": [ - "university", - "appreciation" - ], + "required": ["university", "appreciation"], "properties": { "university": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "description": "pk of the university" }, "appreciation": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "minimum": 0, "maximum": 10 } @@ -48,10 +36,7 @@ { "type": "object", "additionalProperties": false, - "required": [ - "type", - "content" - ], + "required": ["type", "content"], "properties": { "type": { "const": "text-block" diff --git a/backend/backend_app/validation/json_schemas/theme.json b/backend/backend_app/validation/json_schemas/theme.json index 2c04f43b24c7e0ab4ac55c446930f6999254a327..5ad9fd7df51729202c7f0d92b3194e5ca3109c97 100644 --- a/backend/backend_app/validation/json_schemas/theme.json +++ b/backend/backend_app/validation/json_schemas/theme.json @@ -7,10 +7,7 @@ "mode": { "description": "What is the selected mode of the theme", "type": "string", - "enum": [ - "light", - "dark" - ] + "enum": ["light", "dark"] }, "light": { "description": "Settings in light mode", @@ -21,10 +18,6 @@ "$ref": "definitions.json#/definitions/palette" } }, - "required": [ - "mode", - "light", - "dark" - ], + "required": ["mode", "light", "dark"], "additionalProperties": false } diff --git a/backend/base_app/templates/banned.html b/backend/base_app/templates/banned.html index ddda6331cb9be0e4f4423dbf49f6d95c879299f7..838d928f81af792f42c9e9c1eff2ef4ac43465e8 100644 --- a/backend/base_app/templates/banned.html +++ b/backend/base_app/templates/banned.html @@ -1,10 +1,10 @@ -
- + +