Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Conversation

@gabrielluong
Copy link
Member


Fixes #7441

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues closed by this pull request are added to the milestone of the version currently in development.
  • Breaking Changes: If this is a breaking change, please push a draft PR on Reference Browser to address the breaking issues.

@gabrielluong gabrielluong requested a review from jonalmeida June 19, 2020 02:03
@codecov
Copy link

codecov bot commented Jun 19, 2020

Codecov Report

Merging #7442 into master will increase coverage by 0.69%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7442      +/-   ##
============================================
+ Coverage     77.57%   78.26%   +0.69%     
+ Complexity     5147     4938     -209     
============================================
  Files           689      661      -28     
  Lines         25018    23150    -1868     
  Branches       3700     3446     -254     
============================================
- Hits          19408    18119    -1289     
+ Misses         4089     3603     -486     
+ Partials       1521     1428      -93     
Impacted Files Coverage Δ Complexity Δ
...la/components/feature/tabs/tabstray/TabsFeature.kt 95.00% <ø> (+4.09%) 7.00 <0.00> (ø)
...ponents/feature/tabs/tabstray/TabsTrayPresenter.kt 93.93% <ø> (-0.18%) 9.00 <0.00> (-1.00)
...feature/customtabs/store/CustomTabsServiceStore.kt 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...ponents/browser/thumbnails/ThumbnailsMiddleware.kt 80.00% <0.00%> (-13.34%) 2.00% <0.00%> (-6.00%)
...onents/feature/customtabs/verify/OriginVerifier.kt 60.00% <0.00%> (-3.16%) 5.00% <0.00%> (ø%)
...la/components/browser/menu/BrowserMenuHighlight.kt 94.73% <0.00%> (-1.70%) 0.00% <0.00%> (ø%)
...feature/privatemode/feature/SecureWindowFeature.kt 88.88% <0.00%> (-1.12%) 3.00% <0.00%> (-1.00%)
...onents/feature/contextmenu/ContextMenuCandidate.kt 90.82% <0.00%> (-0.35%) 5.00% <0.00%> (ø%)
...ava/mozilla/components/ui/tabcounter/TabCounter.kt 79.83% <0.00%> (-0.33%) 13.00% <0.00%> (-1.00%)
...ts/service/digitalassetlinks/local/StatementApi.kt 92.45% <0.00%> (-0.28%) 13.00% <0.00%> (ø%)
... and 46 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87fe549...db4b0da. Read the comment docs.

@jonalmeida
Copy link
Contributor

Thanks for the cleanup! I think there's a mistake on my part here: instead of removing the use case, in my PR that added the ThumbnailLoader, I should have used the use case instead. This would have gotten rid of that weird if-else check that we added into the Fenix TabsTrayViewHolder.

I like the idea of having use cases where it makes sense, but I'm open to alternatives too!

@gabrielluong
Copy link
Member Author

Thanks for the cleanup! I think there's a mistake on my part here: instead of removing the use case, in my PR that added the ThumbnailLoader, I should have used the use case instead. This would have gotten rid of that weird if-else check that we added into the Fenix TabsTrayViewHolder.

I like the idea of having use cases where it makes sense, but I'm open to alternatives too!

Do you mean you want to wrap ThumbnailLoader into the ThumbnailUseCase constructor and have the use case functions call load?

Copy link
Contributor

@jonalmeida jonalmeida left a comment

Choose a reason for hiding this comment

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

Let's go ahead and remove this, we can always bring it back if we decide otherwise.

@gabrielluong Don't forget to submit a Fenix PR for this breaking API when you land this.

@jonalmeida jonalmeida self-assigned this Jun 23, 2020
@gabrielluong
Copy link
Member Author

bors r=jonalmeida

bors bot pushed a commit that referenced this pull request Jun 24, 2020
7442: Issue #7441: Remove unused ThumbnailsUseCase r=jonalmeida a=gabrielluong



Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
@bors
Copy link

bors bot commented Jun 24, 2020

Timed out.

bors bot pushed a commit that referenced this pull request Jun 24, 2020
7442: Issue #7441: Remove unused ThumbnailsUseCase r=jonalmeida a=gabrielluong



Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
@bors
Copy link

bors bot commented Jun 24, 2020

Timed out.

@gabrielluong gabrielluong reopened this Jun 24, 2020
@jonalmeida jonalmeida added the 🛬 needs landing PRs that are ready to land label Jun 24, 2020
@pocmo
Copy link
Contributor

pocmo commented Jun 25, 2020

bors r+

@bors
Copy link

bors bot commented Jun 25, 2020

Build succeeded:

@bors bors bot merged commit d51b5b2 into mozilla-mobile:master Jun 25, 2020
@gabrielluong gabrielluong deleted the 7441 branch June 25, 2020 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🛬 needs landing PRs that are ready to land

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused ThumbnailsUseCase

3 participants