adobe / adobe/aem-core-wcm-components
[List] Allow custom sources, sort orders and filters to be defined
- Dominant language
- Java
- Stars
- 795
- Forks
- 775
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 8
Description
https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/blob/be656c09ea43ea80b37e0727399aa48de3e43c8a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/models/impl/v1/ListImpl.java
As you can see, the options are now hardcoded. In most cases you will definitely want to reuse the existing options, you will probably only want to add a few more sources. And probably also a few more ways of sorting the list.
I think we can easily facilitate this with the OSGi framework - They can be separate components that are gathered and used by the List-component.
Contributor guide
Research direction
Start with bundles/core/src/main/java/com/adobe/cq/wcm/core/components/models/impl/v1/ListImpl.java and inspect how sources, sort orders, and filters are currently hardcoded. Then read the OSGi framework usage in the project before defining how separate components could provide reusable and additional options. Done means the List component supports custom sources, sort orders, and filters without relying only on hardcoded options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100