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(abci): add msg index to event #15845

Merged
merged 33 commits into from
Apr 24, 2023
Merged

refactor(abci): add msg index to event #15845

merged 33 commits into from
Apr 24, 2023

Conversation

tac0turtle
Copy link
Member

Description

Closes: #15017

Logs now do not contain events associated to messages. The msg_index was added to the event itself, this avoids duplication of data


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)

@tac0turtle tac0turtle marked this pull request as ready for review April 14, 2023 11:19
@tac0turtle tac0turtle requested a review from a team as a code owner April 14, 2023 11:19
@tac0turtle tac0turtle changed the title add msg index to event refactor(abci):add msg index to event Apr 14, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK

baseapp/baseapp.go Outdated Show resolved Hide resolved
@julienrbrt julienrbrt changed the title refactor(abci):add msg index to event refactor(abci): add msg index to event Apr 14, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK.

baseapp/baseapp.go Outdated Show resolved Hide resolved
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

You might as well do this in the Comet 0.38 branch as it'll just create more work of us if you do it against main.

@tac0turtle
Copy link
Member Author

Could we merge it into main. Happy to handle the merge into 0.38.

@alexanderbez
Copy link
Contributor

alexanderbez commented Apr 15, 2023

my point is there is no point to merge to main -- we're literally going to do the exact same change in the base branch immediately.

@tac0turtle
Copy link
Member Author

my point is there is no point to merge to main -- we're literally going to do the exact same change in the base immediately.

this is orthagonal to 0.38, i dont get what the overlap is?

Copy link
Member

@facundomedica facundomedica left a comment

Choose a reason for hiding this comment

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

LGTM, do we need to add a note in the UPGRADING.md because it might break some tooling?

@facundomedica
Copy link
Member

It's failing because it's matching against the raw logs, I've fix one in which I iterate through events to find the right event type. But maybe we would like to have an easier way like doing json.Marshal to get a "raw log"

@tac0turtle
Copy link
Member Author

It's failing because it's matching against the raw logs, I've fix one in which I iterate through events to find the right event type. But maybe we would like to have an easier way like doing json.Marshal to get a "raw log"

i was going to rewrite these tests in a dfferent pr to unit tests, dont think these need to be e2e

@facundomedica
Copy link
Member

i was going to rewrite these tests in a dfferent pr to unit tests, dont think these need to be e2e

lmk if you'd like me to revert my commits

@tac0turtle tac0turtle added this pull request to the merge queue Apr 24, 2023
Merged via the queue into main with commit 8e896f4 Apr 24, 2023
@tac0turtle tac0turtle deleted the marko/15017 branch April 24, 2023 09:09
cool-develope pushed a commit that referenced this pull request Apr 26, 2023
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
czarcas7ic pushed a commit to osmosis-labs/cosmos-sdk that referenced this pull request Feb 13, 2024
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
czarcas7ic added a commit to osmosis-labs/cosmos-sdk that referenced this pull request Feb 16, 2024
* refactor(abci): add msg index to event (cosmos#15845)

Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>

* fix e2e tests

* another e2e fix

* e2e

* reset groupID

* e2e

* switch check to events

* e2e

* e2e

---------

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should ResponseDeliverTx.Log Include Events?
6 participants