GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(openfga): remove playground wait from Run and up image to v1.18.0 by selvakannanjr · Pull Request #3745 · testcontainers/testcontainers-go Conversation
Contributor
What does this PR do?Removes the unconditional wait.ForHTTP("/playground") wait strategy from the default Run() function in the OpenFGA module, and updates the default image version referenced in examples and tests from v1.5.0 to v1.18.0. The playground wait strategy is now opt-in: the ExampleRun_connectToPlayground example demonstrates how to enable it explicitly using testcontainers.WithAdditionalWaitStrategy(...) alongside the required environment variables (OPENFGA_PLAYGROUND_ENABLED=true, OPENFGA_PLAYGROUND_ADDR=0.0.0.0:3000). Why is it important?The playground is not enabled by default in OpenFGA — it requires explicit configuration. Having Run() unconditionally wait for the playground HTTP endpoint meant that containers started without playground support would either time out or rely on an endpoint that was never going to be available. This made Run() unnecessarily slow and fragile for users who don't need the playground. The image bump to v1.18.0 brings the examples in line with a current, supported release of OpenFGA. Related issuesHow to test this PRThe example tests use the recent v1.18.0 image and shows you how to enable and connect to the Playground if needed. The openfga_test.go tests the new version with the default container options.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…and update image to v1.18.0 The playground wait strategy is now opt-in via WithAdditionalWaitStrategy, since the playground requires explicit OPENFGA_PLAYGROUND_ENABLED=true to be active in the newer OpenFGA versions.
|
There was an error while loading. Please reload this page.
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Summary by CodeRabbit
WalkthroughThe OpenFGA module removes its default ChangesOpenFGA v1.18.0 upgrade and playground wait strategy fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Will update the docs next |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mdelapenya will you take care of this hereafter and merge it when ready? do I have to do anything else? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Merged, thanks for your support to Testcontainers! 🙇 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Enhancement]: Bring openfga testcontainer module up to date
There was an error while loading. Please reload this page.