Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIF-1464 - The FeaturedCategoryList component does not use the UrlPro… #309

Merged
merged 4 commits into from
Jun 18, 2020

Conversation

cjelger
Copy link
Contributor

@cjelger cjelger commented Jun 17, 2020

…vider service

  • replaced hard-coded String format with urlProvider

How Has This Been Tested?

Extended unit test + manually tested.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

…vider service

- replaced hard-coded String format with urlProvider
@cjelger cjelger added the bug Something isn't working label Jun 17, 2020
@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #309 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #309      +/-   ##
============================================
+ Coverage     64.74%   64.77%   +0.02%     
  Complexity      802      802              
============================================
  Files           179      179              
  Lines          5597     5601       +4     
  Branches        875      875              
============================================
+ Hits           3624     3628       +4     
  Misses         1848     1848              
  Partials        125      125              
Flag Coverage Δ Complexity Δ
#jest 42.44% <ø> (ø) 0.00 <ø> (ø)
#karma 94.51% <ø> (ø) 0.00 <ø> (ø)
#unittests 86.42% <100.00%> (+0.02%) 802.00 <0.00> (ø)
Impacted Files Coverage Δ Complexity Δ
...dels/v1/categorylist/FeaturedCategoryListImpl.java 88.23% <100.00%> (+1.00%) 16.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f374f88...3cf97de. Read the comment docs.

@@ -120,7 +127,8 @@ private void initModel() {
}
List<CategoryTree> categories = categoriesRetriever.fetchCategories();
for (CategoryTree category : categories) {
category.setPath(String.format("%s.%s.html", categoryPage.getPath(), category.getId()));
Map<String, String> params = new ParamsBuilder().id(category.getId().toString()).map();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I added that

@herzog31 herzog31 merged commit 6356b21 into master Jun 18, 2020
@herzog31 herzog31 deleted the CIF-1464 branch June 18, 2020 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants