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

fix: use ENABLE_FLAGSMITH_REALTIME environment var #3867

Merged
merged 2 commits into from
May 1, 2024

Conversation

kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented May 1, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

ENABLE_FLAGSMITH_REALTIME was setup to determine if the SDK initialised with the realtime boolean. For some reason this was not used in the admin panel.

Demo and production Vercel environments already provide this to the FE.

How did you test this code?

  • Check that Project.flagsmithRealtime is being set.
image

Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 3:23pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 3:23pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 3:23pm

@kyle-ssg kyle-ssg requested review from khvn26 and matthewelwell May 1, 2024 15:13
@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard docs Documentation updates labels May 1, 2024
@khvn26
Copy link
Member

khvn26 commented May 1, 2024

Since it's False by default, we need to enable it for ECS task definitions.

I'm also renaming the PR title to fix so it's visible in the changelog.

@khvn26 khvn26 changed the title chore: use ENABLE_FLAGSMITH_REALTIME environment var fix: use ENABLE_FLAGSMITH_REALTIME environment var May 1, 2024
Copy link
Contributor

github-actions bot commented May 1, 2024

Uffizzi Preview deployment-51109 was deleted.

@matthewelwell
Copy link
Contributor

Since it's False by default, we need to enable it for ECS task definitions.

This env var is read from vercel in our SaaS environments so we just need to make sure it's set there.

@kyle-ssg
Copy link
Member Author

kyle-ssg commented May 1, 2024

Yeah it was all in vercel already

{
"name": "ENABLE_FLAGSMITH_REALTIME",
"value": "True"
},
Copy link
Member Author

@kyle-ssg kyle-ssg May 1, 2024

Choose a reason for hiding this comment

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

I don't think we need this, unless I'm missing a usecase? Config gets to FE via Vercel.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, removed!

Copy link
Contributor

Choose a reason for hiding this comment

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

No, we don't

@matthewelwell matthewelwell added this pull request to the merge queue May 1, 2024
Merged via the queue into main with commit 41a8aa3 May 1, 2024
39 of 40 checks passed
@matthewelwell matthewelwell deleted the chore/enable-flagsmith-realtime-environment-var branch May 1, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation updates front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants