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

feat: emitting an event when handling a client upgrade proposal (backport #1570) #1590

Merged
merged 5 commits into from
Jul 5, 2022

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 27, 2022

This is an automatic backport of pull request #1570 done by Mergify.
Cherry-pick of 8422d0c has failed:

On branch mergify/bp/release/v2.1.x/pr-1570
Your branch is up to date with 'origin/release/v2.1.x'.

You are currently cherry-picking commit 8422d0c.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   modules/core/02-client/keeper/proposal.go
	modified:   modules/core/02-client/types/events.go

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	both modified:   CHANGELOG.md
	deleted by us:   modules/core/02-client/keeper/events.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


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

* feat: emitting an event when handling a client upgrade proposal

* refactor: only emit event if err is nil

* refactor: idiotmatic go:

(cherry picked from commit 8422d0c)

# Conflicts:
#	CHANGELOG.md
#	modules/core/02-client/keeper/events.go
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
@@ -46,6 +46,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (modules/core/keeper) [\#1284](https://github.com/cosmos/ibc-go/pull/1284) Add sanity check for the keepers passed into `ibckeeper.NewKeeper`. `ibckeeper.NewKeeper` now panics if any of the keepers passed in is empty.
* (transfer) [\#1414](https://github.com/cosmos/ibc-go/pull/1414) Emitting Sender address from `fungible_token_packet` events in `OnRecvPacket` and `OnAcknowledgementPacket`.
* (modules/core/04-channel) [\#1464](https://github.com/cosmos/ibc-go/pull/1464) Emit a channel close event when an ordered channel is closed.
* (core/02-client) [\#1570](https://github.com/cosmos/ibc-go/pull/1570) Emitting an event when handling an upgrade client proposal.
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be in the unreleased section at the top of changelog? i.e. targeted for v2.1.2

@seantking seantking force-pushed the mergify/bp/release/v2.1.x/pr-1570 branch from f5b8b3b to 6171dd3 Compare June 30, 2022 11:09
CHANGELOG.md Outdated Show resolved Hide resolved
)

// EmitCreateClientEvent emits a create client event
func EmitCreateClientEvent(ctx sdk.Context, clientID string, clientState exported.ClientState) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that all these other Emit... functions were added as part of #783, but not back ported to any of the v2 release lines, so if we add then in this PR they are actually not used in the code. Should we remove then so that we also keep closer to the spirit of the PR that is being back ported here?

We have this problem in the other v2 back ports as well...

@crodriguezvega crodriguezvega merged commit ff6c5e2 into release/v2.1.x Jul 5, 2022
@crodriguezvega crodriguezvega deleted the mergify/bp/release/v2.1.x/pr-1570 branch July 5, 2022 08:53
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