The EntityEndOfLifeCard will error when multiple products are listed that share the same cycle. As an example, adding the annotation 'endoflife.date/products': 'oracle-jdk,redhat-jboss-eap@7' will trigger that error on rendering the card.
Error log
Cannot add item: item with id 7 already exists
at DataSet._addItem (webpack-internal:///../../node_modules/vis-timeline/standalone/esm/vis-timeline-graph2d.js:23660:15)
at DataSet.add (webpack-internal:///../../node_modules/vis-timeline/standalone/esm/vis-timeline-graph2d.js:22979:21)
at new DataSet (webpack-internal:///../../node_modules/vis-timeline/standalone/esm/vis-timeline-graph2d.js:22897:14)
at Timeline.setGroups (webpack-internal:///../../node_modules/vis-timeline/standalone/esm/vis-timeline-graph2d.js:42822:46)
at new Timeline (webpack-internal:///../../node_modules/vis-timeline/standalone/esm/vis-timeline-graph2d.js:42708:13)
at eval (webpack-internal:///../../node_modules/@dweber019/backstage-plugin-endoflife/dist/esm/index-666b849a.esm.js:366:27)
at eval (webpack-internal:///../../node_modules/@dweber019/backstage-plugin-endoflife/dist/esm/index-666b849a.esm.js:382:5)
at commitHookEffectListMount (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:23145:26)
at commitPassiveMountOnFiber (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:24921:13)
at commitPassiveMountEffects_complete (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:24886:9)
The EntityEndOfLifeCard will error when multiple products are listed that share the same cycle. As an example, adding the annotation
'endoflife.date/products': 'oracle-jdk,redhat-jboss-eap@7'
will trigger that error on rendering the card.Error log
PR includes the fix and an accompanying test