Giter Club home page Giter Club logo

rox-php's People

Contributors

agentgonzo avatar andy-a-o avatar asafrollout avatar dbhynds avatar ekeren avatar erictendian avatar leobeal-cpi avatar watercycle avatar zlayaavocado avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rox-php's Issues

[Bug] Cannot get a string value that represents an encoded JSON object

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.

Add state just once

  • We will make sure that the docs state that you must do Rox::register and Rox.setCustomProperty before doing Rox.setup
  • Dynamic api will not not update the flags on the dashboard
  • send state only on the setup command and eliminate all the code that does it differently

Breaking change in 5.0.3

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.

PHP 8 support

Tests are failing currently if running them by PHP v8 interpreter.

Need to add PHP v8 support + setup automatic test run for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.