Flipper: Docs: Poor documentation over Sandbox feature

Created on 3 Sep 2019  路  5Comments  路  Source: facebook/flipper

First of all, great tool.
The potential here is amazing.

Secondly, it can be totally my lack of attention but it is not clear at all how to set up a SandboxFlipperPluginStrategy.

What is expected to be the keys and values in getKnownSandboxes()'s map and what does the method setSandbox()?

Stale documentation

Most helpful comment

Also it looks like the Sandbox plugin is disabled by GK. Is that intentional?

image

All 5 comments

Also it looks like the Sandbox plugin is disabled by GK. Is that intentional?

image

From looking at the code, I believe you just need to implement a SandboxFlipperPluginStrategy, and pass it in, when constructing the plugin.

setSandbox should override the sandbox within your app. It will be called on your strategy when the user enters a string as their sandbox. What this does is technically up to the implementation, but it could for example, set the base url for outgoing requests from the app to staging.myapp.com for example. How this is done will depends on your app.

getKnownSandboxes should return a map of predefined options, keyed by name. For example, you could provide this as a map:

{
test: test.myapp.com,
staging: staging.myapp.com,
production: prod.myapp.com
}

to let the user select from a list without typing.

Feel free to update the docs:
https://github.com/facebook/flipper/blob/master/docs/setup/sandbox-plugin.md

I came here to ask what the Sandbox plugin does. Docs are pretty sparse. Happy to update the docs if you tell me what to say 馃槃

https://fbflipper.com/docs/setup/sandbox-plugin.html

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings