Repository navigation
fix: rest backports - #397
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #397 +/- ##
============================================
+ Coverage 90.78% 91.83% +1.04%
- Complexity 887 888 +1
============================================
Files 51 37 -14
Lines 3333 2708 -625
Branches 182 0 -182
============================================
- Hits 3026 2487 -539
+ Misses 255 221 -34
+ Partials 52 0 -52
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Kallyan01
approved these changes
Nov 23, 2026
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.
What
x-vip-reached-originheader. Before this only the brand site save did.Remote_Client::request_brand_site()now matches OneDesign's helper. It's public with OneDesign's signature, decodes the brand site's answer once, and gives transport errors and the rejected key error a status. The callers use the decoded answer instead of decoding it themselves.Why
Related Issue(s):
How
Abstract_REST_Controlleradds the header to any 502 or 503 ononesearch/v1whenVIP_GO_APP_ENVIRONMENTis defined, the same way OneDesign does, andset_shared_sites()drops its own check.request_brand_site( $site_data, $route, $method, $body )is OneDesign's. Transport errors get a 502, the rejected key error gets OneDesign's copy and a 400, and an answer that isn't a JSON array is "The brand site returned an invalid response." The callers and the Indexer status use the decoded answer and that copy.AI Disclosure
Backported by Opus 5.5, reviewed by me
Testing Instructions
Screenshots
Additional Info
Checklist