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/ecocredit): add admin to project info #888

Merged
merged 7 commits into from
Mar 16, 2022

Conversation

ryanchristo
Copy link
Member

@ryanchristo ryanchristo commented Mar 15, 2022

Description

Closes: #884

Add admin to project info allowing a project to be updated in the future.

Also update event to use admin rather than issuer.


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 Mar 15, 2022

Codecov Report

Merging #888 (2d101c6) into master (9f27542) will increase coverage by 0.02%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #888      +/-   ##
==========================================
+ Coverage   73.82%   73.84%   +0.02%     
==========================================
  Files         172      173       +1     
  Lines       22209    22239      +30     
==========================================
+ Hits        16395    16423      +28     
- Misses       4672     4673       +1     
- Partials     1142     1143       +1     
Flag Coverage Δ
experimental-codecov 73.81% <66.66%> (-0.01%) ⬇️
stable-codecov 67.01% <66.66%> (?)

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

Copy link
Contributor

@technicallyty technicallyty left a comment

Choose a reason for hiding this comment

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

lgtm, smol nits

Comment on lines 24 to 27
string class_id = 2;
string class_id = 3;

// issuer is the issuer of the credit batches for this project.
string issuer = 3;
// admin is the admin of the project.
string admin = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe we should keep the field order? 1,2,3...,n

Copy link
Member Author

Choose a reason for hiding this comment

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

We have not used ecocredit v1 in a release and this is more consistent with project info.

Copy link
Contributor

Choose a reason for hiding this comment

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

i meant to just move string admin = 2; below string project_id = 1;instead of after string class_id = 3; which currently makes it 1,3,2

Copy link
Member Author

Choose a reason for hiding this comment

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

Whoops... That was the intention it seems but somehow only half complete.

Copy link
Member Author

Choose a reason for hiding this comment

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

x/ecocredit/server/core/create_project.go Outdated Show resolved Hide resolved
@ryanchristo ryanchristo merged commit 53425d5 into master Mar 16, 2022
@ryanchristo ryanchristo deleted the ryan/884-project-admin branch March 16, 2022 16:51
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.

Add admin message field to project info
3 participants