-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
…vider service - replaced hard-coded String format with urlProvider
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@@ -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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CategoriesRetriever
is also fetching the url_path
(see https://github.com/adobe/aem-core-cif-components/blob/master/bundles/core/src/main/java/com/adobe/cq/commerce/core/components/internal/models/v1/categorylist/CategoriesRetriever.java#L29-L33). So why not pass it to the url provider as well?
There was a problem hiding this comment.
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
…vider service - also pass url_path to UrlProvider
…vider service
How Has This Been Tested?
Extended unit test + manually tested.
Types of changes
Checklist: