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

refactor!: simplify cosmos.reflection.v1 #13668

Merged
merged 2 commits into from
Oct 26, 2022
Merged

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Oct 26, 2022

Description

Follow-up to #13597 so I don't need a go.mod replace in #13281


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

// pagination defines the optional pagination request.
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}
message FileDescriptorsRequest {}
Copy link
Member Author

Choose a reason for hiding this comment

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

@aaronc aaronc marked this pull request as ready for review October 26, 2022 17:21
@aaronc aaronc requested a review from a team as a code owner October 26, 2022 17:21
@aaronc aaronc added the T: Proto Breaking Protobuf breaking changes: generally don't do this! label Oct 26, 2022
@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

This is proto breaking, but unreleased

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

we aren't worried about size right?

@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

we aren't worried about size right?

It could be an issue but pagination only helps with single request size not total server load. If someone wants the file descriptors, they want them all. It's not like a UI paging thing, so pagination is really overkill.

This is the type of method a server might want some rate limiting around. I will check the size of the SDK's descriptors.

@aaronc aaronc enabled auto-merge (squash) October 26, 2022 17:31
@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

The SDK's FileDescriptorSet is 665k uncompressed, 208k gzipped.

@aaronc aaronc merged commit 2d606d4 into main Oct 26, 2022
@aaronc aaronc deleted the aaronc/reflection-proto-update branch October 26, 2022 17:36
@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

Anyone know why proto break check is not a required check? I'm surprised this merged without me needing to manually override that 😱

@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

Tagging api/v0.2.3

@tac0turtle
Copy link
Member

Its fine to have Proto breakage land on main, having it be required may slow down some merges

@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

Its fine to have Proto breakage land on main, having it be required may slow down some merges

Yes, but it could also allow unintended breakage. I thought we had problems with that before

@tac0turtle
Copy link
Member

I cant remember when that was an issue since proto breaking usually means migrations

@aaronc
Copy link
Member Author

aaronc commented Oct 26, 2022

I cant remember when that was an issue since proto breaking usually means migrations

#13411 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Proto Breaking Protobuf breaking changes: generally don't do this!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants