8000 pubsub/kvindexer:support for big numbers - v2 (backport #797) by mergify[bot] · Pull Request #840 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pubsub/kvindexer:support for big numbers - v2 (backport #797) #840

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

Merged
merged 5 commits into from
May 17, 2023

Conversation

mergify[bot]
Copy link
Contributor
@mergify mergify bot commented May 16, 2023

This is an automatic backport of pull request #797 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

8000
* Applied Michaels patch

* Added corner case tests, failing curently

* Support for big floats and ints added

* Added new util file

* Fixed linter error

* added internal package

* Revert "added internal package"

This reverts commit ef7f2b4.

* added internal/indexer

* Moved utils to internal

* Fixed linter

* Updated docs

* Applied @sergio-mena s  PR comments

* Fixed linter

* Return with error in compare float

* Changelog entries

* Apply lasaroj's comments.

Co-authored-by: Lasaro <lasaro@informal.systems>

* applied some PR comments

* updated docs

Co-authored-by: Sergio Mena <sergio@informal.systems>

* Added errors and logger

* Fixed linter

* Fixed sentence in comment

* Removed changelog

* Avoid converting to string when parsing int to float

* Added unexpected types to error messages

* Added comment on the 8atom regex in pubsub

---------

Co-authored-by: Lasaro <lasaro@informal.systems>
Co-authored-by: Sergio Mena <sergio@informal.systems>
(cherry picked from commit f667d3f)
@mergify mergify bot requested a review from a team as a code owner May 16, 2023 10:26
@sergio-mena sergio-mena self-assigned this May 16, 2023
@sergio-mena sergio-mena added bug Something isn't working indexer rpc labels May 16, 2023
8000
// TODO(creachadair): The existing implementation allows anything number shaped
// to be treated as a number. This preserves the parts of that behavior we had
// tests for, but we should probably get rid of that.
// We use this regex to support queries of the from "8atom", "6.5stake",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// We use this regex to support queries of the from "8atom", "6.5stake",
// We use this regex to support queries of the form "8atom", "6.5stake",

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this behavior should be deprecated. If a unit must be specified, it should be in another field of the query.
in any case, the deprecation should happen in main, not here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's discuss this when @jmalicevic is back.

Co-authored-by: Lasaro <lasaro@informal.systems>
@sergio-mena sergio-mena merged commit d067be9 into v0.38.x May 17, 2023
@sergio-mena sergio-mena deleted the mergify/bp/v0.38.x/pr-797 branch May 17, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working indexer rpc
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0