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 lock method (backport #1936) #2029

Merged
merged 4 commits into from
Jul 12, 2022
Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 12, 2022

This is an automatic backport of pull request #1936 done by Mergify.
Cherry-pick of c115593 has failed:

On branch mergify/bp/v10.x/pr-1936
Your branch is up to date with 'origin/v10.x'.

You are currently cherry-picking commit c1155937.
  (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:   x/lockup/keeper/export_test.go
	modified:   x/lockup/keeper/lock_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   x/lockup/keeper/admin_keeper_test.go
	both modified:   x/lockup/keeper/lock.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

* Add lock method refactor

* Delete duplciated testing

* Update x/lockup/keeper/lock.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* Add tests implement feedback from code review

* Add test cases

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
(cherry picked from commit c115593)

# Conflicts:
#	x/lockup/keeper/admin_keeper_test.go
#	x/lockup/keeper/lock.go
@mergify mergify bot requested a review from a team July 12, 2022 06:33
@mergify mergify bot added the conflicts label Jul 12, 2022
@mattverse
Copy link
Member

Closing this to merge with the most recent commit of v10.x

@mattverse mattverse closed this Jul 12, 2022
@mergify mergify bot deleted the mergify/bp/v10.x/pr-1936 branch July 12, 2022 07:16
@mattverse mattverse restored the mergify/bp/v10.x/pr-1936 branch July 12, 2022 07:20
@mattverse mattverse reopened this Jul 12, 2022
@mattverse mattverse closed this Jul 12, 2022
@mergify mergify bot deleted the mergify/bp/v10.x/pr-1936 branch July 12, 2022 07:22
@mattverse mattverse restored the mergify/bp/v10.x/pr-1936 branch July 12, 2022 07:25
@mattverse mattverse reopened this Jul 12, 2022
Copy link
Member

@mattverse mattverse left a comment

Choose a reason for hiding this comment

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

Confirmed that the changes here is equal to the changes that got merged in the original PR #1936

@mattverse mattverse merged commit d733f64 into v10.x Jul 12, 2022
@mattverse mattverse deleted the mergify/bp/v10.x/pr-1936 branch July 12, 2022 09:36
ValarDragon added a commit that referenced this pull request Aug 1, 2022
ValarDragon added a commit that referenced this pull request Aug 3, 2022
* Revert "x/lock: Fix `ExtendLockup` API  (backport #1937) (#2030)"

This reverts commit bd32316.

* Revert "Refactor `lock` method (backport #1936) (#2029)"

This reverts commit d733f64.

* Update changelog

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant