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

Reaction registration implementation #120

Merged
merged 26 commits into from
Mar 27, 2020

Conversation

leobragaz
Copy link
Contributor

@leobragaz leobragaz commented Mar 17, 2020

Description

This PR added the possibility to register a reaction to use it later when reacting to a post.
Closes #94

Checklist

  • Targeted PR against correct branch.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit tests.
  • Wrote integration tests (simulation & CLI).
  • Updated the documentation.
  • Added an entry to the CHANGELOG.md file.
  • Re-reviewed Files changed in the Github PR explorer.

Bragaz added 4 commits March 17, 2020 11:28
…dency between

reactions and post modules
…reactions-registration-limiting-impl

� Conflicts:
�	x/posts/alias.go
�	x/posts/internal/types/genesis.go
@leobragaz leobragaz added x/posts Post module kind/new-feature Propose the addition of a new feature that does not yet exist Status:WIP labels Mar 17, 2020
@leobragaz leobragaz self-assigned this Mar 17, 2020
@leobragaz leobragaz added this to the v0.4.0 milestone Mar 25, 2020
Copy link
Contributor

@RiccardoM RiccardoM left a comment

Choose a reason for hiding this comment

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

LGTM overall. There are only some small refactoring errors here and there, and a couple of tests I would like to see being added to make sure that emojis are properly supported

docs/developers/msgs/register-reaction.md Outdated Show resolved Hide resolved
docs/developers/msgs/register-reaction.md Outdated Show resolved Hide resolved
docs/developers/msgs/register-reaction.md Outdated Show resolved Hide resolved
docs/developers/msgs/register-reaction.md Outdated Show resolved Hide resolved
docs/developers/msgs/add-post-reaction.md Outdated Show resolved Hide resolved
x/posts/legacy/v0.2.0/types.go Outdated Show resolved Hide resolved
x/posts/legacy/v0.3.0/types.go Outdated Show resolved Hide resolved
x/posts/legacy/v0.3.0/types.go Outdated Show resolved Hide resolved
x/posts/legacy/v0.3.0/types.go Outdated Show resolved Hide resolved
@@ -508,3 +522,54 @@ func TestDesmosCLIPostsReactions(t *testing.T) {

f.Cleanup()
}

func TestDesmosCLIRegisterReaction(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have a test using an emoji as value such as 🎉 ?

Bragaz and others added 4 commits March 26, 2020 13:09
…limiting-impl' into leonardo/reactions-registration-limiting-impl

# Conflicts:
#	docs/types/reaction.md
…reactions-registration-limiting-impl

� Conflicts:
�	CHANGELOG.md
�	cli_test/cli_posts_test.go
CHANGELOG.md Outdated Show resolved Hide resolved
x/posts/internal/keeper/keeper_reactions.go Outdated Show resolved Hide resolved
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
Bragaz added 2 commits March 26, 2020 16:28
…limiting-impl' into leonardo/reactions-registration-limiting-impl
@codecov-io
Copy link

Codecov Report

Merging #120 into master will increase coverage by 1.11%.
The diff coverage is 91.98%.

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
+ Coverage   82.56%   83.67%   +1.11%     
==========================================
  Files          34       39       +5     
  Lines        1537     1654     +117     
==========================================
+ Hits         1269     1384     +115     
- Misses        238      239       +1     
- Partials       30       31       +1     

Copy link
Contributor

@RiccardoM RiccardoM left a comment

Choose a reason for hiding this comment

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

LGTM

@RiccardoM RiccardoM merged commit b567263 into master Mar 27, 2020
@RiccardoM RiccardoM deleted the leonardo/reactions-registration-limiting-impl branch March 30, 2020 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/new-feature Propose the addition of a new feature that does not yet exist x/posts Post module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post reaction registration and limiting
4 participants