Skip to content

Commit

Permalink
Fix failing tests and add changelog entry #858
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Aug 16, 2023
1 parent 89b7731 commit 24686c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
v32.5.3 (unreleased)
--------------------

- Improve the performance of the codebase relations list view to support large number
of entries.
https://github.com/nexB/scancode.io/issues/858

- Improve DiscoveredPackageListView query performances refining the prefetch_related.
https://github.com/nexB/scancode.io/issues/856

Expand Down
2 changes: 1 addition & 1 deletion scanpipe/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def test_scanpipe_views_codebase_relation_list_view_count(self):
self.assertEqual(3, self.project1.relation_count)

response = self.client.get(url)
self.assertContains(response, "2 to/ resources (3 relations)")
self.assertContains(response, "3 relations")

def test_scanpipe_views_codebase_relation_diff_view(self):
url = reverse("resource_diff", args=[self.project1.slug])
Expand Down

0 comments on commit 24686c8

Please # to comment.