Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

don’t use sync ipc for publisher info #9472

Merged
merged 1 commit into from
Jun 29, 2017
Merged

don’t use sync ipc for publisher info #9472

merged 1 commit into from
Jun 29, 2017

Conversation

bridiver
Copy link
Collaborator

@bridiver bridiver commented Jun 14, 2017

Submitter Checklist:

the diff is mostly an indenting change from wrapping in ipcRenderer.once

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Test Plan:

  1. Enable ledger
  2. Visit some pubs long enough to add them
  3. Pubs should show in ledger prefs

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@bridiver bridiver added the perf label Jun 14, 2017
@bridiver bridiver self-assigned this Jun 14, 2017
@bridiver bridiver requested review from mrose17 and diracdeltas June 14, 2017 21:31
@bridiver bridiver added this to the 0.18.x (Developer Channel) milestone Jun 14, 2017
@bsclifton bsclifton requested a review from NejcZdovc June 15, 2017 16:47
@bsclifton
Copy link
Member

@NejcZdovc would you be able to check this one out? 😄

@mrose17 mrose17 removed their request for review June 15, 2017 16:48
@bridiver bridiver requested a review from ayumi June 15, 2017 20:12
@diracdeltas diracdeltas removed their request for review June 19, 2017 22:32
@bridiver bridiver requested a review from diracdeltas June 19, 2017 23:08
@@ -135,6 +135,7 @@ const messages = {
// Ledger
LEDGER_PAYMENTS_PRESENT: _,
LEDGER_PUBLISHER: _,
Copy link
Member

Choose a reason for hiding this comment

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

i think you can remove this message and its handler in app/ledger.js

@diracdeltas
Copy link
Member

seems like a bunch of payments tests are failing: https://travis-ci.org/brave/browser-laptop/jobs/243018061

i'm not really familiar with how this code works, so defer to @NejcZdovc

@bsclifton
Copy link
Member

I just rebased- will watch tests and check out soon 😄

@bridiver
Copy link
Collaborator Author

@diracdeltas @bsclifton ledger appears to be broken in master. With a fresh profile I can't initialize ledger, but the content script appears to be functioning correctly in this PR and master

@bridiver
Copy link
Collaborator Author

actually it works now, I think my node modules were out-of-date

@bridiver
Copy link
Collaborator Author

there was a variable name capitalization mismatch. Ledger tests are working now

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

@bridiver if we want to manually test, can you create an issue for this (and then edit commit to reference it?). If we don't need manual testing, let's add an automated test 😄

@bridiver
Copy link
Collaborator Author

there are automated tests. This doesn't add any new functionality

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

Manually tested, works great 😄 The advanced payment tests are failing, but that isn't related. The regular payment tests all pass 😄 👍 ++

@bsclifton bsclifton merged commit 1769230 into master Jun 29, 2017
@bsclifton bsclifton deleted the ledger-sync-ipc branch June 29, 2017 22:06
bsclifton added a commit that referenced this pull request Jun 29, 2017
don’t use sync ipc for publisher info
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants