Skip to content

Disable newsfeed in UI based on TEMPORAL_DISABLE_NEWS_FETCH env var#1110

Open
tomwheeler wants to merge 1 commit into
mainfrom
newsfeed-config-passthrough
Open

Disable newsfeed in UI based on TEMPORAL_DISABLE_NEWS_FETCH env var#1110
tomwheeler wants to merge 1 commit into
mainfrom
newsfeed-config-passthrough

Conversation

@tomwheeler

@tomwheeler tomwheeler commented Jul 6, 2026

Copy link
Copy Markdown

Related issues

Related to #1104

What changed?

This configures the UI server to disable the news feed feature if the TEMPORAL_DISABLE_NEWS_FETCH environment variable is set to true, as described in the documentation.

Checklist

Manual tests

Setup #1 (default case)

temporal server start-dev

Happy path #1 (default case)
Open the Web UI and observe that the news fetch feature is enabled, as it is by default. This is visible by way of a megaphone icon in the top navigation.

Setup two (feature disabled)

TEMPORAL_DISABLE_NEWS_FETCH=true ./temporal server start-dev

Happy path two (feature disabled)
Open the Web UI and observe that the news fetch feature is disabled, since the environment variable is set to disable it, as described in the documentation. This is evident by the megaphone icon being omitted from the top navigation and the Web UI not making a request for the feed.

@tomwheeler tomwheeler requested a review from a team as a code owner July 6, 2026 19:56
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

}

func (s *StartOptions) buildUIServer() *uiserver.Server {
disableNewsFetch, _ := strconv.ParseBool(os.Getenv("TEMPORAL_DISABLE_NEWS_FETCH"))

Copy link
Copy Markdown
Contributor

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 should silently fail here. I think it makes sense to include in the start options (unless those are generated somehow)

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.

3 participants