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

Release/v1.12.0 rc.1 #457

Closed
wants to merge 157 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
ed8a03b
#378 Check message prop instead of errorMessage
Dec 18, 2019
de61736
#378 API errors with both message and errorMessage
Dec 25, 2019
adf1639
#378 Use code paramer instead of const 500
Dec 27, 2019
0b32632
add url module
Dec 30, 2019
acd3d93
update changelog
Dec 30, 2019
4c70244
clean folder structure
Dec 30, 2019
7a97ad4
Merge pull request #391 from gibkigonzo/feature/3942
andrzejewsky Dec 30, 2019
eb7470f
WIP: 2167 - bodybuilder removed from the frontend
pkarw Dec 28, 2019
d59e344
eslint fixes
pkarw Dec 28, 2019
1ae2395
Partial TypeScript added in order to leverage the `storefront-query-b…
pkarw Dec 29, 2019
9a5a9d8
Update catalog.ts
pkarw Dec 30, 2019
aaf25c1
compact response format support added
pkarw Dec 30, 2019
d770613
eslint fixes
pkarw Dec 30, 2019
a6c3343
deprecated price fields support removed
pkarw Dec 30, 2019
7429f1f
JSON object compression added to the `compact` mode
pkarw Dec 30, 2019
39f3544
Update product.js
pkarw Dec 30, 2019
caea50f
compression algorithm bulletproof
pkarw Dec 30, 2019
4a9f38a
Update CHANGELOG.md
pkarw Dec 30, 2019
86e90c1
Query builder supporting `storefront-query-builder`
pkarw Dec 30, 2019
cc1597f
storefront-query-builder reference changed to npm registry
pkarw Jan 7, 2020
50fd3b2
resolve conflicts
andrzejewsky Jan 13, 2020
dfada8a
Merge pull request #390 from DivanteLtd/feature/2167
andrzejewsky Jan 13, 2020
c4f8f66
Add save addess on place order
Jan 21, 2020
8cde210
Add ES client support for authentication
Jan 28, 2020
cefb185
Update CHANGELOG.md
Jan 28, 2020
30e1938
Add fallback if `sourcePriceInclTax` and `finalPriceInclTax` are not …
Jan 28, 2020
982925f
Update CHANGELOG.md
Jan 28, 2020
71a3fa3
3948 fetch attributes based on aggregates
Jan 28, 2020
e37a4ab
resolve conflicts
Jan 28, 2020
40be1e7
Process product data in new URL mapper endpoint (#401)
Jan 29, 2020
3f5ff71
Update CHANGELOG.md
Jan 29, 2020
30255f7
Catch if nothing is found
Jan 30, 2020
5437344
3948 add comments, add types, refactor, handle range and options
Jan 30, 2020
0be0f70
update changelog
Jan 30, 2020
9e50017
3948 remove buckets, because we still have aggregations
Jan 30, 2020
5b82730
Merge pull request #384 from cdshotels/develop
andrzejewsky Jan 30, 2020
f0720d1
Merge pull request #398 from icmaa/bugfix/magento-1-price-incl-tax
andrzejewsky Jan 30, 2020
5ff1f97
3948 use elasticsearch-js instead of request
Jan 30, 2020
fc57251
3948 remove getUri
Jan 30, 2020
f6c61f9
3948 add transformAggsToAttributeListParam, and support graphql
Jan 30, 2020
09b0d14
3948 move filter after map
Jan 30, 2020
2ff370a
add support for es7 in map-url
Feb 4, 2020
9e9d044
add default ES index
Feb 4, 2020
9eeeb82
update changelog
Feb 4, 2020
a729c70
Merge pull request #405 from gibkigonzo/bugfix/support-es-7-in-map-url
andrzejewsky Feb 4, 2020
bb16adf
Wrong paths for production build
Feb 5, 2020
c98ec18
Update CHANGELOG.md
Feb 5, 2020
66f6a40
Merge branch 'develop' into bugfix/401-use-processor-on-product-url-m…
Feb 5, 2020
2aec8fc
Update code
Feb 5, 2020
e1eaaf7
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefron…
Feb 7, 2020
738b1ac
3948 disable loadByAttributeMetadata by default
Feb 7, 2020
378a1a7
Merge pull request #394 from lucasqm/master
andrzejewsky Feb 9, 2020
7a6ee61
Merge pull request #397 from icmaa/bugfix/es-client-with-auth
andrzejewsky Feb 9, 2020
530f420
Merge pull request #403 from icmaa/bugfix/401-use-processor-on-produc…
andrzejewsky Feb 9, 2020
b0328bb
Endpoint for changing password with token from `Reset password`
Nov 21, 2019
9a94e9b
Updated description
Nov 21, 2019
bf0e516
token -> resetToken in the desc
Nov 21, 2019
262d69a
Indent fix
Feb 5, 2020
fafd5c0
Changelog
Feb 5, 2020
6ea0289
Create Password endpoint
Feb 9, 2020
3e19965
Indent fix
Feb 9, 2020
bf74066
Fixed changelog
Feb 9, 2020
d2109d5
Merge remote-tracking branch 'upstream/develop' into bugfix/build-pat…
Feb 10, 2020
0fd7379
Merge branch 'develop' into task/3948
andrzejewsky Feb 11, 2020
05998f8
Merge pull request #399 from gibkigonzo/task/3948
andrzejewsky Feb 11, 2020
6c6515e
Merge pull request #366 from Fifciu/feature/#-Change-Password
andrzejewsky Feb 11, 2020
481f49d
Merge pull request #407 from icmaa/bugfix/build-path-with-src
andrzejewsky Feb 13, 2020
0bf814b
MVP
Feb 9, 2020
5774173
Readme update
Feb 9, 2020
f916cc7
Readme fixes
Feb 9, 2020
833158d
Catalog tags header if varnish.enabled
Feb 15, 2020
d5a7c3c
Invalidate on only if varnish.enabled
Feb 15, 2020
f5fe6cf
Typo fix
Feb 15, 2020
3af5292
Update
Feb 15, 2020
e8870f9
Changelog
Feb 17, 2020
558a241
Merge pull request #408 from Fifciu/feature/#-Varnish-Cache
andrzejewsky Feb 17, 2020
a5fbd59
Use helper getHits()
didkan Feb 20, 2020
92421a0
Allow for configurable children (even if set as "not visible individu…
didkan Feb 20, 2020
1737a18
Merge pull request #410 from didkan/bug-fix/elastic-stock-fixes
andrzejewsky Feb 21, 2020
df95d6e
Add `resetPasswordUsingResetToken` to `magento1` platform
Mar 5, 2020
dd77814
Update CHANGELOG.md
Mar 5, 2020
7aefd2b
Merge pull request #415 from icmaa/feature/add-reset-password-using-r…
pkarw Mar 9, 2020
56f4b66
fix msi default stock id value
lnicorena Mar 9, 2020
3ad6505
Merge branch 'develop' of https://github.com/lnicorena/vue-storefront…
lnicorena Mar 10, 2020
4da3eaf
update changelog for fix related to msi in stock
lnicorena Mar 10, 2020
10b881d
See https://github.com/DivanteLtd/vue-storefront-api/issues/421
flancer64 Mar 24, 2020
01bc183
https://github.com/DivanteLtd/vue-storefront-api/issues/423
flancer64 Mar 24, 2020
0cab342
Merge pull request #417 from lnicorena/bugfix/416
ResuBaka Apr 2, 2020
e45bbec
add outputFormatter to response from cache
Apr 8, 2020
373ae83
update changelog
Apr 8, 2020
5ec990e
Merge branch 'develop' of github.com:DivanteLtd/vue-storefront-api in…
Apr 8, 2020
16c2a33
Update to `storefront-query-builder` version `1.0.0` and add helper t…
Apr 8, 2020
8ff13c0
Update CHANGELOG.md
Apr 8, 2020
60780a2
Make catalog-filter loader less IO-heavy
Apr 8, 2020
ad15829
Update `bodybuilder` package to be able to use the `clone` method
Apr 8, 2020
23a992c
Update `yarn.lock`
Apr 9, 2020
f049f13
Don't import custom filter classes using file ending
Apr 9, 2020
7220881
Merge pull request #422 from flancer64/issue_421
Apr 9, 2020
0516622
update changelog
Apr 9, 2020
e0fdc84
Merge pull request #424 from flancer64/issue_423
Apr 9, 2020
8534362
update changelog
Apr 9, 2020
db11e15
Merge pull request #428 from gibkigonzo/bugfix/add-output-formatter
Apr 9, 2020
42df865
Merge branch 'master' of github.com:DivanteLtd/vue-storefront-api int…
Apr 9, 2020
965247f
disable showing stack for invalid requests
Apr 9, 2020
055dd54
update changelog
Apr 9, 2020
3c37a3c
Merge branch 'develop' into feature/refactor-storefront-query-builder
Apr 9, 2020
4bde19c
Merge pull request #429 from icmaa/feature/refactor-storefront-query-…
Apr 9, 2020
7a2e7ad
Merge branch 'develop' of github.com:DivanteLtd/vue-storefront-api in…
Apr 10, 2020
817d5ec
move stack from result message
Apr 10, 2020
270b520
add default values
Apr 10, 2020
f089244
Merge pull request #431 from gibkigonzo/bugfix/disable-showing-stack
Apr 10, 2020
060c3e1
Remove `_outputFormatter` from output-cache response
Apr 11, 2020
7b4079f
Update CHANGELOG.md
Apr 11, 2020
c75a485
Use a copy of `_resBody` when using `_outputFormatter` to prevent to …
Apr 11, 2020
d01c73d
Update CHANGELOG.md
Apr 11, 2020
626f1a5
Always save processed and formatted version of ES response of catalog…
Apr 12, 2020
89d3e92
update yarn.lock after mage2vuestorefront
Apr 16, 2020
205e171
add var catalog, update db7 create schema, update product schema
Apr 16, 2020
08ad0d7
merge db with db7 script
Apr 16, 2020
bd480e7
update mage2vs and revert changes in createing es schema
Apr 16, 2020
6ccd9cf
update var files and remove elastic7
Apr 16, 2020
f35ee08
update changelog
Apr 16, 2020
536841c
Merge pull request #436 from gibkigonzo/update-yarn-lock
Apr 16, 2020
7069bd9
use ts for compiling o2m modules
Apr 17, 2020
7b55359
use ts for compiling o2m modules
Apr 17, 2020
567160e
update changelog
Apr 17, 2020
eab5130
Merge pull request #432 from icmaa/bugfix/remove-custommapper-from-ca…
Apr 17, 2020
3b1b3e2
Merge branch 'develop' into bugfix/437
Apr 17, 2020
5c431e5
use cross-env and tsconfig-paths
Apr 17, 2020
44a753e
Merge branch 'bugfix/437' of github.com:gibkigonzo/vue-storefront-api…
Apr 17, 2020
752a75d
update changelog
Apr 17, 2020
a344046
Merge pull request #439 from gibkigonzo/bugfix/437
Apr 24, 2020
57391f9
The path of the json scheme must be relative to the current folder
May 11, 2020
bbb1e8c
Fix regular expression in `magento1` platform to be able to use AWS E…
May 11, 2020
91acf35
Update README.md
May 11, 2020
f86191c
Add python and make to build in docker
ProxiBlue May 18, 2020
a39e271
Add in g++
ProxiBlue May 18, 2020
97f8751
check if header has been send
May 25, 2020
f54891a
update changelog
May 25, 2020
013d79b
Merge pull request #443 from icmaa/bugfix/json-scheme-path
May 25, 2020
a701ab8
Merge branch 'develop' of github.com:DivanteLtd/vue-storefront-api in…
May 25, 2020
5f6267c
Merge pull request #453 from gibkigonzo/bugfix/434
May 25, 2020
1f0987d
udpate typings
May 25, 2020
9e07613
update changelog
May 25, 2020
7a956f0
Merge branch 'develop' of github.com:DivanteLtd/vue-storefront-api in…
May 25, 2020
df4d2d0
update yarn lock
May 25, 2020
9bf2b75
force @types/express-serve-static-core@^4.17.7
gibkigonzo May 25, 2020
2f7eac8
change path in ecosystem for o2m
May 26, 2020
ecf46dc
update changelog
May 26, 2020
ea1fd3a
Update changelog
ProxiBlue May 26, 2020
fd6be22
Merge branch 'develop' into ProxiBlue-patch-1
ResuBaka May 26, 2020
df50ea6
Merge pull request #455 from ProxiBlue/ProxiBlue-patch-1
May 28, 2020
dfe8015
Merge branch 'develop' into bugfix/450
May 28, 2020
3cb8217
Merge pull request #456 from gibkigonzo/bugfix/450
May 28, 2020
05504d4
Merge branch 'develop' into bugfix/446
May 28, 2020
f3082d1
Merge pull request #454 from gibkigonzo/bugfix/446
May 28, 2020
c177c2a
update error handling
May 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,37 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.12.0-rc1] - UNRELEASED

### Added
- Add url module - @gibkigonzo (#3942)
- 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
- 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
- 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)
- Add ElasticSearch client support for HTTP authentication - @cewald (#397)
- Endpoint for reset password with reset token. Only for Magento 2 - @Fifciu
- Varnish Cache with autoinvalidation by Cache tags as addon - @Fifciu
- Add `resetPasswordUsingResetToken` to `magento1` platform - @cewald (#415)
- Update to `storefront-query-builder` version `1.0.0` - @cewald (#429)
- Add `composeError` in './magento2/o2m.js' - @flancer64 (#422)
- Explicit data extraction from 'Error' objects - @flancer64 (#424)
- Merge scripts: db7 => db, elastic7=>elastic and add support for es7 in yarn mage2vs import - @gibkigonzo (#436)

### Fixed
- add es7 support for map url module and fixed default index for es config - @gibkigonzo
- Add correct paths for production build - @cewald (#407)
- Fix MSI default stock id value
- Add outputFormatter to response from cache - @gibkigonzo (#428)
- disable showing stack for invalid requests - @gibkigonzo (#431)
- Improve `_outputFormatter` on cache catalog-response to prevent exception - @cewald (#432)
- use ts for compiling additional scripts - @gibkigonzo (#437)
- Bugfix for wrong JSON scheme url's and hostname resolution for `magento1` platform - @cewald (#443)
- check if headers has been already sent in image middleware - @gibkigonzo (#434)
- Missing packages in Docker Makefile (make, python and g++) - @proxiblue (#448)
- change path in ecosystem for o2m - @gibkigonzo (#434)
- udpate typings for query params - @gibkigonzo (#446)

## [1.11.1] - 2020.03.17

### Added
Expand All @@ -23,7 +54,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fixed some smaller issues with graphql so that it is now working again with the fronted - #350
- Replaced the old `crop` function call which has been removed from Sharp image processor - @grimasod (#381)

- Add product processor to new URL mapper endpoint #401 - @cewald (#401, #403)
- Add fallback for `sourcePriceInclTax` and `finalPriceInclTax` in `magento1` platform - @cewald (#398)

## [1.11.0-rc.1] - 2019.10.03

Expand All @@ -39,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for tax calculation where the values from customer_tax_class_ids is used - @resubaka (#307)
- The `db` context object - passed to every api endpoint now has two usefull methods: `getElasticClient` and `getRedisClient` for accesing the data stores - @pkarw (#328)
- 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
- Check message property instead of errorMessage in apiError function - @cdshotels-liborpansky (#378)

### Removed
- 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)
Expand Down
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,7 @@ Starting from [Elasitc 6 and 7](https://www.elastic.co/guide/en/elasticsearch/re

From now on, we're using the separate indexes per each entity type. The convention is: `${indexName}_${entityType}`. If your' **logical index name** is `vue_storefront_catalog` then it will be mapped to the **physical indexes** of: `vue_storefront_catalog_product`, `vue_storefront_catalog_category` ...

To take the advantage of this new logical->physical index distinction we've provided new Elastic tools: `db7`, `migrate7`, `dump7`, `restore7` tools. They can be used exactly the same way [like the old tools](https://docs.vuestorefront.io/guide/data/database-tool.html) were. The only distinction is that they work on separate indexes.

**Create new index**

Before restoreing or importing data you might want to create a new Elastic index with the proper data types/schema applied. You can run just the `yarn db7 new` command in order to do that.

**Restore the data**

After you ran the docker file and have Elastic7 up and running you might want to:

a) restore the demo data by running `yarn restore7` and `yarn restore7_it; yarn restore7_de` for default multistores. The data is restored from `var/catalog_product.json`, `var/catalog_category.json` and so on...

b) import the data from Magento to proper physical indexes. To do so, currently you can do this only with [mage2vuestorefront](https://github.com/DivanteLtd/mage2vuestorefront/pull/96).

**Note:** After 1.11 stable release (around November, 2019) we'll **replace** the standard tools: `db`, `migrate`, `dump`, `restore` with the Elastic 7 equivalents and it will become the default.

[Tools](https://docs.vuestorefront.io/guide/data/database-tool.html) are adjusted to ES7. You can use `yarn db new`, `yarn restore`, `yarn mage2vs import`. Just make sure that you have set up `config.elasticsearch.apiVersion` to `7.1`.

## API access
Catalog API calls are compliant with ElasticSearch (it works like a filtering proxy to ES). More on ES queries: [ElasticSearch queries tutorial](http://okfnlabs.org/blog/2013/07/01/elasticsearch-query-tutorial.html)
Expand Down
107 changes: 101 additions & 6 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"availableCacheTags": ["P", "C", "T", "A", "product", "category", "attribute", "taxrule"],
"invalidateCacheKey": "aeSu7aip",
"invalidateCacheForwarding": false,
"invalidateCacheForwardUrl": "http://localhost:3000/invalidate?key=aeSu7aip&tag="
"invalidateCacheForwardUrl": "http://localhost:3000/invalidate?key=aeSu7aip&tag=",
"showErrorStack": false
},
"orders": {
"useServerQueue": false
Expand Down Expand Up @@ -38,7 +39,89 @@
"taxrule",
"review"
],
"apiVersion": "5.6"
"apiVersion": "5.6",

"searchScoring": {
"attributes": {
"attribute_code": {
"scoreValues": { "attribute_value": { "weight": 1 } }
}
},
"fuzziness": 2,
"cutoff_frequency": 0.01,
"max_expansions": 3,
"minimum_should_match": "75%",
"prefix_length": 2,
"boost_mode": "multiply",
"score_mode": "multiply",
"max_boost": 100,
"function_min_score": 1
},
"searchableAttributes": {
"name": {
"boost": 4
},
"sku": {
"boost": 2
},
"category.name": {
"boost": 1
}
}
},
"products": {
"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"],
"fieldsToCompact": {
"minimal_price": "mp",
"has_options": "ho",
"url_key": "u",
"status": "s",
"required_options": "ro",
"name": "nm",
"tax_class_id": "tci",
"description": "desc",
"minimal_regular_price": "mrp",
"final_price": "fp",
"price": "p",
"special_price": "sp",
"original_final_price": "ofp",
"original_price": "op",
"original_special_price": "osp",
"final_price_incl_tax": "fpit",
"original_price_incl_tax": "opit",
"price_incl_tax": "pit",
"special_price_incl_tax": "spit",
"final_price_tax": "fpt",
"price_tax": "pt",
"special_price_tax": "spt",
"original_price_tax": "opt",
"image": "i",
"small_image": "si",
"thumbnail": "t"
},
"filterFieldMapping": {
"category.name": "category.name.keyword"
},
"filterAggregationSize": {
"default": 10,
"size": 10,
"color": 10
},
"priceFilterKey": "final_price",
"priceFilters": {
"ranges": [
{ "from": 0, "to": 50 },
{ "from": 50, "to": 100 },
{ "from": 100, "to": 150 },
{ "from": 150 }
]
}
},
"varnish": {
"host": "185.246.52.88",
"port": 80,
"method": "BAN",
"enabled": false
},
"redis": {
"host": "localhost",
Expand Down Expand Up @@ -78,7 +161,7 @@
"tax": {
"defaultCountry": "DE",
"defaultRegion": "",
"deprecatedPriceFieldsSupport": true,
"deprecatedPriceFieldsSupport": false,
"calculateServerSide": true,
"sourcePriceIncludesTax": false,
"finalPriceIncludesTax": true,
Expand Down Expand Up @@ -115,7 +198,7 @@
"defaultRegion": "",
"calculateServerSide": true,
"sourcePriceIncludesTax": false,
"deprecatedPriceFieldsSupport": true,
"deprecatedPriceFieldsSupport": false,
"finalPriceIncludesTax": true,
"userGroupId": null,
"useOnlyDefaultUserGroupId": false
Expand Down Expand Up @@ -145,7 +228,7 @@
"usePlatformTotals": true,
"setConfigurableProductOptions": true,
"sourcePriceIncludesTax": false,
"deprecatedPriceFieldsSupport": true,
"deprecatedPriceFieldsSupport": false,
"finalPriceIncludesTax": false,
"userGroupId": null,
"useOnlyDefaultUserGroupId": false
Expand All @@ -164,6 +247,7 @@
"cms-data",
"mail-service",
"example-processor",
"example-custom-filter",
"elastic-stock"
],
"extensions": {
Expand All @@ -188,6 +272,9 @@
"resultProcessors": {
"product": "my-product-processor"
}
},
"example-custom-filter": {
"catalogFilter": [ "SampleFilter" ]
}
},
"magento2": {
Expand Down Expand Up @@ -257,7 +344,8 @@
"includeFields": [ "children_data", "id", "children_count", "sku", "name", "is_active", "parent_id", "level", "url_key" ]
},
"attribute": {
"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" ]
"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" ],
"loadByAttributeMetadata": false
},
"productList": {
"sort": "",
Expand All @@ -284,5 +372,12 @@
"description": 1,
"sku": 1,
"configurable_children.sku": 1
},
"urlModule": {
"map": {
"includeFields": ["url_path", "identifier", "id", "slug", "sku", "type_id"],
"searchedFields": ["url_path", "identifier"],
"searchedEntities": ["product", "category", "cms_page"]
}
}
}
21 changes: 20 additions & 1 deletion config/elastic.schema.product.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,25 @@
"tax_class_id": {"type": "integer"},
"gender": {"type": "integer"},
"material": {"type": "integer"},
"category_gear": {"type": "integer"}
"category_gear": {"type": "integer"},
"attributes_metadata": {
"properties": {
"id": {"type": "integer"},
"attribute_id": {"type": "integer"},
"default_frontend_label": {"type": "text"},
"is_visible_on_front": {"type": "text"},
"is_visible" : {"type": "boolean"},
"frontend_input": {"type": "text"},
"is_user_defined": {"type": "boolean"},
"is_comparable": {"type": "text"},
"attribute_code": {"type": "text"},
"options": {
"properties": {
"value": {"type": "text"},
"label": {"type": "text"}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions docker-compose.nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ services:
- /var/www/dist
ports:
- '8080:8080'

10 changes: 10 additions & 0 deletions docker-compose.varnish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.0'
services:
varnish:
build:
context: .
dockerfile: varnish/Dockerfile
volumes:
- ./docker/varnish/config.vcl:/usr/local/etc/varnish/default.vcl
ports:
- '1234:80'
19 changes: 19 additions & 0 deletions docker/varnish/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM cooptilleuls/varnish:6.0-stretch

# install varnish-modules
RUN apt-get update -y && \
apt-get install -y build-essential automake libtool curl git python-docutils && \
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.deb.sh | bash;

RUN apt-get install -y pkg-config libvarnishapi1 libvarnishapi-dev autotools-dev;

RUN git clone https://github.com/varnish/varnish-modules.git /tmp/vm;
RUN cd /tmp/vm; \
git checkout 6.0; \
./bootstrap && \
./configure;

RUN cd /tmp/vm && \
make && \
make check && \
make install;
Loading