Skip to content

WFL-303 | Add fallback URL for workflows#7008

Merged
RosieWatson merged 3 commits into
mainfrom
rosie/wfl-330-extend-workflows-fallback-to-8-lives-cloudflare-for-full
Jun 16, 2026
Merged

WFL-303 | Add fallback URL for workflows#7008
RosieWatson merged 3 commits into
mainfrom
rosie/wfl-330-extend-workflows-fallback-to-8-lives-cloudflare-for-full

Conversation

@RosieWatson

@RosieWatson RosieWatson commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Motivation

Add Fortress fallback URLs for Workflow endpoints

Android counterpart: RevenueCat/purchases-android#3608


Note

Low Risk
Networking resilience only: new fallback paths and tests; primary URLs and auth/ETag/signature behavior for workflows are unchanged aside from enum case ordering.

Overview
Adds Fortress fallback URLs for getWorkflows and getWorkflow so workflow fetches can retry against api-production.8-lives-cat.io when the primary API is unavailable, matching offerings and product-entitlement mapping.

Fallback paths use the /workflows/v1/workflows shape (list with optional ?type=, single workflow by ID) rather than the primary subscriber-scoped /v1/subscribers/.../workflows routes. Workflow IDs and type values go through the same escaping as other path parameters.

Unit tests cover fallback URL construction, the type query on list, and escaping for workflow IDs with spaces and slashes.

Reviewed by Cursor Bugbot for commit 074da84. Bugbot is set up for automated code reviews on this repo. Configure here.

@RosieWatson RosieWatson requested a review from a team as a code owner June 15, 2026 16:36

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ec9d692. Configure here.

Comment thread Sources/Networking/HTTPClient/HTTPRequestPath.swift Outdated
Comment thread Sources/Networking/HTTPClient/HTTPRequestPath.swift Outdated
Comment thread Tests/UnitTests/Networking/HTTPRequestTests.swift Outdated

@facumenzella facumenzella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sweet 🍬

@RosieWatson RosieWatson merged commit 50a1b54 into main Jun 16, 2026
18 of 20 checks passed
@RosieWatson RosieWatson deleted the rosie/wfl-330-extend-workflows-fallback-to-8-lives-cloudflare-for-full branch June 16, 2026 07:06
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