rollout / rox-php Goto Github PK
View Code? Open in Web Editor NEWRox SDK for PHP
License: Other
Rox SDK for PHP
License: Other
I have validated this will multiple payloads, and the only one that won't fail is an empty object.
Input | Success |
---|---|
{} |
Yes |
{"a":"b"} |
No |
{"name":"tcarrio"} |
No |
The entirety of the string has the quotations escaped, and the local Roxy server returns the values as you would expect to see them for it to be resolved correctly as a string value.
Example response JSON from the /flags
endpoint (showing only the flag in question):
{
"flagName": "dev.openfeature.object_flag",
"expression": "\"{\"name\":\"OpenFeature\",\"version\":\"1.0.0\"}\"",
"lastModifiedDate": "2022-11-17T00:50:01.549Z"
}
This likely has something to do with the string processing post response. With the empty object example I do resolve the value and can json_decode
into an array.
According to Guzzle docs, the default timeout is 0, which will wait indefinitely for the response.
Since it seems no timeout is being set here, in case CloudBees call times out, the caller will hang forever instead of assuming the default value.
Between versions 5.0.2 and 5.0.3, this library updated the dependency for kevinrob/guzzle-cache-middleware
from ^3.2
to ^4.0
. See: 5.0.2...5.0.3#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R37
The upgrade to v4 contains backwards-incompatible changes that require the cache to be cleared at the time of deployment as described here: Kevinrob/guzzle-cache-middleware#172. As mentioned in the comments, "it's especially... dangerous, because more often it may affect production than test or dev environments."
Use caution when upgrading to version v5.0.3, as you must clear the cache after implementing these changes.
Tests are failing currently if running them by PHP v8 interpreter.
Need to add PHP v8 support + setup automatic test run for it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.