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

Enable complete concurrency on PocketKit #2 #1021

Closed
wants to merge 29 commits into from

Conversation

Gio2018
Copy link
Collaborator

@Gio2018 Gio2018 commented Jun 5, 2024

Goal

  • Continue addressing Swift 6 warning on PocketKit, after enabling complete concurrency

Test Steps

  • Test everything as much as you can

@Gio2018 Gio2018 added this to the 8.11.0 milestone Jun 5, 2024
@Gio2018 Gio2018 self-assigned this Jun 5, 2024
@pocket-ci
Copy link
Contributor

pocket-ci commented Jun 5, 2024

Messages
📖 No SwiftLint violations! 🎉
📖 Project coverage: 37.02%
📖 Checking XCode Environment Variables
📖 Edited 46 files
📖 Created 2 files

Analytics: Coverage: 59.31

File Coverage
PocketSnowplowTracker.swift 96.25%

PocketKit: Coverage: 62.72

File Coverage
CollectionViewController.swift 78.9%
HomeViewController.swift 69.61%
VimeoComponentCell.swift 0.0% ⚠️
SectionHeaderView.swift 94.94%
HomeViewModel.swift 65.11%
VimeoComponentPresenter.swift 0.0% ⚠️
PocketAppDelegate.swift 86.59%
SendableItemAction.swift 38.25% ⚠️
CollectionStoryViewModel.swift 71.13%
CollectionViewModel.swift 83.97%
SavedItemViewModel.swift 42.88% ⚠️
PremiumUpgradeView.swift 89.49%
ImageComponentCell.swift 75.18%
SavesContainerViewController.swift 74.41%
RecommendableItemViewModel.swift 81.95%
MainView.swift 98.69%
UIApplication+BackgroundTaskManager.swift 100.0%

SharedPocketKit: Coverage: 62.45

File Coverage
ExtensionContext.swift 0.0% ⚠️

Sync: Coverage: 71.93

File Coverage
CollectionService.swift 84.62%
SyncOperationFactory.swift 70.37%
NetworkPathMonitor.swift 19.05% ⚠️
AsyncOperation.swift 64.86%
OEmbedService.swift 92.86%
PocketSource.swift 58.33%
FeatureFlagLoadingService.swift 20.0% ⚠️
ApolloClient+Extensions.swift 96.59%
SlateService.swift 86.67%
RetriableOperation.swift 79.2%
UserService.swift 88.89%
OSNotificationCenter.swift 100.0%

SyncTests: Coverage: 22.69

File Coverage
RetriableOperationTests.swift 0.0% ⚠️
CollectionService.swift 30.77% ⚠️
FeatureFlagLoadingService.swift 22.11% ⚠️
UserService.swift 77.78%
SlateService.swift 80.0%
NetworkPathMonitor.swift 19.05% ⚠️
OEmbedService.swift 0.0% ⚠️
SyncOperationFactory.swift 48.15% ⚠️
ApolloClient+Extensions.swift 93.18%
AsyncOperation.swift 64.86%
PocketSource.swift 19.0% ⚠️
RetriableOperation.swift 62.4%
PocketSourceTests.swift 0.0% ⚠️
OSNotificationCenter.swift 40.0% ⚠️

SharedPocketKitTests: Coverage: 28.09

File Coverage
ExtensionContext.swift 0.0% ⚠️

ItemWidgets.appex: Coverage: 0.0

File Coverage
ItemWidgetsListView.swift 0.0% ⚠️
ItemWidgetsView.swift 0.0% ⚠️
ItemWidgetsRow.swift 0.0% ⚠️
ItemWidgetsContainerView.swift 0.0% ⚠️

AnalyticsTests: Coverage: 24.68

File Coverage
PocketSnowplowTracker.swift 92.5%

PocketKitTests: Coverage: 28.15

File Coverage
MainView.swift 99.35%
HomeViewModel.swift 43.91% ⚠️
SavesContainerViewController.swift 51.61%
ExtensionContext.swift 0.0% ⚠️
UIApplication+BackgroundTaskManager.swift 100.0%
RecommendableItemViewModel.swift 0.0% ⚠️
HomeViewController.swift 45.35% ⚠️
CollectionViewController.swift 0.0% ⚠️
CollectionStoryViewModel.swift 0.0% ⚠️
VimeoComponentPresenter.swift 0.0% ⚠️
CollectionViewModel.swift 0.0% ⚠️
PocketAppDelegate.swift 92.68%
PremiumUpgradeView.swift 0.0% ⚠️
SectionHeaderView.swift 94.94%
ImageComponentCell.swift 80.85%
VimeoComponentCell.swift 0.0% ⚠️
SavedItemViewModel.swift 21.04% ⚠️
MockSource.swift 0.0% ⚠️
SendableItemAction.swift 0.0% ⚠️
CollectionViewModelTests.swift 0.0% ⚠️

Generated by 🚫 Danger Swift against 377739c

@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch 3 times, most recently from 6f89992 to 91e696f Compare June 12, 2024 20:52
@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch 2 times, most recently from c44ae0b to 9604d43 Compare June 17, 2024 23:34
@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch 4 times, most recently from c6c0c1a to af326bd Compare July 2, 2024 19:36
@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch 5 times, most recently from 189dee2 to 05f1663 Compare July 12, 2024 20:12
@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch 8 times, most recently from 13aa37a to 7bc3186 Compare July 18, 2024 15:38
@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch 4 times, most recently from 43e3090 to 546a81d Compare July 23, 2024 22:14
…te to WKWebViewDelegate methods, and isolate mutable actions
… ProcessInfo.processInfo since the latter is immutable and concurrency safe
…dLine with ProcessInfo.processInfo since the latter is immutable and concurrency safe
…with ProcessInfo.processInfo since the latter is immutable and concurrency safe
…formance to closure in method perfomrExpiringActivity to match ProcessInfo

v
…tchSavedItemDetails (compared to fetchDetails) where we don't pass the Core Data entity
…asically the Sendable version of ItemAction

* The goal is to incrementally conform to Sendable in the various view models.
* Update CollectionViewModel to use SendableItemAction
* Update CollectionViewModel, publish url values to report an item or a story instead of the Core Data objects
…publish Core Data entities

Also remove the Report action from collection stories
… retroactive to build on the CI

Also remove the Report action from collection stories
…mments

Also remove the Report action from collection stories
@Gio2018 Gio2018 force-pushed the feat/POCKET-10202-pocketkit-concurrency-2 branch from bf4bf98 to 377739c Compare August 20, 2024 05:38
@Gio2018 Gio2018 added the 🛑 DO NOT MERGE Do not merge label Sep 5, 2024
@Gio2018 Gio2018 closed this Oct 16, 2024
@Gio2018 Gio2018 deleted the feat/POCKET-10202-pocketkit-concurrency-2 branch October 16, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants