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

Push and kick fix ( Closes #51 ) #56

Merged
merged 3 commits into from
Sep 17, 2018
Merged

Push and kick fix ( Closes #51 ) #56

merged 3 commits into from
Sep 17, 2018

Conversation

gabrielerzinger
Copy link
Contributor

@gabrielerzinger gabrielerzinger commented Sep 14, 2018

This pull request address to issue #51 with a possible solution.

It is a WIP because it still needs to be rebased with master and because it will break compatibility with projects that uses Pitaya, therefore, we need to version it before. Although, i've opened the PR so we can discuss if this solution is appropriate.

@andrehp
Copy link
Contributor

andrehp commented Sep 17, 2018

Please fix the conflicts

kick_test.go Outdated

failedUids, err := SendKickToUsers([]string{table.uid1, table.uid2}, table.frontendType)
assert.Nil(t, failedUids)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you split the test into two?

kick_test.go Outdated
assert.NoError(t, err)
assert.Nil(t, failedUids)
Copy link
Contributor

Choose a reason for hiding this comment

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

Pleas add a test for the error case as well

@andrehp
Copy link
Contributor

andrehp commented Sep 17, 2018

I believe the solution is good and lets the applications check which user ids failed, we just need to fix some things and then we are ready to go.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 511

  • 20 of 25 (80.0%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.02%) to 74.697%

Changes Missing Coverage Covered Lines Changed/Added Lines %
kick.go 10 12 83.33%
push.go 10 13 76.92%
Files with Coverage Reduction New Missed Lines %
push.go 1 86.11%
modules/binary.go 2 73.91%
Totals Coverage Status
Change from base Build 508: 0.02%
Covered Lines: 3885
Relevant Lines: 5201

💛 - Coveralls

@andrehp andrehp changed the title [WIP] Push and kick fix ( Closes #51 ) Push and kick fix ( Closes #51 ) Sep 17, 2018
@andrehp
Copy link
Contributor

andrehp commented Sep 17, 2018

Good job, let's release this as v0.3.0

@andrehp andrehp merged commit eddb2d2 into master Sep 17, 2018
@andrehp andrehp deleted the bugfix/kick branch September 17, 2018 19:38
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.

3 participants