Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: receivers parameters #85

Closed
wants to merge 1 commit into from

Conversation

jma
Copy link

@jma jma commented Dec 21, 2017

Signed-off-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch

Signed-off-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@@ -106,7 +106,7 @@ def __init__(self, app=None):
from .percolator import _find_matching_collections_externally
self.matcher = _find_matching_collections_externally

def __call__(self, record, **kwargs):
def __call__(self, sender, record, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Travis says, you will also need to amend the tests correspondingly. But I want to know why is this change needed: can you point me to the signature of the signal?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably due to inveniosoftware/invenio-records@cd3a7d2 (backward incompatible change)

@@ -106,7 +106,7 @@ def __init__(self, app=None):
from .percolator import _find_matching_collections_externally
self.matcher = _find_matching_collections_externally

def __call__(self, record, **kwargs):
def __call__(self, sender, record, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should probably be ..., sender, record=None, ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And you might need to bump lowest invenio-records dependency

@jma jma closed this Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants