Skip to content

Tip modifier#37

Closed
sigmike wants to merge 7 commits into
masterfrom
tip_modifier2
Closed

Tip modifier#37
sigmike wants to merge 7 commits into
masterfrom
tip_modifier2

Conversation

@sigmike
Copy link
Copy Markdown
Owner

@sigmike sigmike commented Mar 16, 2014

Same as #34 with a few fixes.

@sigmike
Copy link
Copy Markdown
Owner Author

sigmike commented Mar 16, 2014

Actually it doesn't work when the author of the commit is not based on the latest commit. It may happen for example if there's any commit pushed between the pull request creation and the merge. I thought it would not happen, but in fact it will be quite frequent.
I have illustrated this here:
b42a2be#diff-ca3de760a4fac755a3d431c41a2b6ea4R159
We can't really determine which commit the tip modifier should be applies to.

Comment thread app/models/project.rb
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we don't need this line now! what say?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I think we do. Without this change, if there are 101 commits coming in the same update, 101% of the balance will be given in tips. That won't work.
It's something we should probably fix outside this pull request because it won't be merged.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Oh sorry, you meant the project: line. Indeed, we don't need it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey I think there are some issues in this PR as you already illustrated in the scenarios. So are you going to merge and deploy this?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

No. It won't work. I'm going to try another approach: #44

@sigmike sigmike closed this Mar 24, 2014
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.

2 participants