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-1471 - Use the ValueMapDecorator from the Sling API instead of the one from the Commerce API #318

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

dplaton
Copy link
Contributor

@dplaton dplaton commented Jun 25, 2020

Description

Replaced the references to com.adobe.cq.commerce.common.ValueMapDecorator with org.apache.sling.api.wrappers.ValueMapDecorator

Related Issue

CIF-1471

Motivation and Context

Always prefer Sling APIs over AEM ones.

How Has This Been Tested?

Unit testing

Screenshots (if appropriate):

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:

  • I have signed the Adobe Open Source CLA.
  • 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.

Daniel Platon added 2 commits June 25, 2020 11:49
Replaced the references to `com.adobe.cq.commerce.common.ValueMapDecorator` with `org.apache.sling.api.wrappers.ValueMapDecorator`
* Fix formatting
* Add a missing dependency to the "examples" bundle which was causing test failures
@dplaton dplaton added the bug Something isn't working label Jun 25, 2020
@codecov
Copy link

codecov bot commented Jun 25, 2020

Codecov Report

Merging #318 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #318   +/-   ##
=========================================
  Coverage     64.88%   64.88%           
  Complexity      809      809           
=========================================
  Files           184      184           
  Lines          5639     5639           
  Branches        875      875           
=========================================
  Hits           3659     3659           
  Misses         1852     1852           
  Partials        128      128           
Flag Coverage Δ Complexity Δ
#jest 43.02% <ø> (ø) 0.00 <ø> (ø)
#karma 94.51% <ø> (ø) 0.00 <ø> (ø)
#unittests 85.77% <ø> (ø) 809.00 <ø> (ø)
Impacted Files Coverage Δ Complexity Δ
...e/components/services/ComponentsConfiguration.java 100.00% <ø> (ø) 6.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 985e684...c8b9508. Read the comment docs.

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
<version>2.18.4</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't the version inherited from the parent POM?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This dependency is not declared in the parent POM, it's only declared in the CIF Core Components bundle

@dplaton dplaton merged commit d15820d into master Jun 25, 2020
@dplaton dplaton deleted the issues/CIF-1471 branch June 25, 2020 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants