Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SSE support for Cloud using staged rollout (GB feature flag) #1426

Merged
merged 27 commits into from
Jul 25, 2023

Conversation

bryce-fitzsimons
Copy link
Member

@bryce-fitzsimons bryce-fitzsimons commented Jul 4, 2023

Features and Changes

Cloud:

  • Streaming will no longer be a paid feature, and will be available for everybody.
  • The rollout will be controlled (by organization), dogfooded using GB feature flag rules.

Dependencies

Testing

Screenshots

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

Your preview environment pr-1426-bttf has been deployed.

Preview environment endpoints are available at:

@bryce-fitzsimons bryce-fitzsimons marked this pull request as ready for review July 5, 2023 05:54
packages/back-end/src/controllers/features.ts Outdated Show resolved Hide resolved
packages/back-end/src/controllers/features.ts Outdated Show resolved Hide resolved
packages/back-end/src/controllers/features.ts Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

Deploy preview for docs ready!

✅ Preview
https://docs-7pwcgwy3j-growthbook.vercel.app

Built with commit c11d777.
This pull request is being automatically deployed with vercel-action

@@ -80,7 +84,8 @@ export default function SDKConnectionsList() {
{connections.map((connection) => {
const hasProxy =
!isCloud() && connection.proxy.enabled && connection.proxy.host;
const hasCloudProxyForSSE = isCloud() && connection.sseEnabled;
const hasCloudProxyForSSE =
isCloud() && growthbook?.isOn("proxy-cloud-sse");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not using this feature flag anymore, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're using this temporarily until 100% rollout, just so we can show accurate info in the UI

host: proxy.host ? proxy.host : PROXY_HOST_INTERNAL || PROXY_HOST_PUBLIC,
hostExternal: proxy.hostExternal
? proxy.hostExternal
: PROXY_HOST_PUBLIC || PROXY_HOST_INTERNAL,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this change? I think this might break self-hosted users who are using a proxy with environment variables.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the original function breaks our "local proxy for cloud users" functionality: They need to be able to set enabled and host from the SDK Connection UI, but then this method overwrites these fields with env var defaults. And even if they aren't actually set in our cloud environment, we'd still overwrite with "". We need a way to only set these fields if nothing is being provided by ...proxy.

I don't fully understand the point of hostExternal so I'm not confident that I got this part correct.

packages/back-end/src/models/SdkConnectionModel.ts Outdated Show resolved Hide resolved
@bryce-fitzsimons bryce-fitzsimons merged commit 33cc290 into main Jul 25, 2023
6 checks passed
@bryce-fitzsimons bryce-fitzsimons deleted the cloud-enable-sse-for-everybody branch July 25, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants