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(x/group): remove regen group module #1258

Merged
merged 10 commits into from
Jul 19, 2022
Merged

Conversation

aleem1314
Copy link
Contributor

@aleem1314 aleem1314 commented Jul 13, 2022

Description

Ref: #667


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)

@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #1258 (9bc4deb) into master (7ec383b) will decrease coverage by 2.85%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1258      +/-   ##
==========================================
- Coverage   80.11%   77.25%   -2.86%     
==========================================
  Files         235      212      -23     
  Lines       21558    16024    -5534     
==========================================
- Hits        17271    12380    -4891     
+ Misses       2996     2655     -341     
+ Partials     1291      989     -302     
Flag Coverage Δ
experimental-codecov ?
stable-codecov 77.25% <ø> (+1.43%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
types/id.go 0.00% <0.00%> (-100.00%) ⬇️
types/module/server/derived_module_key.go 0.00% <0.00%> (-76.93%) ⬇️
types/module/server/msgs.go 0.00% <0.00%> (-64.71%) ⬇️
app/experimental_ante.go 0.00% <0.00%> (-61.30%) ⬇️
types/module/server/root_module_key.go 5.88% <0.00%> (-23.53%) ⬇️
types/module/server/router.go 60.43% <0.00%> (-16.49%) ⬇️
types/math/math.go 60.00% <0.00%> (-10.00%) ⬇️
types/ormstore/store.go 35.83% <0.00%> (-3.91%) ⬇️
types/module/server/manager.go 62.59% <0.00%> (-3.82%) ⬇️
...cocredit/marketplace/msg_allowed_denom_proposal.go 35.71% <0.00%> (-2.75%) ⬇️
... and 8 more

@aleem1314 aleem1314 marked this pull request as ready for review July 18, 2022 05:22
Copy link
Member

@ryanchristo ryanchristo left a comment

Choose a reason for hiding this comment

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

Looks good to me. Given the group module has only been used in the experimental build. I think it's ok to remove the proto files as well as you have done here. 🚀

Comment on lines 101 to 103
// BEGIN HACK: this is a total, ugly hack until x/auth & x/bank supports ADR 033 or we have a suitable alternative

groupModule := group.Module{AccountKeeper: app.AccountKeeper, BankKeeper: app.BankKeeper}
// use a separate newModules from the global NewModules here because we need to pass state into the group module
newModules := []moduletypes.Module{
groupModule,
}
err := newModuleManager.RegisterModules(newModules)
if err != nil {
panic(err)
}
// END HACK
Copy link
Member

Choose a reason for hiding this comment

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

We should remove the BEGIN HACK and END HACK comments here as well.

@ryanchristo
Copy link
Member

ryanchristo commented Jul 18, 2022

Can you also add a changelog entry? 🙏

## [Unreleased]

### app

#### Removed

- [#1258](https://github.com/regen-network/regen-ledger/pull/1258) Remove group module from experimental config

### x/group

#### Removed

- [#1258](https://github.com/regen-network/regen-ledger/pull/1258) Remove group module

@ryanchristo ryanchristo changed the title feat(group): remove regen group module feat(x/group): remove regen group module Jul 18, 2022
Copy link
Member

@ryanchristo ryanchristo left a comment

Choose a reason for hiding this comment

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

Updates look good to me.

@ryanchristo ryanchristo merged commit 2e1b6ec into master Jul 19, 2022
@ryanchristo ryanchristo deleted the aleem/remove-group-module branch July 19, 2022 16:44
@blushi
Copy link
Member

blushi commented Nov 3, 2022

why did we keep x/group/spec?

@ryanchristo
Copy link
Member

why did we keep x/group/spec?

Hambach is using the old version of the group module and so the docs should still be accessible.

#1258 (comment)
#1258 (comment)

https://docs.regen.network/modules/group/
https://buf.build/regen/regen-ledger/docs/main:regen.group.v1alpha1

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.

4 participants