Don't use repository object anywhere in endpoints/api/repositorynotification
Also adds support for audit logging with repo name only
This commit is contained in:
parent
047722b295
commit
9dad44e93d
5 changed files with 36 additions and 41 deletions
|
@ -55,13 +55,9 @@ class RepoNotificationInterface(object):
|
|||
"""
|
||||
Interface that represents all data store interactions required by the RepositoryNotification API
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def get_repository(self, namespace_name, repository_name):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def create_repo_notification(self, repository, event_name, method_name, method_config, event_config, title=None):
|
||||
def create_repo_notification(self, namespace_name, repository_name, event_name, method_name, method_config, event_config, title=None):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
|
@ -73,11 +69,11 @@ class RepoNotificationInterface(object):
|
|||
pass
|
||||
|
||||
@abstractmethod
|
||||
def delete_repo_notification(self, repository, uuid):
|
||||
def delete_repo_notification(self, namespace_name, repository_name, uuid):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def reset_notification_number_of_failures(self, repository, uuid):
|
||||
def reset_notification_number_of_failures(self, namespace_name, repository_name, uuid):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
|
|
Reference in a new issue