Skip to content

ProductFetcherSK1: enable TimingUtil log#3327

Merged
NachoSoto merged 1 commit into
mainfrom
sk1-product-fetcher-timing
Oct 25, 2023
Merged

ProductFetcherSK1: enable TimingUtil log#3327
NachoSoto merged 1 commit into
mainfrom
sk1-product-fetcher-timing

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

ProductFetcherSK1 had 2 public methods for fetching products: products(withIdentifiers:completion:) and sk1Products(withIdentifiers:completion:).
Only one of them was using TimingUtil to log slow requests, and that one happened to not be used by ProductsManager, which means that we weren't getting these logs.

This is evident in RevenueCat/react-native-purchases#755. With this change, we'll now be able to see how long the product request took.

@NachoSoto NachoSoto requested a review from a team October 23, 2023 19:05
}
}

private func sk1Products(withIdentifiers identifiers: Set<String>,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is private now, so the other method is the only public one.

`ProductFetcherSK1` had 2 public methods for fetching products: `products(withIdentifiers:completion:)` and `sk1Products(withIdentifiers:completion:)`.
Only one of them was using `TimingUtil` to log slow requests, and that one happened to not be used by `ProductsManager`, which means that we weren't getting these logs.

This is evident in RevenueCat/react-native-purchases#755. With this change, we'll now be able to see how long the product request took.
@NachoSoto NachoSoto force-pushed the sk1-product-fetcher-timing branch from 9400545 to 03ec1bd Compare October 24, 2023 18:55
@codecov

codecov Bot commented Oct 24, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.98%. Comparing base (0aa950a) to head (03ec1bd).
Report is 503 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3327      +/-   ##
==========================================
+ Coverage   85.96%   85.98%   +0.02%     
==========================================
  Files         237      237              
  Lines       17086    17086              
==========================================
+ Hits        14688    14692       +4     
+ Misses       2398     2394       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NachoSoto NachoSoto merged commit e2f7233 into main Oct 25, 2023
@NachoSoto NachoSoto deleted the sk1-product-fetcher-timing branch October 25, 2023 14:33
This was referenced Oct 25, 2023
NachoSoto added a commit that referenced this pull request Oct 26, 2023
**This is an automatic release.**

### New Features
* `PaywallColor`: change visibility of `Color.init(light:dark:)` to
`private` (#3345) via NachoSoto (@NachoSoto)
### RevenueCatUI
* `Paywalls`: new `.onPurchaseCompleted` overload with
`StoreTransaction` (#3323) via NachoSoto (@NachoSoto)
* `Paywalls`: finished template 5 (#3340) via NachoSoto (@NachoSoto)
* `Paywalls`: new `onDismiss` parameter for `presentPaywallIfNeeded`
(#3342) via NachoSoto (@NachoSoto)
* `Paywalls`: disable shimmering on footer loading view (#3324) via
NachoSoto (@NachoSoto)
### Bugfixes
* `ErrorUtils.purchasesError(withSKError:)`: handle `URLError`s (#3346)
via NachoSoto (@NachoSoto)
### Other Changes
* `Paywalls`: add identifier to events (#3332) via Josh Holtz
(@joshdholtz)
* `Paywalls`: create new event session when paywall appears (#3330) via
Josh Holtz (@joshdholtz)
* `HTTPClient`: verbose logs for request IDs (#3320) via NachoSoto
(@NachoSoto)
* `Paywalls Tester`: fix `macOS` build (#3341) via NachoSoto
(@NachoSoto)
* `ProductFetcherSK1`: enable `TimingUtil` log (#3327) via NachoSoto
(@NachoSoto)
* `Paywall Tester`: fixed paywall presentation (#3339) via NachoSoto
(@NachoSoto)
* `CI`: replace Carthage build jobs with `xcodebuild` (#3338) via
NachoSoto (@NachoSoto)
* `Integration Tests`: use repetition count from test plan (#3329) via
NachoSoto (@NachoSoto)
* `Integration Tests`: new logs for troubleshooting flaky tests (#3328)
via NachoSoto (@NachoSoto)
* `CircleCI`: change iOS 17 job to use M1 Large resource (#3322) via
NachoSoto (@NachoSoto)
* `Paywalls Tester`: fix release build (#3321) via NachoSoto
(@NachoSoto)
* `Paywalls`: enable all iOS 17 tests (#3331) via NachoSoto (@NachoSoto)
* `CI`: added workaround for Snapshots in `Xcode Cloud` (#2857) via
NachoSoto (@NachoSoto)
* `StoreKit 1`: disabled `finishTransactions` log on observer mode
(#3314) via NachoSoto (@NachoSoto)

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants