Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix: revert entities count by project (#684)
Browse files Browse the repository at this point in the history
* fix: revert entities count by project

* fix: integration tests requirement
  • Loading branch information
obdulia-losantos authored Sep 30, 2019
1 parent a641806 commit 5762931
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aether-kernel/aether/kernel/api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def test_project_stats_view(self):
response = self.client.get(url)
json = response.json()
self.assertEqual(json['submissions_count'], 0)
self.assertEqual(json['entities_count'], entities_count)
# self.assertEqual(json['entities_count'], entities_count)
self.assertEqual(json['entities_count'], 0)

def test_mapping_set_stats_view(self):
url = reverse('mappingsets_stats-detail', kwargs={'pk': self.mappingset.pk})
Expand Down
2 changes: 1 addition & 1 deletion aether-kernel/aether/kernel/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def get_queryset(self):
class ProjectStatsViewSet(SubmissionStatsMixin, viewsets.ReadOnlyModelViewSet):
queryset = models.Project.objects.all()
serializer_class = serializers.ProjectStatsSerializer
entities_field = 'entities'
# entities_field = 'entities'


class MappingSetStatsViewSet(SubmissionStatsMixin, viewsets.ReadOnlyModelViewSet):
Expand Down
2 changes: 1 addition & 1 deletion test-aether-integration-module/conf/pip/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# #
################################################################################

aet.consumer
aet.consumer==1.0.0
aether.client

flake8
Expand Down

0 comments on commit 5762931

Please sign in to comment.