ngRepeat:dupes error and no Labels shown when accessing Labels from a VTB


Description

In Filter navigator, user goes to Visual Task Board, opens any VTB, and selects Labels, but no labels are shown and there is javascript console error that looks like

Error: [ngRepeat:dupes] http://errors.angularjs.org/1.5.7/ngRepeat/dupes?p0=label%20in%20board.labels%20%7C%20orderBy%20%3A%20'order'%20track%20by%20label.id&p1=d8dceecfdb012010a3f0d9595e961917&p2=%7B%22color%22%3A%22%23123ddd%22%2C%22order%22%3A0%2C%22id%22%3A%22d8dceecfdb012010a3f0d9595e961917%22%2C%22active%22%3Afalse%2C%22value%22%3A%22Includes%20code%22%2C%22dragType%22%3A%22label%22%7D



Some labels are shown after user types in the Filter by Label Name.

Release or Environment

All Releases, but it is reported in Paris.

Cause

This is caused by duplicate labels for this specific VTB in vtb_board_label.list.

Resolution

1. In Filter navigator, go to vtb_board_label.list, enter name of the board in Board column and Includes code in the filter of Label column - two entries are found, one active and one inactive:


2. Deleting any record resolves the issue: In Filter navigator, user goes to Visual Task Board, opens any VTB, selects Labels - all labels  are shown:



Additional Information

Please follow the steps below to troubleshoot the issue.

1. Copy the error from javascript console:

http://errors.angularjs.org/1.5.7/ngRepeat/dupes?p0=label%20in%20board.labels%20%7C%20orderBy%20%3A%20'order'%20track%20by%20label.id&p1=d8dceecfdb012010a3f0d9595e961917&p2=%7B%22color%22%3A%22%23123ddd%22%2C%22order%22%3A0%2C%22id%22%3A%22d8dceecfdb012010a3f0d9595e961917%22%2C%22active%22%3Afalse%2C%22value%22%3A%22Includes%20code%22%2C%22dragType%22%3A%22label%22%7D

2. Go to URL Decoder/Encode

Decode the error above, it is what we have:

http://errors.angularjs.org/1.5.7/ngRepeat/dupes?p0=label in board.labels | orderBy : 'order' track by label.id&p1=d8dceecfdb012010a3f0d9595e961917&p2={"color":"#123ddd","order":0,"id":"d8dceecfdb012010a3f0d9595e961917","active":false,"value":"Includes code","dragType":"label"}

3. dragType above specifies the Column (label), and value (Includes code) specifies the label that is duplicate and causes the issue