-
Notifications
You must be signed in to change notification settings - Fork 355
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
packages: support custom queries #652
Conversation
Ah, yes, now that I made Deps/DepsMut generic over the custom query type, we need to make controllers generic over that as well, not just Response. I agree. Can you also update other controllers? (Possibly as a follow up) |
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.
nice find
Note that main is breaking, so after merge, you should make a new branch off of v0.11.1, back port this fix (and for the other controllers) and release a v0.11.2. I don't think v0.12.0 is coming out so fast, so let's just patch the last stable version. That said, those issues seem quite optional investigation work I threw in so they wouldn't be forgotten, so maybe just rename the v0.12.0 milestone to v0.13.0 and we cut a v0.12.0 soon? @maurolacy is managing this release I believe |
Happy to do that, should be easy enough. |
OK with me. Only thing is that v0.12 will include type safe bounds, and it will require code migration. Migration should be easy, though. And, there's already a MIGRATING entry for this. |
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.
LGTM.
As @ethanfrey says, you can either cherry pick this into a 0.11 branch (branched off from the latest 0.11 version tag) and release a new 0.11, or release 0.12 early. I for one would go for the 2nd, even when it'll require some code migration on the client repo(s). Your call. |
Speaking of.. let me tag the v0.12.0-alpha2 release I prepared. |
Great. I can help with releasing 0.12 final if needed. |
I realized we might also need to update multitest with custom queries and I'm taking a shot at that, but it's not trivial. |
This is the relevant PR: #653 I would like that in before a v0.12.0 is tagged |
28a7ab2
to
3edbdc7
Compare
Okay, I tried to cover all of the |
I'd rather cut the new release than backport things, too. I guess for the migration there's nothing to do on my side if there's already a |
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.
LGTM.
In order to resolve confio/poe-contracts#36, it looks like we need the
tgrade-valset
contract to useTgradeQuery
as the custom query type forDeps
andDepsMut
(currently it'sEmpty
).In order to do that,
Admin
needs to support custom query types that are notEmpty
inDeps
/DepsMut
.