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(ecocredit/core): add issuance date to BatchInfo #936

Merged
merged 5 commits into from
Mar 27, 2022

Conversation

technicallyty
Copy link
Contributor

@technicallyty technicallyty commented Mar 25, 2022

Description

  • adds issuance_date as a field to both EventCreateBatch and BatchInfo

Closes: #680


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 25, 2022

Codecov Report

Merging #936 (9112263) into master (53ac77b) will decrease coverage by 0.80%.
The diff coverage is 100.00%.

❗ Current head 9112263 differs from pull request most recent head d566321. Consider uploading reports for the commit d566321 to get more accurate results

@@            Coverage Diff             @@
##           master     #936      +/-   ##
==========================================
- Coverage   73.22%   72.42%   -0.81%     
==========================================
  Files         196      194       -2     
  Lines       23115    22895     -220     
==========================================
- Hits        16927    16582     -345     
- Misses       4904     5062     +158     
+ Partials     1284     1251      -33     
Flag Coverage Δ
experimental-codecov 72.22% <100.00%> (-0.92%) ⬇️
stable-codecov 65.58% <100.00%> (-2.47%) ⬇️

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

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. I think we can simplify the proto comments. Pre-approving.

proto/regen/ecocredit/v1/events.proto Outdated Show resolved Hide resolved
proto/regen/ecocredit/v1/state.proto Outdated Show resolved Hide resolved
@@ -132,6 +132,9 @@ message BatchInfo {
// end_date is the end of the period during which this credit batch was
// quantified and verified.
google.protobuf.Timestamp end_date = 6;

// issuance_date is the timestamp when the credit batch was issued.
google.protobuf.Timestamp issuance_date = 7;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a state-breaking change. Let's add an entry for this in #678.

@ryanchristo ryanchristo merged commit 1318d53 into master Mar 27, 2022
@ryanchristo ryanchristo deleted the ty/680-batch_issuance_date branch March 27, 2022 16:03
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 issuance date to Credit Batch data model
3 participants