ucdavis / ucdavis/ipa-client-angular

WorkgroupView: Duplicates in repeater not allowed

Open
#956 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

URL: https://ipa.ucdavis.edu/workgroups/69/2017?tab=locations

User: Hanou, Mandy

Kerberos: mhanou

Full Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: locationId in view.state.locations.ids, Duplicate key: number:98, Duplicate value: 98
http://errors.angularjs.org/1.5.8/ngRepeat/dupes?p0=locationId%20in%20view.state.locations.ids&p1=number%3A98&p2=98

Stack: https://ipa.ucdavis.edu/js/lib.js:10:1872
https://ipa.ucdavis.edu/js/lib.js:18:28901
$watchCollectionAction@https://ipa.ucdavis.edu/js/lib.js:14:16513
$digest@https://ipa.ucdavis.edu/js/lib.js:14:18187
$apply@https://ipa.ucdavis.edu/js/lib.js:14:20379
https://ipa.ucdavis.edu/js/lib.js:14:13040
completeOutstandingRequest@https://ipa.ucdavis.edu/js/lib.js:11:8152
https://ipa.ucdavis.edu/js/lib.js:11:11299

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating WorkgroupView and the repeater using locationId in view.state.locations.ids. Reproduce the Workgroup 69 locations view from the issue URL and inspect why key 98 appears twice. Done means the view renders without AngularJS's ngRepeat:dupes error while preserving the expected locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.