Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

grokys
Copy link
Contributor

@grokys grokys commented Nov 14, 2018

TrackingCollection was originally written to display the Pull Request list without locking up the UI, however in #1737, we moved to using data virtualization, which meant we no longer use TrackingCollection.

The remaining place in which tracking was used was the PR creation dialog, however TrackingCollection was not acting correctly and causing #2054, in addition a few of the TrackingCollection tests frequently came up as flaky tests, failing our CI build.

The issue in the PR creation dialog was more easily fixed by transitioning to using simple LINQ, so this PR removes the class.

image

Fixes #2054

It was only used in `RepositoryCreationViewModel` ,where it was failing to properly sort the items in the UI (recommended items weren't getting placed at the top) and was causing intermittent test failures.
When akavache refreshes its cache, duplicate items are produced. This should really be fixed at a lower level, but for the moment just remove duplicates in the view model. Also fix sorting.
The funtionality tested by this test was only needed in the context of `TrackingCollection.
@grokys grokys force-pushed the refactor/remove-trackingcollection branch from 9c771fd to 49c2697 Compare November 14, 2018 13:28
@meaghanlewis
Copy link
Contributor

This works well for me 👍

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Glad to get rid of those tests. 🎉 LGTM!

@jcansdale jcansdale merged commit 5fe2916 into master Nov 20, 2018
@jcansdale jcansdale deleted the refactor/remove-trackingcollection branch November 20, 2018 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gitignore templates in "Create Repository" not sorted correctly

3 participants