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

protos(view): add a subaccount filter to the OwnedPositionIds rpc #4992

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

conorsch
Copy link
Contributor

Describe your changes

This PR resubmits the unmerged changes from #4985, targeting main branch. Below is the original submission text for 4985, which is still accurate here.

This PR:

  • adds an AddressIndex field to the OwnedPositionIds rpc request and response
  • regenerate the codegen protobufs

It doesn't seem important to do the extra work to support filtering in the rust view server. The natural consumers of that information are web interfaces. Market makers using the rust implementation would probably simply integrate it in their own OMS rather than relying on the view service RPC.

One question I have is whether the buf publish action will be able to pickup the change to the protos.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    view service changes

@conorsch
Copy link
Contributor Author

This PR implements the changes requested in #4985 (review).

@conorsch
Copy link
Contributor Author

Downgraded this PR to draft, so that #4993 can land first. Once that's done, I'll need to rebase this and regenerate the proto files, to ensure no conflicts.

conorsch added a commit that referenced this pull request Jan 17, 2025
)

## Describe your changes
This reverts commit 64c32ef, which
constitutes the squash-merge of PR #4980. We're backing this change out
strictly to simplify release engineering: we want the `main` branch to
remain fully compatible with the `0.81.x` series, and we'll continue QA
of significant version changes in a parallel release branch,
`release/v0.82.x`. I'll handle preparing the latter shortly.

## Issue ticket number and link

See related discussion in #4988 & #4991.

## Testing and review

This is a programmatic change, in that I simply ran `git revert
64c32ef`, wrote some notes into the commit message, and pushed it up.
I also made sure to rerun `just proto` to regenerate the protos, and
confirmed there are no changes. That's good, that's precisely what we
wanted to see.

Preferably this change would land before #4992, since #4992 changes
protos. I'll regenerate protos in 4992 on top of this once it lands on
main.

## Checklist before requesting a review

- [x] I have added guiding text to explain how a reviewer should test
these changes.

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

> This commit is expressly intended to preserve protocol compatibility
with 0.81.x. Future work on QA to ensure compat with 0.82 will happen in
a separate branch.
@conorsch conorsch force-pushed the 4985-rebased-view_subaccount_index_owned_positions branch from 311f304 to 4c3c816 Compare January 17, 2025 18:02
@conorsch conorsch marked this pull request as ready for review January 17, 2025 18:02
Copy link
Contributor

@cronokirby cronokirby left a comment

Choose a reason for hiding this comment

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

one non-blocking nit, otherwise looks good to me

Co-authored-by: Lúcás Meier <[email protected]>
Signed-off-by: Erwan Or <[email protected]>
@conorsch conorsch merged commit f6b11b2 into main Jan 17, 2025
15 checks passed
@conorsch conorsch deleted the 4985-rebased-view_subaccount_index_owned_positions branch January 17, 2025 18:48
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.

3 participants