Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

2.0.1
September 9, 2022
changed
  • Refactor login error

fixed
  • fix unit tests

2.0.0
September 6, 2022
added
  • Fix API error codes and messages.

1.9.9
September 6, 2022
added
  • Added error handling when trying to connect to a downtime provider.

1.9.8
September 6, 2022
added
  • Adjust libraries with BLOCKER accusation by Sonar

1.9.7
September 5, 2022
added
  • Added include Security/Secret-Detection.gitlab-ci.yml at file gitlab-ci.yml to secrets searching for leaks

1.9.6
September 5, 2022
added
  • Added unit testing for CacheRepositoryFactory.java class

  • Added unit testing for the CacheBuilder.java class

changed
  • Changed the CacheConfig.java class name to CacheBuilder.java

  • Moved CacheConfig.java to the domain package.

  • Changed the RedisConfiguration.java name to CacheRepositoryFactory.java

  • Moved RedisConfiguration.java to the infra package.

  • Changing the ItemNotCreatedException.java class package to the utilities package.

  • Changing the package of the class CustomCacheErrorHandler.java.

  • Changing the package of the class CustomizedResponseEntityExceptionHandler.java.

  • Changing the package of the class HeaderExceptionHandler.java.

  • Updated version of logstash, okhttp, jsoup and jacoco dependencies

  • Fixed the response to remove product and remove wishlist calls.

1.9.5
September 2, 2022
changed
  • Modified the service to list ATG provider products

  • Adjusted unit tests

1.9.4
September 2, 2022
changed
  • Fix product id validation when adding products via Linx.

1.9.3
September 1, 2022
added
  • Add Endpoint of Add a Product.

  • Add more unit test coverage to add product and add products.

1.9.2
August 31, 2022
changed
  • Redis Master/Slave to Sentinel

1.9.2
August 31, 2022
changed
  • Redis Master/Slave to Sentinel

1.9.1
August 29, 2022
changed
  • Fix validation when adding product with quantity null.

1.9.0
August 26, 2022
changed
  • Fix validation when adding product with quantity less than or equal to 0.

Unreleased
1.8.9
August 25, 2022
changed
  • Fix return and validation of wishlist id in ATG.

Unreleased
1.8.8
August 23, 2022
added
  • Add sonar check.

changed
  • Fix redis cache pagination in wishlist and wishlistProduct.

  • Fix docker-compose file example.

Unreleased
1.8.7
August 23, 2022
changed
  • parameterize the ATG provider URLs in properties.

Unreleased
1.8.6
August 22, 2022
changed
  • changed version application.

Unreleased
1.8.5
August 22, 2022
changed
  • changed version application test.

Unreleased
1.8.4
August 15, 2022
changed
  • changed the mesage of the x-user-id validation

1.8.3
August 14, 2022
changed
  • fixed the validation of the x-user-id field for the atg provider

  • fixed some issues

1.8.2
August 12, 2022
added
  • Added Unit test for coverage of body valid in add product in wishlist.

changed
  • Fix validation the fields in body when value to empty or null in add product in wishlist.

1.8.1
August 11, 2022
changed
  • Fix issues validate Sonar.

1.8.0
August 8, 2022
added
  • Fix validation the 'name' field when value to empty or null in update Wishlist.

changed
  • Fix return code status in update Wishlist to 200 with body.

1.7.9
August 4, 2022
added
  • added the annotations to update app settings

1.7.8
August 3, 2022
added
  • Added Unit test for coverage of empty 'name' field

  • Added file json test reference a request field empty add Wishlist.

changed
  • Fix validation the 'name' field when value to empty or null in add Wishlist.

  • Commented reference to sonar in gitlab-ci.

1.7.7
August 2, 2022
changed
  • Removed x-session and sending information by x-user-id in controllers.

1.7.6
August 1, 2022
changed
  • Changed package br.com.lojasrenner to salesoperation.wishlist.

  • Changed groupId sales.salesoperation to salesoperation.wishlist.

1.7.5
August 1, 2022
added
  • Cache to domain layer.

  • Tests for new methods in domain layer.

  • Tests for cache in domain layer.

1.7.4
July 29, 2022
added
  • Added validation of wishlistId in findAllProducts, addProducts and removeProduct services in WishlistProductsServiceImpl.

removed
  • Removed getHash method not being used in WishlistUtils class.

changed
  • Changed unit tests to cover the new wishlistId validation implementation.

1.7.3
July 28, 2022
added
  • Added method to validate wishlistId in wishlistUtils.

  • Added validation of wishlistId in findWishlist, removeWishlist and updateWishlist services in WishlistServiceImpl.

  • Added the description in the return of the wishlist object via ATG.

removed
  • Removed profile in application-properties from dev, hml in resources/test in .gitignore.

changed
  • Changed unit tests to cover the new wishlistId validation implementation.

  • Changed to ignore dev, hml and prd application-properties in .gitignore.

1.7.2
July 28, 2022
removed
  • removed the variable management.endpoints.web.base-path=/

1.7.1
July 27, 2022
added
  • Created error handling of headers in endpoint calls in HeaderExceptionHandler.

  • Added spring-boot-starter-validation dependency for endpoint validations with @Valid and @NotBlank.

  • Added @Valid and @NotBlank annotations to endpoints.

  • Added unit test coverage for the new HeaderExceptionHandler class in WishlistControllerTest.

1.7.0
July 26, 2022
added
  • added spring cloud config settings

  • added spring cloud config dependencies

  • added test properties to gitignore

removed
  • removed project application properties

changed
  • refactored the application path

1.6.4
July 25, 2022
added
  • Created unit tests to findAllProducts in wishlistControllerTest class with return empty.

changed
  • Fix bug in findAllProducts return in wishlist in ATG when it returns empty.

1.6.3
July 21, 2022
added
  • Created endpoint to Update Wishlist.

  • Created method to Update Wishlist in WishlistService and WishlistServiceImpl

  • Created unit tests to Update Wishlist in wishlistControllerTest class.

changed
  • Refactor return of removeWishlist endpoints to code 204 - No content.

  • Refactor return of removeProduct endpoints to code 204 - No content.

1.6.2
July 19, 2022
added
  • Created updateWishlist method in LinxWishlistAdapter.

  • Added unit tests for coverage referring to the update Wishlist flow in LINX.

1.6.1
July 15, 2022
added
  • Added message when unable to remove and update wishlist to ATG.

  • Created unit tests to remove and update Wishlist in wishlistControllerTest and AtgWishlistAdapter class.

  • Added file json test reference a response error add Wishlist.

1.6.0
July 14, 2022
added
  • Created endpoint to Remove Wishlist.

  • Created method to Remove Wishlist in WishlistService and WishlistServiceImpl

  • Created unit tests to Remove Wishlist in wishlistControllerTest class.

changed
  • Changed message return when product not found when removing from wishlist in LinxProductAdapter.

1.5.9
July 13, 2022
added
  • Created removeWishlist method in LinxWishlistAdapter.

  • Created DTO LinxRemoveWishlistBody referring to the object sent to LINX in the RemoveWishlist flow.

  • Created DTO LinxRemoveWishlistResponse referring to the object sent to LINX in the RemoveWishlist flow.

  • Added unit tests for coverage referring to the remove Wishlist flow in LINX.

  • Added generic error message on return when removing wishlist.

1.5.8
July 12, 2022
added
  • Created removeProduct method in LinxProductAdapter.

  • Created DTO LinxRemoveProductBody referring to the object sent to LINX in the RemoveProduct flow.

  • Created DTO LinxRemoveProductResponse referring to the object sent to LINX in the RemoveProduct flow.

  • Created findAll method with generic LINX return, to reuse in findAllProducts and removeProducts methods in LinxProductAdapter.

  • Added unit tests for coverage referring to the remove Product in Wishlist flow in LINX.

changed
  • Modified findAllProducts method to call new findAll method to reuse code in LinxProductAdapter.

1.5.7
July 8, 2022
added
  • Added severity property in WishlistMessageType messages.

  • Added settings to get api version and updated api-commons version.

changed
  • Modified exception calls to conform to the log pattern.

  • Refactored the ItemNotCreatedException exception.

1.5.6
July 8, 2022
added
  • Created endpoint to Remove Product from Wishlist.

  • Created method to Remove Product from Wishlist in WishlistProductsService and WishlistProductsServiceImpl

  • Created unit tests to Remove Product in Wishlist in wishlistControllerTest class.

1.5.5
July 7, 2022
added
  • Created dto AtgRemoveProductsRequest referring to the object sent to ATG in the RemoveProduct flow.

  • Created dto AtgRemoveProductsResponse referring to the object sent to ATG in the RemoveProduct flow.

  • Created dto AtgProductAdapterTest to coverage.

  • Created AtgRemoveProductConverter from productId to AtgRemoveProductsRequest.

  • Added unit tests for coverage referring to the remove Product in Wishlist flow in ATG.

  • Added generic error message on return when removing product in Wishlist.

  • Added file json test reference a response remove product in Wishlist successful.

  • Added file json test reference a response product in Wishlist error.

changed
  • Implementing removeProduct method in AtgProductAdapter.

1.5.4
July 4, 2022
added
  • Created dto LinxAddWishlistBody referring to the object sent to Linx in the AddWishlist flow.

  • Created dto LinxAddWishlistResponse referring to the object sent to Linx in the AddWishlist flow.

  • Added unit tests for coverage referring to the add Wishlist flow in Linx.

  • Added generic error message on return when adding Wishlist.

  • Added file json test reference a response add wishlist successful.

  • Added file json test reference a response add wishlist error.

changed
  • Changed wishlist to wishlistResponse converter in WishlistConverter.

  • Removed unnecessary converting in WishlistConverter.

  • Implementing addWishlist method in LinxWishlistDapater.

1.5.3
July 4, 2022
added
  • Created 2 unit tests referring to findAllProducts and addProducts with adjustment in exception return.

  • Added message when unable to add product to ATG wishlist.

  • Added message when it is not possible to query the atg provider.

  • Added file json test reference a response list products empty

changed
  • Changed in findAllProducts and addProducts the return of new error exceptions in atgProductAdapter.

  • Changed AtgWishlistResponse add 2 new fields: 'First' and 'Empty' to handle exception.

1.5.2
July 1, 2022
changed
  • Modified error codes according to the established standard.

1.5.1
July 1, 2022
added
  • Created endpoint to Add Wishlist

  • Created unit tests to add wishlist in wishlistControllerTest class.

changed
  • Change the Add Wish List return the Linx adapter to increase test coverage

  • Removed unnecessary imports from AtgWishlistAdapter class.

1.5.0
July 1, 2022
added
  • Created the DTOs for the body of the request to trigger products in the linx provider.

  • Created the class to convert the dtos.

  • Created the linx response class.

  • Added message when unable to add product to linx wishlist.

  • Created an Exception to pass the error message when adding product.

  • Created not added product messages.

changed
  • Removed unnecessary imports from LinxProductAdapter class.

1.4.9
June 30, 2022
added
  • created add wishlist in Adapter ATG

1.4.8
June 30, 2022

###Added

  • Refactor sonar critical code in classes RestTemplateUtils and WishlistProductServiceImpl
1.4.7
June 30, 2022
added
  • Created unit tests for linxWishlistAdapter.

  • Created unit tests for linxProductAdapter.

changed
  • Modified sonar coverage files.

1.4.6
June 30, 2022
changed
  • Refactored adapter classes to make the request to ATG.

1.4.5
June 29, 2022
changed
  • Change to use technologymanagement.applicationmanagement.configurationmanagement:api-commons:SNAPSHOT-1.0.2

1.4.4
June 28, 2022
added
  • Created unit tests for domain and chain.

1.4.3
June 28, 2022
removed
  • LinxWishlistClient.java class.

changed
  • Refactored adapter classes to make the request to Linx.

1.4.2
June 28, 2022
added
  • Created test coverage to the atgAddProductConverter

1.4.1
June 28, 2022
changed
  • Changed the name and artifactId for api-wishlist

1.4.0
June 28, 2022
added
  • Created test coverage findAll and findUnique to the atgWishlistAdapter

1.3.0
June 27, 2022
added
  • Implemented endpoint to list linx products

  • Implemented dto to paginate linx products

  • Implemented the integrated tests of the product endpoint call to linx

  • Created the linx return json file linx_response_products.json

  • Created the return json file of the api endpoint (/v1/wishlists/{id}/products)

changed
  • Modified the return of the Wishlist Product Converter class.

  • Modified where we had size and pageSize to limit.

1.2.0
June 23, 2022
added
  • Added in the findUnique function the construction of the withOrderBy field.

  • Added the integrated test of the /v1/wishlists/{id} endpoint using the mock.

  • Added Json files to simulate linx and endpoint return.

changed
  • Organized the pom.xml file, leaving the dependencies to perform the tests at the end.

1.1.0
June 20, 2022
added
  • LinxWishlistPageRequest and LinxWishlistFindAllRequestBody for Linx request.

  • CostumerID property in LinxWishlistResponse to follow the Wishilist class pattern.

  • The service that makes the Linx API call for all wishlists and wishlist by id.

  • Added error message in messages_pt_BR.properties.

  • Added mockweb server

changed
  • The return of the LinxWishlistAdapter for the data received from Linx.

  • The property name id class Lin Wishlist ContentResponse for wishlist.

1.0.0
June 13, 2022
added
  • Pagination for listing Wishlists and Products from Wishlist.

  • CHANGELOG.md.

removed
  • BasicService was removed for not being used.

changed
  • New folder structure.