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

Commit 0846b5a

Browse files
author
tkostuch
committed
Merge remote-tracking branch 'github/develop'
2 parents c847ef9 + 0cab342 commit 0846b5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1314
-441
lines changed

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111
- Add url module - @gibkigonzo (#3942)
12+
- The `response_format` query parameter to the `/api/catalog` endpoint. Currently there is just one additional format supported: `response_format=compact`. When used, the response format got optimized by: a) remapping the results, removing the `_source` from the `hits.hits`; b) compressing the JSON fields names according to the `config.products.fieldsToCompact`; c) removing the JSON fields from the `product.configurable_children` when their values === parent product values; overall response size reduced over -70% - @pkarw
13+
- The support for `SearchQuery` instead of the ElasticSearch DSL as for the input to `/api/catalog` - using `storefront-query-builder` package - @pkarw - https://github.com/DivanteLtd/vue-storefront/issues/2167
14+
- Create attribute service that allows to fetch attributes with specific options - used for products aggregates - @gibkigonzo (https://github.com/DivanteLtd/vue-storefront/pull/4001, https://github.com/DivanteLtd/mage2vuestorefront/pull/99)
15+
- Add ElasticSearch client support for HTTP authentication - @cewald (#397)
16+
- Endpoint for reset password with reset token. Only for Magento 2 - @Fifciu
17+
- Varnish Cache with autoinvalidation by Cache tags as addon - @Fifciu
18+
- Add `resetPasswordUsingResetToken` to `magento1` platform - @cewald (#415)
1219

1320
### Fixed
14-
15-
### Changed / Improved
16-
21+
- add es7 support for map url module and fixed default index for es config - @gibkigonzo
22+
- Add correct paths for production build - @cewald (#407)
23+
- Fix MSI default stock id value
1724

1825
## [1.11.0] - 2019.12.20
1926

2027
### Fixed
2128

2229
- Fixed some smaller issues with graphql so that it is now working again with the fronted - #350
2330
- Replaced the old `crop` function call which has been removed from Sharp image processor - @grimasod (#381)
24-
31+
- Add product processor to new URL mapper endpoint #401 - @cewald (#401, #403)
32+
- Add fallback for `sourcePriceInclTax` and `finalPriceInclTax` in `magento1` platform - @cewald (#398)
2533

2634
## [1.11.0-rc.1] - 2019.10.03
2735

@@ -37,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3745
- Added support for tax calculation where the values from customer_tax_class_ids is used - @resubaka (#307)
3846
- The `db` context object - passed to every api endpoint now has two usefull methods: `getElasticClient` and `getRedisClient` for accesing the data stores - @pkarw (#328)
3947
- The `lib/utils` got two new methods `getStoreCode(req: Express.Request)` and `getStoreView(code: string)` for getting the current multistore context from `vue-storefront` frontend requests - @pkarw
48+
- Check message property instead of errorMessage in apiError function - @cdshotels-liborpansky (#378)
4049

4150
### Removed
4251
- The `scripts/seo.js` tool has been removed, the legacy `migrations` scripts have been removed, the unused legacy extensions (`gls-parcelshop-dk`, `postnord-parcelshop-dk`) - @pkarw (#342)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Then, please do change the `config/local.json` to start using the new Elastic AP
8585
```json
8686
"elasticsearch": {
8787
"host": "localhost",
88+
"index": "vue_storefront_catalog",
8889
"port": 9200,
8990
"protocol": "http",
9091
"min_score": 0.01,

config/default.json

Lines changed: 90 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
},
2020
"elasticsearch": {
2121
"host": "localhost",
22+
"index": "vue_storefront_catalog",
2223
"port": 9200,
2324
"protocol": "http",
25+
"requestTimeout": 5000,
2426
"min_score": 0.01,
2527
"indices": [
2628
"vue_storefront_catalog",
@@ -36,7 +38,89 @@
3638
"taxrule",
3739
"review"
3840
],
39-
"apiVersion": "5.6"
41+
"apiVersion": "5.6",
42+
43+
"searchScoring": {
44+
"attributes": {
45+
"attribute_code": {
46+
"scoreValues": { "attribute_value": { "weight": 1 } }
47+
}
48+
},
49+
"fuzziness": 2,
50+
"cutoff_frequency": 0.01,
51+
"max_expansions": 3,
52+
"minimum_should_match": "75%",
53+
"prefix_length": 2,
54+
"boost_mode": "multiply",
55+
"score_mode": "multiply",
56+
"max_boost": 100,
57+
"function_min_score": 1
58+
},
59+
"searchableAttributes": {
60+
"name": {
61+
"boost": 4
62+
},
63+
"sku": {
64+
"boost": 2
65+
},
66+
"category.name": {
67+
"boost": 1
68+
}
69+
}
70+
},
71+
"products": {
72+
"fieldsToCompress": ["max_regular_price", "max_price", "max_regular_price", "minimal_regular_price", "final_price", "price", "special_price", "original_final_price", "original_price", "original_special_price", "final_price_incl_tax", "price_incl_tax", "special_price_incl_tax", "final_price_tax", "price_tax", "special_price_tax", "image", "small_image", "thumbnail"],
73+
"fieldsToCompact": {
74+
"minimal_price": "mp",
75+
"has_options": "ho",
76+
"url_key": "u",
77+
"status": "s",
78+
"required_options": "ro",
79+
"name": "nm",
80+
"tax_class_id": "tci",
81+
"description": "desc",
82+
"minimal_regular_price": "mrp",
83+
"final_price": "fp",
84+
"price": "p",
85+
"special_price": "sp",
86+
"original_final_price": "ofp",
87+
"original_price": "op",
88+
"original_special_price": "osp",
89+
"final_price_incl_tax": "fpit",
90+
"original_price_incl_tax": "opit",
91+
"price_incl_tax": "pit",
92+
"special_price_incl_tax": "spit",
93+
"final_price_tax": "fpt",
94+
"price_tax": "pt",
95+
"special_price_tax": "spt",
96+
"original_price_tax": "opt",
97+
"image": "i",
98+
"small_image": "si",
99+
"thumbnail": "t"
100+
},
101+
"filterFieldMapping": {
102+
"category.name": "category.name.keyword"
103+
},
104+
"filterAggregationSize": {
105+
"default": 10,
106+
"size": 10,
107+
"color": 10
108+
},
109+
"priceFilterKey": "final_price",
110+
"priceFilters": {
111+
"ranges": [
112+
{ "from": 0, "to": 50 },
113+
{ "from": 50, "to": 100 },
114+
{ "from": 100, "to": 150 },
115+
{ "from": 150 }
116+
]
117+
}
118+
},
119+
"varnish": {
120+
"host": "185.246.52.88",
121+
"port": 80,
122+
"method": "BAN",
123+
"enabled": false
40124
},
41125
"redis": {
42126
"host": "localhost",
@@ -76,7 +160,7 @@
76160
"tax": {
77161
"defaultCountry": "DE",
78162
"defaultRegion": "",
79-
"deprecatedPriceFieldsSupport": true,
163+
"deprecatedPriceFieldsSupport": false,
80164
"calculateServerSide": true,
81165
"sourcePriceIncludesTax": false,
82166
"finalPriceIncludesTax": true,
@@ -113,7 +197,7 @@
113197
"defaultRegion": "",
114198
"calculateServerSide": true,
115199
"sourcePriceIncludesTax": false,
116-
"deprecatedPriceFieldsSupport": true,
200+
"deprecatedPriceFieldsSupport": false,
117201
"finalPriceIncludesTax": true,
118202
"userGroupId": null,
119203
"useOnlyDefaultUserGroupId": false
@@ -143,7 +227,7 @@
143227
"usePlatformTotals": true,
144228
"setConfigurableProductOptions": true,
145229
"sourcePriceIncludesTax": false,
146-
"deprecatedPriceFieldsSupport": true,
230+
"deprecatedPriceFieldsSupport": false,
147231
"finalPriceIncludesTax": false,
148232
"userGroupId": null,
149233
"useOnlyDefaultUserGroupId": false
@@ -255,7 +339,8 @@
255339
"includeFields": [ "children_data", "id", "children_count", "sku", "name", "is_active", "parent_id", "level", "url_key" ]
256340
},
257341
"attribute": {
258-
"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" ]
342+
"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" ],
343+
"loadByAttributeMetadata": false
259344
},
260345
"productList": {
261346
"sort": "",

docker-compose.nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ services:
2626
- /var/www/dist
2727
ports:
2828
- '8080:8080'
29+

docker-compose.varnish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3.0'
2+
services:
3+
varnish:
4+
build:
5+
context: .
6+
dockerfile: varnish/Dockerfile
7+
volumes:
8+
- ./docker/varnish/config.vcl:/usr/local/etc/varnish/default.vcl
9+
ports:
10+
- '1234:80'

docker/varnish/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM cooptilleuls/varnish:6.0-stretch
2+
3+
# install varnish-modules
4+
RUN apt-get update -y && \
5+
apt-get install -y build-essential automake libtool curl git python-docutils && \
6+
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.deb.sh | bash;
7+
8+
RUN apt-get install -y pkg-config libvarnishapi1 libvarnishapi-dev autotools-dev;
9+
10+
RUN git clone https://github.com/varnish/varnish-modules.git /tmp/vm;
11+
RUN cd /tmp/vm; \
12+
git checkout 6.0; \
13+
./bootstrap && \
14+
./configure;
15+
16+
RUN cd /tmp/vm && \
17+
make && \
18+
make check && \
19+
make install;

0 commit comments

Comments
 (0)