Repository navigation
fix(age-rating): show and answer Shared Location and Dating and Relationships - #47
Merged
Merged
Conversation
…ionships App Store Connect's age-rating questionnaire has sharedLocation and datingAndRelationships, but the SDK (4.6.2) doesn't model them, so `asc age-rating get` dropped them and `update` couldn't answer them. The repository now decodes and sends both beside the SDK's own types. - `asc age-rating update --shared-location --dating-and-relationships` - REST PATCH body keys isSharedLocation / isDatingAndRelationships Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
==========================================
- Coverage 83.28% 83.12% -0.17%
==========================================
Files 570 571 +1
Lines 17703 17733 +30
==========================================
- Hits 14744 14740 -4
- Misses 2959 2993 +34
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
App Store Connect's age-rating questionnaire includes Shared Location (
sharedLocation) and Dating and Relationships (datingAndRelationships). The SDK, even the latest 4.6.2, doesn't model them, soasc age-rating getdropped them andasc age-rating updatecouldn't answer them.(
ageRatingOverrideV2was already covered:--age-rating-overridemaps to it.)Fix
AgeRatingDeclaration/AgeRatingDeclarationUpdategainisSharedLocationandisDatingAndRelationships.SDKAgeRatingDeclarationRepositorydecodes its ownAgeRatingDeclarationDocument(the SDK response plus the two answers) and PATCHes a body that merges the SDK's attributes with the two answers. Drop it once the SDK carries them.asc age-rating update --shared-location <bool> --dating-and-relationships <bool>PATCH /api/v1/age-rating/:idacceptsisSharedLocation/isDatingAndRelationships.### Fixed.Verification
swift testpasses (2260 + 821).age-rating geton an answered app showsisSharedLocation/isDatingAndRelationships. A full first save on a new app ("Set Up Age Ratings") succeeded, and a read-back shows both answers.Not in this PR
age-rating updateoutput carries an emptyappInfoId, so itsgetAgeRatingnext-command has no value. This predates the change.🤖 Generated with Claude Code