-
Notifications
You must be signed in to change notification settings - Fork 868
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
Fixes queue not being deleted for split one time tip #5782
Conversation
@@ -74,6 +75,7 @@ void ContributionTip::ServerPublisher( | |||
queue_list.push_back(std::move(publisher)); | |||
|
|||
auto queue = ledger::ContributionQueue::New(); | |||
queue->id = base::GenerateGUID(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normally queue id is generated right before it's inserted in db. And then we select them after the timer passes out of db. Problem is that one time tip skip normal queue flow as we don't want to delay them like AC or monthly tips. Because of that we need to generate id when object is created so that queue can be than deleted correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI failed on test-install |
Verified using
Scenario 1:
Scenario 2: (same funding sources as scenario 1, but recurring tip instead of one time tip)
Scenario 3 (same as scenario 1 but with different funding source):
Scenario 4 (same as scenario 3 but with tipping a non-KYC'd, verified publisher):
|
Resolves brave/brave-browser#10176
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
defined in the issue
Reviewer Checklist:
After-merge Checklist:
changes has landed on.