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

Adds non-verified option to the payment page #8394

Merged
merged 1 commit into from
Apr 24, 2017

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Apr 19, 2017

  • 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).

Resolves #8231

Auditors: @mrose17 @bsclifton

Test Plan

  • go to payments page and enable payments
  • go to some verified and non-verified sites (brianbondy.com is verified)
  • go to payments page
  • click on advance settings
  • disabled option "Allow contributions to non-verified sites"
  • all non-verified sites should be hidden from a table

Copy link
Member

@mrose17 mrose17 left a comment

Choose a reason for hiding this comment

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

doesn't there need to br something added to ledger.js to make use of this option???

@NejcZdovc
Copy link
Contributor Author

@mrose17, these PR is not yet completed, still have work-in-progress label

@NejcZdovc NejcZdovc force-pushed the feature/#8231-verified branch from e4be1d3 to 229de66 Compare April 21, 2017 15:47
Copy link
Member

@mrose17 mrose17 left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -149,6 +149,7 @@ module.exports = {
'bookmarks.toolbar.showOnlyFavicon': false,
'payments.enabled': false,
'payments.notifications': false,
'payments.non-verified-publishers': true,
Copy link
Member

Choose a reason for hiding this comment

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

Could you update this to be more descriptive? Maybe payments.allow-non-verified-publishers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -55,6 +55,7 @@ const settings = {
PAYMENTS_NOTIFICATION_RECONCILE_SOON_TIMESTAMP: 'notification-reconcile-soon-timestamp',
PAYMENTS_NOTIFICATION_TRY_PAYMENTS_DISMISSED: 'payments.notificationTryPaymentsDismissed',
PAYMENTS_CONTRIBUTION_AMOUNT: 'payments.contribution-amount',
PAYMENTS_NON_VERIFIED: 'payments.non-verified-publishers',
Copy link
Member

Choose a reason for hiding this comment

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

same as above comment 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Resolves brave#8231

Auditors: @mrose17 @bsclifton

Test Plan:
- go to payments page
- click on advance settings
- disabled option "Allow contributions to non-verified sites"
- all non-verified sites should be hidden from a table
@NejcZdovc NejcZdovc force-pushed the feature/#8231-verified branch from 798f177 to 462d4aa Compare April 24, 2017 06:56
@NejcZdovc NejcZdovc requested a review from bsclifton April 24, 2017 06:57
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 and also ran the webdriver test. Changes work as expected. Great job 😄

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.

4 participants