diff --git a/endpoints/index.py b/endpoints/index.py index bb83b85bf..1fa5010cb 100644 --- a/endpoints/index.py +++ b/endpoints/index.py @@ -299,9 +299,6 @@ def update_images(namespace, repository): # Make sure the repo actually exists. abort(404, message='Unknown repository', issue='unknown-repo') - profile.debug('Parsing image data') - image_with_checksums = json.loads(request.data.decode('utf8')) - if get_authenticated_user(): profile.debug('Publishing push event') username = get_authenticated_user().username @@ -325,10 +322,8 @@ def update_images(namespace, repository): updated_tags = session.get('pushed_tags', {}) event_data = { 'updated_tags': updated_tags, - 'pushed_image_count': len(image_with_checksums), 'pruned_image_count': num_removed } - spawn_notification(repo, 'repo_push', event_data) return make_response('Updated', 204) diff --git a/endpoints/notificationevent.py b/endpoints/notificationevent.py index 4a195fbd7..45a42287f 100644 --- a/endpoints/notificationevent.py +++ b/endpoints/notificationevent.py @@ -84,7 +84,6 @@ class RepoPushEvent(NotificationEvent): def get_sample_data(self, repository): return build_event_data(repository, { 'updated_tags': {'latest': 'someimageid', 'foo': 'anotherimage'}, - 'pushed_image_count': 10, 'pruned_image_count': 3 })