-
Notifications
You must be signed in to change notification settings - Fork 377
Update lm-commons/lmc-rbac and signature for HasVerifiedEmailAssertion::assert #4907
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
base: dev-12.0
Are you sure you want to change the base?
Conversation
…n::assert The signature was changed in the interface starting with lm-commons/lmc-rbac 2.2.0. Signed-off-by: Stefan Weil <sw@weilnetz.de>
demiankatz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @stweil. That's a somewhat surprising change to make in a minor release of a library, though I suppose it's not a backward break since the upstream code is making the type more general, so downstream code with more specific types should remain compatible. And that raises the question: should we leave the type alone in HasVerifiedEmailAssertion, since in the instance of VuFind, it should still be true? Or did you encounter a problem that required this change to be made?
|
I got a runtime exception (directly when loading VuFind's start page in a web browser) because of the signature mismatch after updating my local packages with This exception either requires limiting the version in composer.json or updating the signature. We could use a signature without a type for As the VuFind code directly uses lm-commons/lmc-rbac, it should be mentioned in composer.json anyway. |
|
Thanks, @stweil! Maybe the best solution would be to open a PR against release-11.0 that locks the library to the current working version. That way, we can ensure that users of 11.0.1 don't run into this problem. And this PR can remain open for inclusion in 11.1 or 12.0 to bring us up to compatibility with the newer version. I don't think the lmc-rbac changelog should claim that release 2.2.0 has no backward compatibility breaks, though, since it clearly does! |
|
... and I agree that a minor version should not contain a change like this one. But I am afraid that we have to accept it as it is. |
Done, see PR #4909. |
|
Thanks, @stweil, I'll move this to the 12.0 milestone so we don't introduce our own breaking change until the next major version. |
The signature was changed in the interface starting with lm-commons/lmc-rbac 2.2.0, see related commit.