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

SITES-4621 Keep access to unused in between content #2261

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tyge68
Copy link
Collaborator

@tyge68 tyge68 commented Jul 25, 2022

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Minor: New Feature?
Major: Breaking Change?
Tests Added + Pass? Yes
Documentation Provided Yes (code comments and or markdown)
Any Dependency Changes?
License Apache License, Version 2.0
  • Updated ContentFragment model API to expose the list of "par#" that are not displayed anymore when content structure changed (usually when paragraphs are removed).
  • Updated the ContentFragmentImpl to compute paragraphs and remainingInBetweenContent information
  • Update "templates.html" in order to output remaining in between content at the end.
  • Updated all the related tests

Feel free to commit , reuse this code.

@sonarcloud
Copy link

sonarcloud bot commented Jul 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Jul 25, 2022

Codecov Report

Merging #2261 (d4c393a) into main (e49999b) will increase coverage by 0.00%.
The diff coverage is 73.68%.

@@            Coverage Diff            @@
##               main    #2261   +/-   ##
=========================================
  Coverage     86.94%   86.94%           
- Complexity     2479     2487    +8     
=========================================
  Files           217      217           
  Lines          6634     6651   +17     
  Branches       1016     1020    +4     
=========================================
+ Hits           5768     5783   +15     
  Misses          345      345           
- Partials        521      523    +2     
Impacted Files Coverage Δ
...models/v1/contentfragment/ContentFragmentImpl.java 83.58% <72.22%> (-0.74%) ⬇️
...onents/models/contentfragment/ContentFragment.java 100.00% <100.00%> (ø)
...core/components/internal/ContentFragmentUtils.java 84.61% <0.00%> (+1.09%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

import com.adobe.cq.wcm.core.components.internal.models.v1.datalayer.ContentFragmentDataImpl;
import com.adobe.cq.wcm.core.components.models.contentfragment.ContentFragment;
import com.adobe.cq.wcm.core.components.models.contentfragment.DAMContentFragment;
import com.adobe.cq.wcm.core.components.models.datalayer.ComponentData;
import com.adobe.cq.wcm.core.components.models.datalayer.ContentFragmentData;
import com.adobe.cq.wcm.core.components.models.datalayer.builder.DataLayerBuilder;
import com.adobe.cq.wcm.core.components.util.AbstractComponentImpl;
Copy link
Member

Choose a reason for hiding this comment

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

Could you please revert back the order of imports?

@@ -43,6 +43,9 @@ <h3 class="cmp-contentfragment__title">${fragment.title}</h3>
${item @ context="html"}
<div data-sly-resource="${'par{0}' @ format=itemList.count, resourceType=fragment.gridResourceType}"></div>
</div>
<div data-sly-list="${fragment.remainingInBetweenContent}">
Copy link
Member

Choose a reason for hiding this comment

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

I think this addition should be behind an option so that we don't end up appending these where they would not be desired. IMO, it's best to have a content policy option to enable showing them.

@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@herzog31 herzog31 removed their request for review June 30, 2023 07:04
@satzlinger
Copy link

satzlinger commented Jul 24, 2023

@tyge68 hi, any updates on the task? It seems like there is still feedback open and we would like to see that functionally out of the box :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants