[MGNLPN-50] BaseVariantManager#getAllVariants returns unwanted variants for master nodes Created: 25/Mar/14 Updated: 25/Mar/14 Resolved: 25/Mar/14 |
|
| Status: | Closed |
| Project: | Magnolia Personalization |
| Component/s: | Integration |
| Affects Version/s: | None |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jaroslav Simak | Assignee: | Jaroslav Simak |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Epic Link: | Personalisation |
| Sprint: | 5.3 Sprint 4 |
| Description |
|
assume we have: - demo-project
- article
- variant-0
- variant-1
Now if we try to obtain variants for the demo-project master node, method getAllVariants should return empty iterable, but it returns variant-0 and variant-1, imho its because NodeUtil.collectAllChildren collects all child nodes not only from demo-project, but also from all demo-project child nodes recursively. |
| Comments |
| Comment by Jaroslav Simak [ 25/Mar/14 ] |