Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 7d60cfc

Browse files
author
tkostuch
committed
Merge remote-tracking branch 'github/develop'
2 parents c35827f + e8831fc commit 7d60cfc

File tree

20 files changed

+315
-399
lines changed

20 files changed

+315
-399
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.12.3] - 2020.07.23
8+
9+
### Fixed
10+
11+
- Bump version for `vsf-utilities` - @gibkigonzo (#495)
12+
13+
14+
## [1.12.2] - 2020.07.20
15+
16+
### Added
17+
18+
- Added validation for user profile update. - @gibkigonzo (#488) - **Breaking change!** - from this change you can't send anything when you update user data. You can only send what is specified in `src/models/userProfileUpdate.schema.json`. If you still want to send anything then change `"additionalProperties": false,` to `true`.
19+
- add `getToken` to handle getting token from header - @gibkigonzo (#488)
20+
- Allow filter elasticsearch request for security reasons - @seSze (#476)
21+
22+
### Fixed
23+
24+
- Fix default value for `maxAgeForResponse` - @lauraseidler (#485)
25+
- Adds `vsf-utlilities`. Use productEquals to compare products in o2m - @gibkigonzo (#477)
726

827
## [1.12.1] - 2020.06.22
928

config/default.json

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"invalidateCacheForwardUrl": "http://localhost:3000/invalidate?key=aeSu7aip&tag=",
1313
"showErrorStack": false
1414
},
15+
"users": {
16+
"tokenInHeader": false
17+
},
1518
"orders": {
1619
"useServerQueue": false
1720
},
@@ -40,6 +43,9 @@
4043
"review"
4144
],
4245
"apiVersion": "5.6",
46+
"useRequestFilter": false,
47+
"overwriteRequestSourceParams": false,
48+
"requestParamsBlacklist": [],
4349
"cacheRequest": false,
4450
"searchScoring": {
4551
"attributes": {
@@ -81,21 +87,21 @@
8187
"tax_class_id": "tci",
8288
"description": "desc",
8389
"minimal_regular_price": "mrp",
84-
"final_price": "fp",
85-
"price": "p",
90+
"final_price": "fp",
91+
"price": "p",
8692
"special_price": "sp",
8793
"original_final_price": "ofp",
8894
"original_price": "op",
8995
"original_special_price": "osp",
90-
"final_price_incl_tax": "fpit",
96+
"final_price_incl_tax": "fpit",
9197
"original_price_incl_tax": "opit",
9298
"price_incl_tax": "pit",
93-
"special_price_incl_tax": "spit",
99+
"special_price_incl_tax": "spit",
94100
"final_price_tax": "fpt",
95101
"price_tax": "pt",
96102
"special_price_tax": "spt",
97103
"original_price_tax": "opt",
98-
"image": "i",
104+
"image": "i",
99105
"small_image": "si",
100106
"thumbnail": "t"
101107
},
@@ -106,7 +112,7 @@
106112
"default": 10,
107113
"size": 10,
108114
"color": 10
109-
},
115+
},
110116
"priceFilterKey": "final_price",
111117
"priceFilters": {
112118
"ranges": [
@@ -115,10 +121,10 @@
115121
{ "from": 100, "to": 150 },
116122
{ "from": 150 }
117123
]
118-
}
124+
}
119125
},
120126
"varnish": {
121-
"host": "185.246.52.88",
127+
"host": "localhost",
122128
"port": 80,
123129
"method": "BAN",
124130
"enabled": false
@@ -234,7 +240,7 @@
234240
"useOnlyDefaultUserGroupId": false
235241
},
236242
"review": {
237-
"defaultReviewStatus": 2
243+
"defaultReviewStatus": 2
238244
},
239245
"bodyLimit": "100kb",
240246
"corsHeaders": [
@@ -347,15 +353,6 @@
347353
"includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable" ],
348354
"loadByAttributeMetadata": false
349355
},
350-
"productList": {
351-
"sort": "",
352-
"includeFields": [ "type_id", "sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "url_key" ],
353-
"excludeFields": [ "configurable_children", "description", "configurable_options", "sgn" ]
354-
},
355-
"productListWithChildren": {
356-
"includeFields": [ "type_id", "sku", "name", "tax_class_id", "special_price", "special_to_date", "special_from_date", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax", "configurable_children.color", "configurable_children.size", "product_links", "url_key"],
357-
"excludeFields": [ "description", "sgn"]
358-
},
359356
"product": {
360357
"excludeFields": [ "updated_at", "created_at", "attribute_set_id", "status", "visibility", "tier_prices", "options_container", "msrp_display_actual_price_type", "has_options", "stock.manage_stock", "stock.use_config_min_qty", "stock.use_config_notify_stock_qty", "stock.stock_id", "stock.use_config_backorders", "stock.use_config_enable_qty_inc", "stock.enable_qty_increments", "stock.use_config_manage_stock", "stock.use_config_min_sale_qty", "stock.notify_stock_qty", "stock.use_config_max_sale_qty", "stock.use_config_max_sale_qty", "stock.qty_increments", "small_image"],
361358
"includeFields": null,

docker/varnish/docker-compose copy/docker-compose.nodejs.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

docker/varnish/docker-compose copy/docker-compose.varnish.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

docker/varnish/docker-compose copy/docker-compose.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-storefront-api",
3-
"version": "1.12.1",
3+
"version": "1.12.3",
44
"private": true,
55
"description": "vue-storefront API and data services",
66
"main": "dist",
@@ -93,6 +93,7 @@
9393
"storefront-query-builder": "https://github.com/DivanteLtd/storefront-query-builder.git",
9494
"syswide-cas": "latest",
9595
"tsconfig-paths": "^3.9.0",
96+
"vsf-utilities": "^1.0.2",
9697
"winston": "^2.4.2"
9798
},
9899
"devDependencies": {

src/api/attribute/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function setAttributeInCache (attributeList, config) {
7676
* @param attribute - attribute object
7777
* @param optionsIds - list of only needed options ids
7878
*/
79-
function clearAttributeOpitons (attribute, optionsIds: number[]) {
79+
function clearAttributeOptions (attribute, optionsIds: number[]) {
8080
const stringOptionsIds = optionsIds.map(String)
8181
return {
8282
...attribute,
@@ -102,7 +102,7 @@ async function list (attributesParam: AttributeListParam, config, indexName: str
102102
attributeCodes.splice(index, 1)
103103

104104
// clear unused options
105-
return clearAttributeOpitons(cachedAttribute, attributeOptionsIds)
105+
return clearAttributeOptions(cachedAttribute, attributeOptionsIds)
106106
}
107107
})
108108
// remove empty results from cache.get
@@ -134,7 +134,7 @@ async function list (attributesParam: AttributeListParam, config, indexName: str
134134
const attributeOptionsIds = attributesParam[fetchedAttribute.attribute_code]
135135

136136
// clear unused options
137-
return clearAttributeOpitons(fetchedAttribute, attributeOptionsIds)
137+
return clearAttributeOptions(fetchedAttribute, attributeOptionsIds)
138138
})
139139
]
140140

0 commit comments

Comments
 (0)