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

Attribute module simulation support #348

Merged
merged 11 commits into from
Jun 9, 2021
Merged

Conversation

iramiller
Copy link
Member

@iramiller iramiller commented Jun 8, 2021

Description

Adds simulation support to the attribute module

closes: #25


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@iramiller iramiller force-pushed the 25-attribute-simulation-support branch from 7d79e5f to 78f2fda Compare June 8, 2021 17:25
@codecov
Copy link

codecov bot commented Jun 8, 2021

Codecov Report

Merging #348 (47e724b) into main (a125b4a) will increase coverage by 0.33%.
The diff coverage is 74.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
+ Coverage   50.72%   51.06%   +0.33%     
==========================================
  Files         127      129       +2     
  Lines       11445    11574     +129     
==========================================
+ Hits         5806     5910     +104     
- Misses       5068     5087      +19     
- Partials      571      577       +6     
Impacted Files Coverage Δ
internal/antewrapper/tracing_meter.go 100.00% <ø> (ø)
x/attribute/keeper/msg_server.go 1.61% <0.00%> (+0.07%) ⬆️
x/attribute/keeper/keeper.go 73.14% <66.66%> (+2.95%) ⬆️
x/attribute/simulation/operations.go 72.47% <72.47%> (ø)
x/attribute/module.go 53.48% <72.72%> (+6.42%) ⬆️
app/app.go 85.97% <100.00%> (ø)
x/attribute/simulation/decoder.go 100.00% <100.00%> (ø)
x/attribute/types/keys.go 80.76% <100.00%> (+9.93%) ⬆️
... and 1 more

@iramiller iramiller marked this pull request as ready for review June 8, 2021 18:44
dwedul-figure
dwedul-figure previously approved these changes Jun 9, 2021
Copy link
Contributor

@dwedul-figure dwedul-figure left a comment

Choose a reason for hiding this comment

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

LGTM.

This fixes an issue uncovered during simulation testing where deleting an attribute would fail when the name was no longer present for ownership verification.
fix tests for orphan attributes
@iramiller
Copy link
Member Author

Further testing has exposed bugs (can't attribute a root name, and broken tests for deleting orphan attributes).

Copy link
Contributor

@dwedul-figure dwedul-figure left a comment

Choose a reason for hiding this comment

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

LGTM

@iramiller iramiller merged commit 55a98ca into main Jun 9, 2021
@iramiller iramiller deleted the 25-attribute-simulation-support branch June 9, 2021 17:29
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 simulation support to attribute module
2 participants