Can't include "id" property in Collection array

Description

Sample code:
http://jsfiddle.net/CHPNF/3/

What I expect:
When you tap the "Tap Here!" text, the DataRepeater should redraw to list "1", "2", and "3".

What actually happens:
When you tap the "Tap Here!" text, the DataRepeater stays as-is.

Apparently, if I remove the "id" property from the arrays I'm setting, everything is hunky-dory:
http://jsfiddle.net/CHPNF/4/

I suspect this is a bug.

If this is intended behavior, then it should be documented.

Environment

Windows 8 / Chrome 36

Activity

Show:
Lis Hammel
September 8, 2014, 6:12 PM

Per : The reason this is failing is that id is the default primaryKey for Model so enyo.store complains about duplicate models when the collection is reset with a new model with the same id. You can either enable enyo.store.ignoreDuplicates, use merge() instead of reset(), or specify a different primaryKey.
- can you please review these comments and let us know if this approach will work for you? Thanks.

Assignee

Peter Rogers

Reporter

Peter Rogers

Labels

None

External issue ID

None

Tango Test Run Elements

None

Old Issue Key

None

Components

Affects versions

Priority

None
Configure