-
Notifications
You must be signed in to change notification settings - Fork 3
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
Complete PersistentMembershipState mappings #33
base: release/1.1
Are you sure you want to change the base?
Conversation
@manosbatsis Appreciate you taking an interest in making this a better product. May I ask why is there a need for this additional query criteria? I would expect there to also be a change to the query service to justify these updates. Regarding the |
Hi @bpaunescu , thanks for your reply. We're trying to convince a couple of clients to migrate from the previous bn-apps and adopt the extension. They need the ability to use Indeed For now we use a custom service as the one provided with the extension seems to assume a single result per networkId and Party combination. That said, i would be more than happy to discuss/contribute for any agreed improvements on the service API. |
@manosbatsis Indeed, this solution was never intended to be C.I. or Accounts aware but that doesn't mean it shouldn't. I will have to discuss this a bit with product before moving forward. One thing to keep in mind, we're in the middle of the QA part of the Q4 release and this contribution might not make the official release even if merged in the next few days. I hope that doesn't mean you can't make use of it. In the meantime, @tubibuto what do you think? Opinions? |
I think code-wise solution looks good, maybe I would put this new change-set to a new migration script instead being in initial one. Did you test DB migration from 1.0 to 1.1 or you just did straight schema initialisation to 1.1 version ? I agree with @bpaunescu that this probably won't make the cut in 1.1 official release but it still can be a beneficial addition to the open source code which can be checked out and used by customers. |
Thanks @tubibuto. What would be the file name for the new migration script file? Only did a straight schema initialisation to 1.1, perhaps there's some way to provide a test for the migration? Haven't done this before but if you guys could point to an example i'd give it a try. |
Maybe something like I would recommend doing it manually:
If that works, we should be fine with that migration path. |
@tubibuto @bpaunescu Updated based on comments above and also tested against CE 4.6.1 using
|
Updated
PersistentMembershipState
and with additional constraints and state member mappings:PersistentMembershipState
'scordaIdentity
,networkId
,status
PersistentMembershipState
issuer
,issued
andmodified
to expose as query criteriaPersistentMembershipState
businessIdentity
based on theBNIdentity?.toString()
implementation used, to expose as query criteriaI state that this PR is in accordance with the Developer's Certificate of Origin.