Skip to content

Conversation

JZDesign
Copy link
Contributor

@JZDesign JZDesign commented Aug 28, 2025

Checklist

  • If applicable, unit tests

Motivation

PR #2623 merged a day too soon. After Josh got back from a long weekend we had more time to chat. There are existing patterns in place to keep the json flat. Fortunately, if the code from that PR merges to production it will fallback to a Fade transition which is what we need for the immediate ask anyway. We also hashed out some details on what is optional.

Description

Flattened the json from :

"type": {
    "type": "some_type",
    "maybe_never_would_add_another_field": "some_value"
 }

to:

"type": "some_type",
"maybe_never_would_add_another_field": "some_value"

and made the int values required values in the json

@JZDesign JZDesign requested a review from tonidero August 28, 2025 12:53
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Right. I think this makes sense... Just a question about what would the old implementation fallback to

@JZDesign JZDesign enabled auto-merge August 28, 2025 17:19
@JZDesign JZDesign added this pull request to the merge queue Aug 28, 2025
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.52%. Comparing base (0ab1547) to head (5505b64).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2641      +/-   ##
==========================================
+ Coverage   78.47%   78.52%   +0.04%     
==========================================
  Files         305      304       -1     
  Lines       11354    11347       -7     
  Branches     1576     1576              
==========================================
  Hits         8910     8910              
+ Misses       1753     1747       -6     
+ Partials      691      690       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Merged via the queue into main with commit 7c41870 Aug 28, 2025
21 checks passed
@JZDesign JZDesign deleted the jzdesign/mon-1193.2.after-chatting-more-thoroughly-with-josh branch August 28, 2025 20:04
github-merge-queue bot pushed a commit that referenced this pull request Sep 3, 2025
**This is an automatic release.**

## RevenueCat SDK
### ✨ New Features
* Add preferred UI locale override for RevenueCat UI components (#2620)
via Josh Holtz (@joshdholtz)

### 🔄 Other Changes
* Improve thread safety of setting paywalls preferred locale (#2655) via
Josh Holtz (@joshdholtz)
* Remove validation for no packages on paywalls (#2653) via Josh Holtz
(@joshdholtz)
* Video Component Models (dark code) (#2646) via Jacob Rakidzich
(@JZDesign)
* [EXTERNAL] docs: fixed a typo on documentation about
`Purchases.awaitPurchase` by @matteinn in #2593 (#2651) via Toni Rico
(@tonidero)
* Add warning with 9.x issues to all versions since 9.0.0 in CHANGELOG
(#2650) via Toni Rico (@tonidero)
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2647) via RevenueCat Git Bot (@RCGitBot)
* Delete CLAUDE.md (#2648) via Cesar de la Vega (@vegaro)
* MON-1193 flatten Transition JSON structure after chatting more
thoroughly with team (#2641) via Jacob Rakidzich (@JZDesign)

---------

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Co-authored-by: Josh Holtz <me@joshholtz.com>
tonidero pushed a commit that referenced this pull request Sep 10, 2025
…ghly with team (#2641)

<!-- Thank you for contributing to Purchases! Before pressing the
"Create Pull Request" button, please provide the following: -->

- [x] If applicable, unit tests

PR #2623 merged a day too soon. After Josh got back from a long weekend
we had more time to chat. There are existing patterns in place to keep
the json flat. Fortunately, if the code from that PR merges to
production it will fallback to a Fade transition which is what we need
for the immediate ask anyway. We also hashed out some details on what is
optional.

Flattened the json from :

```JSON
"type": {
    "type": "some_type",
    "maybe_never_would_add_another_field": "some_value"
 }
```

to:

```JSON
"type": "some_type",
"maybe_never_would_add_another_field": "some_value"
```

and made the int values required values in the json

<!-- Describe your changes in detail -->
<!-- Please describe in detail how you tested your changes -->
@tonidero tonidero mentioned this pull request Sep 10, 2025
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.

2 participants