def get(self, request, organization, version): """ List issues to be resolved in a particular release `````````````````````````````````````````````````` Retrieve a list of issues to be resolved in a given release. :pparam string organization_slug: the slug of the organization the release belongs to. :pparam string version: the version identifier of the release. :auth: required """ group_ids = get_group_ids_resolved_in_release(organization, version) groups = Group.objects.filter( project_id__in=self.get_project_ids(request, organization), id__in=group_ids, ) context = serialize( list(groups), request.user, GroupSerializerSnuba( environment_ids=[e.id for e in self.get_environments(request, organization)], ) ) return Response(context)
def get(self, request: Request, project, version) -> Response: """ List issues to be resolved in a particular release `````````````````````````````````````````````````` Retrieve a list of issues to be resolved in a given release. :pparam string organization_slug: the slug of the organization the release belongs to. :pparam string project_slug: the slug of the project associated with the release. :pparam string version: the version identifier of the release. :auth: required """ group_ids = get_group_ids_resolved_in_release(project.organization, version) groups = Group.objects.filter(project=project, id__in=group_ids) context = serialize( list(groups), request.user, GroupSerializer(environment_func=self._get_environment_func( request, project.organization_id)), ) return Response(context)
def get(self, request, project, version): """ List issues to be resolved in a particular release `````````````````````````````````````````````````` Retrieve a list of issues to be resolved in a given release. :pparam string organization_slug: the slug of the organization the release belongs to. :pparam string project_slug: the slug of the project associated with the release. :pparam string version: the version identifier of the release. :auth: required """ group_ids = get_group_ids_resolved_in_release(project.organization, version) groups = Group.objects.filter(project=project, id__in=group_ids) context = serialize( list(groups), request.user, GroupSerializer( environment_func=self._get_environment_func(request, project.organization_id) ) ) return Response(context)