Skip to content

Commit

Permalink
3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
shopizer-ecommerce committed Sep 6, 2022
1 parent 0bdf8ab commit d4cd0f8
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 58 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### Shopizer 2.X (for java 1.8 +) is still available


[![last_version](https://img.shields.io/badge/last_version-v3.0.0-blue.svg?style=flat)](https://github.com/shopizer-ecommerce/shopizer/tree/3.2.0)
[![last_version](https://img.shields.io/badge/last_version-v3.2.2-blue.svg?style=flat)](https://github.com/shopizer-ecommerce/shopizer/tree/3.2.0)
[![Official site](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=official%20site)](http://www.shopizer.com/)
[![Docker Pulls](https://img.shields.io/docker/pulls/shopizerecomm/shopizer.svg)](https://hub.docker.com/r/shopizerecomm/shopizer)
[![stackoverflow](https://img.shields.io/badge/shopizer-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/shopizer)
Expand Down Expand Up @@ -151,7 +151,7 @@ Synchronize lastest version with the upstream
-------------------

$ git remote add upstream https://github.com/yourusername/shopizer.git
$ git pull upstream 3.0.0
$ git pull upstream 3.2.2

Create new branch in your repository
-------------------
Expand Down
14 changes: 3 additions & 11 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
Changes in version 3.2.0
Changes in version 3.2.2


Functionality

Product variants in complement or replacement of product options
Api refactoring for products as documented https://shopizer-ecommerce.github.io/documentation/api/products/index.html
Open Search in replacement of elastic search. This is a starter that can be added to sm-core/pom.xml


Upgrade

Spring boot 2.5.5


Fixes

CVE-2022-23063
#727


29 changes: 6 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.shopizer</groupId>
<artifactId>shopizer</artifactId>
<packaging>pom</packaging>
<version>3.2.0</version>
<version>3.2.2</version>

<name>shopizer</name>
<url>http://ww.shopizer.com</url>
Expand Down Expand Up @@ -98,22 +98,22 @@
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>sm-core</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>sm-core-model</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>sm-core-modules</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>sm-shop-model</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/javax.inject/javax.inject -->
Expand Down Expand Up @@ -175,15 +175,6 @@
<version>${simple-json-version}</version>
</dependency>

<!-- sm-search -->
<!--
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>sm-search</artifactId>
<version>${shopizer.search.version}</version>
</dependency>
-->

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
Expand Down Expand Up @@ -384,15 +375,7 @@

<!--general dependencies -->
<dependencies>

<!-- sm-search -->
<!--
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>sm-search</artifactId>
</dependency>
-->


<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
Expand Down
14 changes: 1 addition & 13 deletions sm-core-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,8 @@
<parent>
<groupId>com.shopizer</groupId>
<artifactId>shopizer</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</parent>

<!-- https://mvnrepository.com/artifact/com.shopizer/shopizer-parent -->
<!--
<parent>
<groupId>com.shopizer</groupId>
<artifactId>shopizer-parent</artifactId>
<version>3.0.3</version>
<relativePath />
</parent>
<version>3.0.3</version>
-->



<artifactId>sm-core-model</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sm-core-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.shopizer</groupId>
<artifactId>shopizer</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</parent>


Expand Down
8 changes: 4 additions & 4 deletions sm-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.shopizer</groupId>
<artifactId>shopizer</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</parent>

<artifactId>sm-core</artifactId>
Expand Down Expand Up @@ -60,13 +60,13 @@
</dependency>

<!-- open search client -->
<!--
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>shopizer-search-opensearch-spring-boot-starter</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0-ALPHA</version>
</dependency>


-->

<!--
Want to use Square Payment Module ?
Expand Down
2 changes: 1 addition & 1 deletion sm-shop-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.shopizer</groupId>
<artifactId>shopizer</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</parent>

<artifactId>sm-shop-model</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class ProductDefinition extends Entity {
private boolean canBePurchased = true;
private String dateAvailable;
private String identifier;
private String sku; //to match v1 api
private ProductSpecification productSpecifications;
private int sortOrder;
private int quantity;
Expand Down Expand Up @@ -78,6 +79,12 @@ public boolean isCanBePurchased() {
public void setCanBePurchased(boolean canBePurchased) {
this.canBePurchased = canBePurchased;
}
public String getSku() {
return sku;
}
public void setSku(String sku) {
this.sku = sku;
}


}
3 changes: 1 addition & 2 deletions sm-shop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.shopizer</groupId>
<artifactId>shopizer</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
</parent>

<artifactId>sm-shop</artifactId>
Expand Down Expand Up @@ -38,7 +38,6 @@
<artifactId>sm-shop-model</artifactId>
</dependency>


<!-- Spring boot starters -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ public Product merge(PersistableProductDefinition source, Product destination, M
try {

//core properties
destination.setSku(source.getIdentifier());

if(StringUtils.isBlank(source.getIdentifier())) {
destination.setSku(source.getSku());
} else {
destination.setSku(source.getIdentifier());
}
destination.setAvailable(source.isVisible());
destination.setDateAvailable(new Date());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -255,6 +256,14 @@ public ReadableProductList list(
**/

if (!StringUtils.isBlank(searchCriterias.getSku())) {
searchCriterias.setCode(searchCriterias.getSku());
}

if (!StringUtils.isBlank(searchCriterias.getName())) {
searchCriterias.setProductName(searchCriterias.getName());
}

searchCriterias.setMaxCount(count);
searchCriterias.setLanguage(language.getCode());

Expand Down

0 comments on commit d4cd0f8

Please sign in to comment.