Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Conversation

@federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Jan 29, 2025

Task/Issue URL: https://app.asana.com/0/1205842942115003/1209234087255045/f
iOS PR: -
macOS PR: -
What kind of version bump will this require?: None

Description:

/subscription API request now can handle both 400 and 404 as a "no subscription available" instead than only 400.

Steps to test this PR:

  1. The code is not used yet in the apps, no test is possible

Internal references:

Software Engineering Expectations
Technical Design Template

federicocappelli and others added 17 commits January 27, 2025 11:47
# Conflicts:
#	Sources/Subscription/API/SubscriptionEndpointServiceV2.swift
#	Sources/Subscription/Flows/AppStore/AppStorePurchaseFlowV2.swift
#	Sources/Subscription/Managers/SubscriptionManagerV2.swift
#	Sources/Subscription/Storage/V2/SubscriptionTokenKeychainStorage+LegacyAuthTokenStoring.swift
#	Sources/Subscription/Storage/V2/SubscriptionTokenKeychainStorageV2.swift
#	Sources/Subscription/SubscriptionFeatureV2.swift
return try await storeAndAddFeaturesIfNeededTo(subscription: subscription)
} else {
if statusCode == .badRequest {
if statusCode == .badRequest || statusCode == .notFound {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the only change in this PR, the rest will disappear as soon the other PRs are merged

Copy link
Contributor

@miasma13 miasma13 left a comment

Choose a reason for hiding this comment

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

LGTM

@federicocappelli federicocappelli merged commit 1ea0abe into main Feb 4, 2025
7 checks passed
@federicocappelli federicocappelli deleted the fcappelli/authv2/api_subscription_404 branch February 4, 2025 02:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants