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

Capability Fixes #7918

Merged
merged 8 commits into from
Nov 13, 2020
Merged

Capability Fixes #7918

merged 8 commits into from
Nov 13, 2020

Conversation

AdityaSripal
Copy link
Member

@AdityaSripal AdityaSripal commented Nov 12, 2020

Description

closes: #7907
closes: #7909


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.
  • Code follows the module structure standards.
  • 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

@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #7918 (aefe607) into master (15103b6) will increase coverage by 0.00%.
The diff coverage is 66.66%.

@@           Coverage Diff           @@
##           master    #7918   +/-   ##
=======================================
  Coverage   54.15%   54.16%           
=======================================
  Files         612      612           
  Lines       38980    38998   +18     
=======================================
+ Hits        21109    21122   +13     
- Misses      15701    15703    +2     
- Partials     2170     2173    +3     

x/capability/keeper/keeper.go Outdated Show resolved Hide resolved
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK. Changelog entries are needed for the breaking API changes.

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

ACK

@fedekunze fedekunze added A:automerge Automatically merge PR once all prerequisites pass. and removed A:automerge Automatically merge PR once all prerequisites pass. labels Nov 12, 2020
@AdityaSripal AdityaSripal added the A:automerge Automatically merge PR once all prerequisites pass. label Nov 13, 2020
@mergify mergify bot merged commit 4b529a4 into master Nov 13, 2020
@mergify mergify bot deleted the aditya/cap-fixes branch November 13, 2020 11:14
return nil, false
}

cap := sk.capMap[index]
if cap == nil {
// delete key from store to remove unnecessary mapping
Copy link
Member

Choose a reason for hiding this comment

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

Was there a reason this was expected to happen before?

Copy link
Contributor

Choose a reason for hiding this comment

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

As far as we can tell, no. Maybe some prior bug which has since been fixed.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, afaik this should never happen. I think it used to just ignore the inconsistency and move on, now we panic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:x/capability T:Bug
Projects
None yet
6 participants