Skip to content

Fix offering metadata not fulling expanding#1199

Merged
joshdholtz merged 4 commits into
mainfrom
DENG-494-fix-metadata-not-fully-expanding
Aug 16, 2023
Merged

Fix offering metadata not fulling expanding#1199
joshdholtz merged 4 commits into
mainfrom
DENG-494-fix-metadata-not-fully-expanding

Conversation

@joshdholtz

@joshdholtz joshdholtz commented Aug 16, 2023

Copy link
Copy Markdown
Member

Motivation

Fixes DENG-494

Metadata not fully expanding on native Android and hybrids.

Description

  • Added .toMap(deep=true) within JSONObject.toMap() to keep expanding nested objects
  • Added .toMap(deep=true) within JSONArray.toList() to keep expanding nested objects
  • More and deeper nested tests for JSONObject, JSONArray, and offering

@joshdholtz joshdholtz added the pr:fix A bug fix label Aug 16, 2023
@joshdholtz joshdholtz requested a review from a team August 16, 2023 00:49
@codecov

codecov Bot commented Aug 16, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1199 (03d94c7) into main (15cb465) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1199   +/-   ##
=======================================
  Coverage   85.92%   85.92%           
=======================================
  Files         181      181           
  Lines        6217     6217           
  Branches      900      900           
=======================================
  Hits         5342     5342           
  Misses        533      533           
  Partials      342      342           
Files Changed Coverage Δ
.../revenuecat/purchases/utils/JSONArrayExtensions.kt 100.00% <100.00%> (ø)
...revenuecat/purchases/utils/JSONObjectExtensions.kt 85.71% <100.00%> (ø)

@joshdholtz joshdholtz merged commit 275ea23 into main Aug 16, 2023
@joshdholtz joshdholtz deleted the DENG-494-fix-metadata-not-fully-expanding branch August 16, 2023 13:37
@NachoSoto

NachoSoto commented Aug 16, 2023

Copy link
Copy Markdown
Contributor

Reminder to avoid putting internal ticket names in commit titles, those aren't useful in a public repo since nobody else can see them. Having DENG-494 in the release notes in #1201 doesn't add anything to users :)

@joshdholtz

Copy link
Copy Markdown
Member Author

OOOPS... sorry! Too much time in backend 🤦‍♂️

@NachoSoto Can I add a Danger rule in for that? 👀

@joshdholtz joshdholtz changed the title DENG-494: Fix offering metadata not fulling expanding Fix offering metadata not fulling expanding Aug 16, 2023
@NachoSoto

Copy link
Copy Markdown
Contributor

@joshdholtz actually that sounds like a great idea!

tonidero pushed a commit that referenced this pull request Aug 17, 2023
**This is an automatic release.**

### Bugfixes
* Fix offering metadata not fulling expanding (#1199) via Josh Holtz
(@joshdholtz)
### Other Changes
* Fix deploying extra packages (#1200) via Toni Rico (@tonidero)
* Debug view: Support deploying both noop and debug version of
`debugview` package (#1192) via Toni Rico (@tonidero)

---------

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Co-authored-by: Josh Holtz <me@joshholtz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants