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

[Brave News] Don't use the |is_enabled| flag when determining if the publisher is subscribed. #15963

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

fallaciousreasoning
Copy link
Contributor

Resolves brave/brave-browser#26324

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

@petemill
Copy link
Member

Looks like you just need to run npm run format to fix the lint issue in CI

@fallaciousreasoning fallaciousreasoning merged commit 10a5691 into master Nov 16, 2022
@fallaciousreasoning fallaciousreasoning deleted the bn-subscribe-defaults branch November 16, 2022 23:55
@github-actions github-actions bot added this to the 1.47.x - Nightly milestone Nov 16, 2022
petemill pushed a commit that referenced this pull request Nov 18, 2022
@stephendonner
Copy link
Contributor

@petemill @fallaciousreasoning what's the test plan for this? My original steps don't readily apply, since we're now enabled with Brave News V2.

@petemill
Copy link
Member

@stephendonner I'm actually quite confused by the test steps in brave/brave-browser#26324. At no point to they instruct to follow The Atlantic, so I'm not sure how disabling the v2 flag will help. If it's useful, it can be disabled at launch with --disable-features=BraveNewsV2

@fallaciousreasoning
Copy link
Contributor Author

Right, yeah:

  1. On a new profile (with the subscribe button enabled, and Brave News opted in)
  2. Following only the top sources channel
  3. Navigate the theatlantic.com
  4. The atlantic should NOT show as followed in the Brave News button

(previously it was showing up as followed).

@stephendonner
Copy link
Contributor

Verified PASSED using

Brave 1.47.91 Chromium: 108.0.5359.48 (Official Build) nightly (x86_64)
Revision 18ceeca0d99318e70c00d2e04d88aa55488b5c63-refs/branch-heads/5359@{#854}
OS macOS Version 11.7.1 (Build 20G918)

Steps:

  1. install 1.47.91
  2. launch Brave
  3. open brave://flags
  4. set brave://flags/#brave-news-subscribe-button to Enabled
  5. clicked Relaunch
  6. opened a new-tab page
  7. clicked on Customize
  8. clicked on Brave News
  9. clicked on Turn on Brave News
  10. confirmed I was default following Top Sources, in the Following column
  11. loaded theatlantic.com
  12. clicked on the Manage Subscriptions button
  13. examined the The Atlantic and Best of the Atlantic feeds' statuses

Confirmed neither The Atlantic nor Best of the Atlantic were Followed/shown as Followed

example example (issue brave/brave-browser#26262) example example
Screen Shot 2022-11-21 at 12 21 36 PM Screen Shot 2022-11-21 at 12 22 36 PM Screen Shot 2022-11-21 at 12 25 10 PM Screen Shot 2022-11-21 at 12 25 23 PM

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.

Pre-followed sources should reflect Followed status in the Customize dialog
3 participants